Server Version#: Version 1.32.1.6999
Player Version#:
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>
Super weird but hardware transcoding no longer seems to be working at all on my Synology DS420+ which has an Intel Celeron J4025 (Geminilake). I knew this is a known issue with the latest versions of PMS but I had rolled back to 6999 a few weeks back and had no issues with hardware transcoding. However, starting this week hardware transcoding seems to have broken again even on 6999 and its killing my CPU usage and making streaming difficult.
Do I need to revert to an even older version? Any assistance or workarounds would be greatly appreciated!
HW transcoding will not fully engage when subtitle burning is required.
Aug 16, 2023 16:33:08.243 [0x7f6783fffb38] DEBUG - [Req#296/Transcode] MDE: Selected protocol dash; container: mp4
Aug 16, 2023 16:33:08.243 [0x7f6783fffb38] DEBUG - [Req#296/Transcode] MDE: analyzing media item 21406
Aug 16, 2023 16:33:08.243 [0x7f6783fffb38] DEBUG - [Req#296/Transcode] MDE: E17 - Rip In The Universe: Direct Play is disabled
Aug 16, 2023 16:33:08.244 [0x7f6783fffb38] DEBUG - [Req#296/Transcode] MDE: E17 - Rip In The Universe: media must be transcoded in order to use the dash protocol
Aug 16, 2023 16:33:08.244 [0x7f6783fffb38] DEBUG - [Req#296/Transcode] MDE: E17 - Rip In The Universe: selected audio stream is not the first audio stream and direct play stream selection is not enabled
Aug 16, 2023 16:33:08.244 [0x7f6783fffb38] DEBUG - [Req#296/Transcode] MDE: E17 - Rip In The Universe: selected subtitle cannot be converted to a compatible format, burning into video stream
Aug 16, 2023 16:33:08.244 [0x7f6783fffb38] DEBUG - [Req#296/Transcode] MDE: E17 - Rip In The Universe: avoiding video remux due to burned subtitle stream
Aug 16, 2023 16:33:08.244 [0x7f6783fffb38] DEBUG - [Req#296/Transcode] MDE: E17 - Rip In The Universe: no remuxable profile found, so video stream will be transcoded
Aug 16, 2023 16:33:08.246 [0x7f677c358b38] DEBUG - [Req#26a] [Now] User is jfofa (ID: 99624479)
Aug 16, 2023 16:33:08.246 [0x7f677c358b38] DEBUG - [Req#26a] [Now] Device is Tizen (TV 2019).
Aug 16, 2023 16:33:08.246 [0x7f677c358b38] DEBUG - [Req#26a] [Now] Profile is Generic
It will HW decode and HW encode (not displayed) but then use the CPU to burn in the subtitles .
At present, this is how it’s done.
We’re trying to figure out, if possible, a way to leverage the HW for subtitle burning too. (have some ideas, it’s really complex, but making progress )
Why doesn’t it display “(hw)” in the dashboard that hardware transcoding is occurring? It used to show that but no longer does. I also haven’t had issues in the past streaming this exact title but it pauses to buffer every few seconds now. Also is using the CPU to burn in subtitles very resource intensive? I’m still clocking around 99% CPU usage when I try to watch this title.
The thing is that I also tried playing another file with no subtitles and had it transcode but it also doesn’t show that hardware transcoding is occurring in the dashboard. Here are the logs for that too. Plex Media Server.log (3.8 MB)
one problem , because of how poorly PMS converts ASS subtitles, is that conversion.
HW being supressed because of the subtitles is normal.
It’s converting the video from 10 bit color to 8 bit color and converting the audio to AAC (for Dash protocol)
– 10 → 8 bit color conversion without the HW is ‘software tonemapping’ and very cpu heavy
– Audio conversion for dash is trivial here.
2023 16:48:48.040 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: append-transcode-target-codec(type=videoProfile&context=streaming&audioCodec=aac&protocol=dash)
Aug 22, 2023 16:48:48.040 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] TranscodeUniversalRequest: using augmented profile Firefox
Aug 22, 2023 16:48:48.041 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] Downloading document http://127.0.0.1:32400/library/metadata/24429?checkFiles=1&includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=c7zanorhqijqc51g68bzyraa
Aug 22, 2023 16:48:48.043 [0x7f2424375b38] DEBUG - [Req#48da7] It took 0.000000 ms to retrieve 102 items.
Aug 22, 2023 16:48:48.046 [0x7f2424375b38] DEBUG - [Req#48da7] It took 10.000000 ms to retrieve 113 items.
Aug 22, 2023 16:48:48.049 [0x7f2424375b38] DEBUG - [Req#48da7] It took 0.000000 ms to retrieve 104 items.
Aug 22, 2023 16:48:48.050 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/Req#48e4e] It took 10.000000 ms to retrieve 183 items.
Aug 22, 2023 16:48:48.057 [0x7f2424375b38] DEBUG - [Req#48da7] It took 10.000000 ms to retrieve 140 items.
Aug 22, 2023 16:48:48.060 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/Req#48e4e] It took 0.000000 ms to retrieve 183 items.
Aug 22, 2023 16:48:48.063 [0x7f2424375b38] DEBUG - [Req#48da7] It took 10.000000 ms to retrieve 130 items.
Aug 22, 2023 16:48:48.063 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/Req#48e4e] We're going to try to auto-select an audio stream for account 1.
Aug 22, 2023 16:48:48.063 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/Req#48e4e] Selecting best audio stream for part ID 54160 (language: ja)
Aug 22, 2023 16:48:48.063 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/Req#48e4e] We're going to try to auto-select a subtitle.
Aug 22, 2023 16:48:48.063 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/Req#48e4e] Subtitles: Found a candidate subtitle language [en] for a foreign film
Aug 22, 2023 16:48:48.063 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/Req#48e4e] Audio Stream: 145331, Subtitle Stream: 145332
Aug 22, 2023 16:48:48.065 [0x7f2424375b38] DEBUG - [Req#48da7] It took 0.000000 ms to retrieve 110 items.
Aug 22, 2023 16:48:48.075 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] Found session GUID of 3022ml8hgsg2f8modx4c9dum in session start.
Aug 22, 2023 16:48:48.075 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] Cleaning directory for session 3022ml8hgsg2f8modx4c9dum ()
Aug 22, 2023 16:48:48.076 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] Starting a transcode session 3022ml8hgsg2f8modx4c9dum at offset -1.0 (state=3)
Aug 22, 2023 16:48:48.076 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Aug 22, 2023 16:48:48.077 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] [Universal] Using local file path instead of URL: /volume1/Media Library/Films/Spider-Man.Across.the.Spider-Verse.2023.1080p.WEB-DL.DDP5.1.Atmos.H.264-FLUX.mkv
Aug 22, 2023 16:48:48.077 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode] TPU: hardware transcoding: final decoder: , final encoder:
Aug 22, 2023 16:48:48.077 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/JobRunner] Job running: EAE_ROOT=/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/tmp/pms-f3d3805f-2fa7-4edf-b471-3b7584ae3675/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex\ Media\ Server/Codecs/2584b51-4483-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx47c6-90e9-c3718bb32820 "/volume1/@appstore/PlexMediaServer/Plex Transcoder" -codec:0 h264 -codec:1 eac3_eae -eae_prefix:1 3022ml8hgsg2f8modx4c9dum_ -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i "/volume1/Media Library/Films/Spider-Man.Across.the.Spider-Verse.2023.1080p.WEB-DL.DDP5.1.Atmos.H.264-FLUX.mkv" -map 0:0 -metadata:s:0 language=eng -codec:0 copy -filter_complex "[0:1] aresample=async=1:ochl='stereo':rematrix_maxval=0.000000dB:osr=48000[0]" -map "[0]" -metadata:s:1 language=eng -codec:1 aac -b:1 256k -f dash -seg_duration 5 -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/3022ml8hgsg2f8modx4c9dum/a57cd50f-e80e-4368-9c7d-92dcfcb88d5d/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:2 -metadata:s:0 language=eng -codec:0 ass -strict_ts:0 0 -f segment -segment_format ass -segment_time 1 -segment_header_filename sub-header -segment_start_number 0 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/3022ml8hgsg2f8modx4c9dum/a57cd50f-e80e-4368-9c7d-92dcfcb88d5d/manifest?stream=subtitles&X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_format_options ignore_readorder=1 -segment_list_unfinished 1 -fflags +flush_packets "sub-chunk-%05d" -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/3022ml8hgsg2f8modx4c9dum/a57cd50f-e80e-4368-9c7d-92dcfcb88d5d/progress
Aug 22, 2023 16:48:48.077 [0x7f2426512b38] DEBUG - [Req#48e4d/Transcode/JobRunner] In directory: "/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-3022ml8hgsg2f8modx4c9dum-a57cd50f-e80e-4368-9c7d-92dcfcb88d5d"
Aug 22, 2023 16:48:48.080 [0x7f2424375b38] DEBUG - [Req#48da7] It took 0.000000 ms to retrieve 142 items.
Aug 22, 2023 16:48:48.083 [0x7f2424375b38] DEBUG - [Req#48da7] It took 0.000000 ms to retrieve 118 items.
Aug 22, 2023 16:48:48.085 [0x7f2424375b38] DEBUG - [Req#48da7] It took 0.000000 ms to retrieve 101 items.
Aug 22, 2023 16:48:48.088 [0x7f2424375b38] DEBUG - [Req#48da7] It took 10.000000 ms to retrieve 178 items.
Can you pull out the ASS subtitle track,
Convert it to SRT (there are online converters)
Use MKVToolnix (or other tool) to multiplex it back into another test version of the file in place of the ASS subtitles
Now measure the impact.
Lastly, Turn off ALL subtitle playback.
I have some sample videos you can use to confirm your hardware is working correctly if you wish.