Jump to content

Playing stops after a few seconds or doesn't start with HW transcoding


Recommended Posts

Posted

Hi,

Recently I bought a premium Emby subscription on decided to try hardware transcoding, after setting it up I give it a go but sadly some files doesn't start playing at all and the ones who do start only plays for about 10 seconds afterwards they stop.

I tried to lower the quality and that way they play normally, but I would like to avoid that and always use the highest quality possible. I never had this issue before, without HW transcoding.

 

I have Emby running on a docker container using the official image, the latest version. I can provide more information about the Docker setup if needed.p

The server where Docker is running has a i7-10710U Processor, 16 gb of ram and a 500 gb SSD.


Here's the server and ffmpeg log.

Please let me know what other information I can provide!

 

Thanks!

 

embyserver.txt ffmpeg-transcode-62d0979d-8c11-43f4-bb36-4ed28f11f286_1.txt

Schleudertrauma
Posted

Have you set up docker or your docker container in that way that it has access to hardware resources and drivers from the host system?

Posted
54 minutes ago, Schleudertrauma said:

Have you set up docker or your docker container in that way that it has access to hardware resources and drivers from the host system?

I believe so

Here's the content of my docker compose file.

 

  emby:
    image: emby/embyserver
    container_name: emby
    restart: unless-stopped
    environment:
      - UID=1000
      - GID=100
      - GIDLIST=106
      - TZ=Europe/Madrid
    networks:
      - caddy
    ports:
      - 8096:8096/tcp
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128
      - /dev/dri/card0:/dev/dri/card0
    volumes:
      - /home/server/.config/emby/:/config
      - /home/server/ext/data/media:/data/media

 

And the content of `/dev/dri`

➜ ls -la /dev/dri
total 0
drwxr-xr-x  3 root root        100 Jul 15 13:45 .
drwxr-xr-x 17 root root       3280 Jul 15 14:29 ..
drwxrwxrwx  2 root root         80 Jul 15 13:45 by-path
crwxrwxrwx  1 root video  226,   0 Jul 15 13:45 card0
crwxrwxrwx  1 root render 226, 128 Jul 15 13:45 renderD128

 

Schleudertrauma
Posted

Hmm, I would try to lower the bitrate in network settings. I had that problem too that relatively often emby suddenly stopped playback due to no reason and i couldn't find anything in my logs. @Luketold me to lower the rate. I also set the h264 encoding to fast and 265 too and since then i have nearly 0 problems with playback. Not the best way i know but that's it.

I saw that you're using an Intel iHD driver for Intel(R) Gen Graphics. Is that powerful enough to handle those 4k streams like them in your logs? I'm sorry that i can't give you real technical support, i can only tell you how i solved this problem in my case.

You could set the log setting to "Debug" and then try again for a several time and pay attention whether the playback failes randomly on all of your media or reproducable on selective ones and then you can post the "Debug" log in here but be aware that in case you restart emby or the host, the log settings will be reset to default.

Posted

I did a bunch of tests, here the conclusions I got.

1. 4k files with subtitles doesn't work even if I lower the bitrate

 2. 4k files without subtitles doesn't work with the bitrate and resolution setting as auto, in my case 4K - 140 Mbps - This is the case in the logs above

3. 4k files without subtitles with bitrate and resolution downgraded works, up to 4K - 100 Mbps, higher than that the stream stops after 10-20 seconds.

4. 4k files completely disabling subtitle stream using the Diagnostic Options plugins with bitrate and resolution set to auto stops as well

5. 1080p files doesn't work with subtitles if I leave the bitrate and resolution to auto

6. 1080p files without subtitles appears to work correctly

7. 1080p files with subtitles and lower bitrate and resolutions appears to work

 

I can provide logs for each test case if needed.

The common issue I see in the logs is this lines

11:05:49.592 [matroska,webm @ 0x1a24840] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

I believe it's related to the subtitles.

 

Not sure if the iGPU is powerful enough but I never had issues with software transcoding streaming the same files.

Thanks! I really appreciate your help :) hopefully @Lukecan provide more information.

 

 

 

  • 1 month later...
Posted

Has the 4.7.14 update helped? Beyond that I think there's a good chance this is improved in the upcoming 4.8 release. Thanks.

  • 3 weeks later...
Posted

Hi, I been trying the 4.8 beta and it's much better, a little stutter, but if I leave loading for a few minutes it appears to work perfectly. I'll do more extensive tests and let you know.

 

Thanks!

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...