PMS on Synology DS 920+ running in a docker-container keeps buffering

Hey there,

So i have this reallyreally weird phenomenon…
First of all I have used PMS on my DS 920+ with docker with following settings:
docker run -d --name Wave-Plex --network=host -e TZ=Europe/Berlin -e PLEX_CLAIM=“xxxxxxx” -e PUID=1026 -e GUID=100 -e PLEX_PASS=yes -e UMASK=002 -v /volume1/docker/plex/config:/config -v /volume1/docker/plex/transcode:/transcode -v /volume1/Movies:/media -v /volume1/docker/plex/data:/data --restart unless-stopped plexinc/pms-docker:latest

and with this, from time to time my CPU goes to almost 100% usage, which is fine, because my films would not buffer, even with transcoding on.

So i figured: why not adding the line –device /dev/dri/card0:/dev/dri/card0
since so many reviews were, that the CPU is not even bothering anymore :slight_smile:

Well now to the issue: yes, my CPU is not really hurting no more and the highest usage is about 40%. BUT… now i get constant buffering about every 10 seconds and I really can’t seem to figure out, why that is…

I can for sure provide the logs if necessary.

Would be reallyreally glad if you could help me out! Have been at this issue for the whole weekend and it’s driving me nuts…

Server Version#:latest
Player Version#:latest

Dave,

  1. Verify DEBUG logging is enabled, VERBOSE logging is disabled, SAVE if you change either

  2. Start playback of a movie / episode which causes this…

  3. Play for 20 seconds

  4. Stop Playback & wait 20 sec

  5. Download Logs ZIP

  6. Attach.

Now change the docker spec. You don’t want to call out card0 as that’s incorrect.

--device /dev/dri:/dev/dri 

PPS: How’s eastern Germany this time of year? I’ve not been there in a long time .

Hey Chuck,

Thanks for your reply!
First I deleted the container and added the device as you said.
Then I did the playback etc…

Plex Media Server Logs_2021-07-11_17-12-04.zip (2.8 MB)

Veryvery rainy :smiley: so better stay far away from germany this year :wink: when have you been here and whereabouts? Berlin?

I grew up in Koenigstein/Taunus long ago when was still east/west :slight_smile:

Last time in Berlin almost 20 years now. Family lived on Pragerstrasse at the time.

You are having performance issue because of subtitle burning.

SRT subtitles can be streamed easily by almost all players – unless player forces BURN option. Set player to automatic.

VOBSUB, PGS, DVDRIP are images – must be burned into each frame.
DSM struggles with this.

25% of a quad core CPU for subtitle burning (a whole thread)
15-20% for audio processing.

Jul 11, 2021 17:10:51.286 [0x7ff980232b38] DEBUG - [Transcode] Auth: authenticated user 1 as WaveDave
Jul 11, 2021 17:10:51.295 [0x7ff980232b38] DEBUG - [Transcode] We're going to try to auto-select an audio stream for account 1.
Jul 11, 2021 17:10:51.295 [0x7ff980232b38] DEBUG - [Transcode] Selecting best audio stream for part ID 12936 (autoselect: 1 language: en)
Jul 11, 2021 17:10:51.295 [0x7ff980232b38] DEBUG - [Transcode] We're going to try to auto-select a subtitle.
Jul 11, 2021 17:10:51.295 [0x7ff980232b38] DEBUG - [Transcode] Subtitles: Found a candidate subtitle language [eng] for a foreign film
Jul 11, 2021 17:10:51.295 [0x7ff980232b38] DEBUG - [Transcode] Audio Stream: 32009, Subtitle Stream: 32010
Jul 11, 2021 17:10:51.296 [0x7ff980232b38] DEBUG - [Transcode] Found session GUID of fvbnhn8ryvc2xuxnc3ebw7la in session start.
Jul 11, 2021 17:10:51.296 [0x7ff980232b38] DEBUG - [Transcode] Cleaning directory for session fvbnhn8ryvc2xuxnc3ebw7la ()
Jul 11, 2021 17:10:51.296 [0x7ff980232b38] DEBUG - [Transcode] Starting a transcode session fvbnhn8ryvc2xuxnc3ebw7la at offset -1.0 (state=3)
Jul 11, 2021 17:10:51.297 [0x7ff980232b38] DEBUG - [Transcode] TPU: hardware transcoding: using hardware decode accelerator vaapi
Jul 11, 2021 17:10:51.297 [0x7ff980232b38] DEBUG - [Transcode] TPU: hardware transcoding: zero-copy support present
Jul 11, 2021 17:10:51.297 [0x7ff980232b38] DEBUG - [Transcode] TPU: hardware transcoding: not using zero-copy because subtitle burning is required
Jul 11, 2021 17:10:51.297 [0x7ff980232b38] DEBUG - [Transcode] [Universal] Using local file path instead of URL: /media/Movies/Wild Mountain Thyme (2020)/Wild Mountain Thyme (2020).mkv
Jul 11, 2021 17:10:51.297 [0x7ff980232b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x41524742 -> bgra.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x42475241 -> argb.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x41424752 -> rgba.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x52474241 -> abgr.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x58524742 -> bgr0.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x42475258 -> 0rgb.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x58424752 -> rgb0.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x52474258 -> 0bgr.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x30335241 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x30334241 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x30335258 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x30334258 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x36314752 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x50424752 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x50524742 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x56555941 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x30303859 -> gray.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x3231564e -> nv12.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x3132564e -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x32595559 -> yuyv422.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x59565955 -> uyvy422.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x32315659 -> yuv420p.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x30323449 -> yuv420p.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x50313134 -> yuv411p.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x48323234 -> yuv422p.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x56323234 -> yuv440p.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x50343434 -> yuv444p.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x33434d49 -> unknown.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Format 0x30313050 -> p010le.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Created surface 0.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] [FFMPEG] - Direct mapping possible.
Jul 11, 2021 17:10:51.298 [0x7ff980232b38] DEBUG - [Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Jul 11, 2021 17:10:51.299 [0x7ff980232b38] DEBUG - [Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/fa235d6-3858-linux-x86_64/' LIBVA_DRIVERS_PATH='/usr/lib/plexmediaserver/lib/dri' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Transcoder' '-codec:0' 'h264' '-hwaccel:0' 'vaapi' '-hwaccel_fallback_threshold:0' '10' '-hwaccel_device:0' 'vaapi' '-codec:1' 'dca' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' '/media/Movies/Wild Mountain Thyme (2020)/Wild Mountain Thyme (2020).mkv' '-filter_complex' '[0:2]scale=1920:1080[0];[0:0][0]overlay[1];[1]scale=w=1920:h=1080[2];[2]format=pix_fmts=nv12[3];[3]hwupload[4]' '-map' '[4]' '-metadata:s:0' 'language=eng' '-codec:0' 'h264_vaapi' '-b:0' '37852k' '-maxrate:0' '50470k' '-bufsize:0' '100940k' '-r:0' '24' '-force_key_frames:0' 'expr:gte(t,n_forced*1)' '-filter_complex' '[0:1] aresample=async=1:ocl='\''5.1'\'':rematrix_maxval=0.000000dB:osr=48000[5]' '-map' '[5]' '-metadata:s:1' 'language=eng' '-codec:1' 'aac' '-b:1' '774k' '-f' 'dash' '-seg_duration' '1' '-dash_segment_type' 'mp4' '-init_seg_name' 'init-stream$RepresentationID$.m4s' '-media_seg_name' 'chunk-stream$RepresentationID$-$Number%05d$.m4s' '-window_size' '5' '-delete_removed' 'false' '-skip_to_segment' '1' '-time_delta' '0.0625' '-manifest_name' 'http://127.0.0.1:32400/video/:/transcode/session/fvbnhn8ryvc2xuxnc3ebw7la/3bab6dc5-4d02-4c5c-8b60-275f4554a4a2/manifest?X-Plex-Http-Pipeline=infinite' '-avoid_negative_ts' 'disabled' '-map_metadata' '-1' '-map_chapters' '-1' 'dash' '-start_at_zero' '-copyts' '-vsync' 'cfr' '-init_hw_device' 'vaapi=vaapi:' '-filter_hw_device' 'vaapi' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/fvbnhn8ryvc2xuxnc3ebw7la/3bab6dc5-4d02-4c5c-8b60-275f4554a4a2/progress'

Hi Chuck,

Wow, that must have been some kind of experience back then… i can’t imagine living there back then during DDR… but somehow, even if i don’t know what it was back then, compared to other regions (switzerland i.e. where i grew up), it still feels like living in the DDR…

Back to topic: that was it! Using an srt subtitle, it’s not buffering anymore. Even though I have been using the “automatic” option in the player-settings. also what’s really strange… why would it not buffer without the env device?

But anyhow since it works now, i don’t care too much about it anymore…

Thanks for your quick and friendly help!

Image based subtitles can rarely be handled by TVs.
The Nvidia Shield player is one of the few exceptions because it has so much computing & graphics power. (it’s quite the premier player)

Re: Ost & West :slight_smile:

They were unique times.
I was in Berlin the night the Mauer came down; standing there watching. Polizei and all stood there in awe and watched it unfold.

I have a small piece of history here in private collection now; taken from the DDR side of the checkpoint. It had been setup a few hours earlier (oops lol). I think you can imagine what I have :wink:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.