Plex Not Playing Back Certain Files Whether HW Transcode is On or Off

Server Version#: 1.32.6.7371
Player Version#: Latest web, FireTV

I have a few files like this, but in this case, playing “Liar Liar” will have the client side buffering endlessly. No error message gets displayed. I don’t have reason to believe it’s transcode related because the problem is replicated regardless what HW transcode is set to.

Ideas?

Logs posted.
Plex Media Server Logs_2023-08-08_18-25-56.zip (500.1 KB)

You’re getting SW transcode even though PMS sees the AMD.

There is a limitation right now with this first release of AMD support – NO HDR.
If you have HDR enabled, HW transcoding fails and it stays SW.

Might be the case given I see no HW being used in the FFMPEG command line?

Hmm when I ffprobe the file in question, it returns a colour space of “YUV” and a bit depth of 8 bits. This leads me to believe the source file is not HDR.

It is H.264 so BT709 8 bit

Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: Selected protocol dash; container: mp4
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: analyzing media item 13015
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: Liar Liar (1997): Direct Play is disabled
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: Liar Liar (1997): media must be transcoded in order to use the dash protocol
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: Liar Liar (1997): no direct play video profile exists for http/mkv/h264
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: Liar Liar (1997): no direct play video profile exists for http/mkv/h264/dca
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: Liar Liar (1997): no direct play video profile exists for http/mkv/h264/ac3
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: Cannot direct stream audio stream due to codec dca when profile only allows aac
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] MDE: Liar Liar (1997): selected media 0 / 13015
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] Streaming Resource: Added session 0x7f6fabe7ead8:kkwa6aeeydm55mxec0nfv3ut
Aug 07, 2023 20:08:54.944 [140117524536120] DEBUG - [Req#304/Transcode] Streaming Resource: Reached Decision id=9104 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=13015 part=(id=13175 decision=transcode container=mp4 protocol=dash streams=(Video=(id=33368 decision=copy width=1920 height=1080) Audio=(id=33369 decision=transcode bitrate=256 encoder=aac channels=2 rate=48000))))
Aug 07, 2023 20:08:54.946 [140117645757240] DEBUG - Completed: [192.168.0.110:56288] 200 GET /video/:/transcode/universal/decision?hasMDE=1&path=%2Flibrary%2Fmetadata%2F9104&mediaIndex=0&partIndex=0&protocol=dash&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&addDebugOverlay=0&autoAdjustQuality=1&directStreamAudio=1&mediaBufferSize=102400&session=8kryfco8ac7kkbbs1dtf9e1x&subtitles=burn&Accept-Language=en (18 live) #304 TLS GZIP 12ms 5453 bytes (pipelined: 9)
Aug 07, 2023 20:08:54.992 [140117427211064] DEBUG - Request: [192.168.0.110:56273 (Subnet)] GET /web/js/chunk-1123-b7f65e78bd5c2c18e3ad-plex-4.108.0.32184-ffafb0d.js (18 live) #2f5 GZIP Signed-in
Aug 07, 2023 20:08:54.992 [140117520317240] DEBUG - Request: [192.168.0.110:56281 (Subnet)] GET /web/js/chunk-9112-144b5069ea5850c1a67b-plex-4.108.0.32184-ffafb0d.js (18 live) #a2 GZIP Signed-in
Aug 07, 2023 20:08:54.992 [140117427211064] DEBUG - [Req#2f5] Final path: "/usr/lib/plexmediaserver/Resources/Plug-ins-b6a09ad81/WebClient.bundle/Contents/Resources/js/chunk-1123-b7f65e78bd5c2c18e3ad-plex-4.108.0.32184-ffafb0d.js"
Aug 07, 2023 20:08:54.992 [140117520317240] DEBUG - [Req#a2] Final path: "/usr/lib/plexmediaserver/Resources/Plug-ins-b6a09ad81/WebClient.bundle/Contents/Resources/js/chunk-9112-144b5069ea5850c1a67b-plex-4.108.0.32184-ffafb0d.js"
Aug 07, 2023 20:08:54.992 [140117520317240] DEBUG - Content-Length of /usr/lib/plexmediaserver/Resources/Plug-ins-b6a09ad81/WebClient.bundle/Contents/Resources/js/chunk-9112-144b5069ea5850c1a67b-plex-4.108.0.32184-ffafb0d.js is 7179 (of total: 7179).
Aug 07, 2023 20:08:54.992 [140117427211064] DEBUG - Content-Length of /usr/lib/plexmediaserver/Resources/Plug-ins-b6a09ad81/WebClient.bundle/Contents/Resources/js/chunk-1123-b7f65e78bd5c2c18e3ad-plex-4.108.0.32184-ffafb0d.js is 404637 (of total: 404637).
Aug 07, 2023 20:08:54.993 [140117645757240] DEBUG - Completed: [192.168.0.110:56281] 200 GET /web/js/chunk-9112-144b5069ea5850c1a67b-plex-4.108.0.32184-ffafb0d.js (18 live) #a2 GZIP 0ms 7179 bytes (pipelined: 9)
Aug 07, 2023 20:08:54.994 [140117643647800] DEBUG - Completed: [192.168.0.110:56273] 200 GET /web/js/chunk-1123-b7f65e78bd5c2c18e3ad-plex-4.108.0.32184-ffafb0d.js (18 live) #2f5 GZIP 2ms 404637 bytes (pipelined: 9)
Aug 07, 2023 20:08:55.050 [140117522426680] DEBUG - Request: [192.168.0.110:56288 (Subnet)] GET /video/:/transcode/universal/start.mpd?hasMDE=1&path=%2Flibrary%2Fmetadata%2F9104&mediaIndex=0&partIndex=0&protocol=dash&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&addDebugOverlay=0&autoAdjustQuality=1&directStreamAudio=1&mediaBufferSize=102400&session=8kryfco8ac7kkbbs1dtf9e1x&subtitles=burn&Accept-Language=en (18 live) #307 TLS GZIP Signed-in Token (2dfx) (Microsoft Edge)
Aug 07, 2023 20:08:55.050 [140117522426680] DEBUG - [Req#307/Transcode] Found session GUID of 8kryfco8ac7kkbbs1dtf9e1x in session start.
Aug 07, 2023 20:08:55.051 [140117522426680] DEBUG - [Req#307/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: append-transcode-target-codec(type=videoProfile&context=streaming&audioCodec=aac&protocol=dash)
Aug 07, 2023 20:08:55.051 [140117522426680] DEBUG - [Req#307/Transcode] TranscodeUniversalRequest: using augmented profile Microsoft Edge
Aug 07, 2023 20:08:55.051 [140117522426680] DEBUG - [Req#307/Transcode] Downloading document http://127.0.0.1:32400/library/metadata/9104?checkFiles=1&includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=kkwa6aeeydm55mxec0nfv3ut
Aug 07, 2023 20:08:55.055 [140117522426680] DEBUG - [Req#307/Transcode/Req#30a] It took 0.000000 ms to retrieve 122 items.
Aug 07, 2023 20:08:55.057 [140117522426680] DEBUG - [Req#307/Transcode] Audio Stream: 33369, Subtitle Stream: -1
Aug 07, 2023 20:08:55.058 [140117522426680] DEBUG - [Req#307/Transcode] Found session GUID of 8kryfco8ac7kkbbs1dtf9e1x in session start.
Aug 07, 2023 20:08:55.059 [140117522426680] DEBUG - [Req#307/Transcode] Cleaning directory for session 8kryfco8ac7kkbbs1dtf9e1x ()
Aug 07, 2023 20:08:55.059 [140117522426680] DEBUG - [Req#307/Transcode] Starting a transcode session 8kryfco8ac7kkbbs1dtf9e1x at offset -1.0 (state=3)
Aug 07, 2023 20:08:55.059 [140117522426680] DEBUG - [Req#307/Transcode] TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Aug 07, 2023 20:08:55.059 [140117522426680] DEBUG - [Req#307/Transcode] [Universal] Using local file path instead of URL: /plexmedia/Movies/Liar Liar (1997).mkv
Aug 07, 2023 20:08:55.060 [140117522426680] DEBUG - [Req#307/Transcode] TPU: hardware transcoding: final decoder: , final encoder: 
Aug 07, 2023 20:08:55.060 [140117522426680] DEBUG - [Req#307/Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/8217c1c-4589-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 h264 -codec:1 dca -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i "/plexmedia/Movies/Liar Liar (1997).mkv" -map 0:0 -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/8kryfco8ac7kkbbs1dtf9e1x/6bc71698-9b3c-48fd-ac70-0cff9563b967/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/8kryfco8ac7kkbbs1dtf9e1x/6bc71698-9b3c-48fd-ac70-0cff9563b967/progress

Stupid question time – Is the Plex user a member of the group which owns /dev/dri/renderD12* ?

This is TrueNAS, so it’s operating within a kubernetes pod.

Short answer - yes, the plex user is part of the group “video” and “video1” who has ownership of /dev/dri/renderD128.

root@truenas:/dev/dri# ls -l
total 0
crw-rw---- 1 root video  226,   0 Aug  7 20:06 card0
crw-rw-rw- 1 root video1 226, 128 Aug  7 20:06 renderD128
root@truenas:/dev/dri# cat /etc/group | grep plex
video:x:44:plex
users:x:100:plex
plex:x:1000:
video1:x:107:plex

renderD12 ?? NEVER saw that before.

The Linux kernel starts enumerating at minor number 128 and that’s the name given to the renderDxxx.

PMS looks for renderD128 at minimum. Did you make a typo in the container passthrough definition ?

Kubernetes is not tested. PMS operation not guaranteed.

This is how /dev/dri should be:

root@lizum:/home/chuck# ls -la /dev/dri
total 0
drwxr-xr-x   3 root root        140 Aug  6 03:36 .
drwxr-xr-x  21 root root       5240 Aug  8 23:01 ..
drwxr-xr-x   2 root root        120 Aug  6 03:36 by-path
crw-rw----+  1 root render 226,   0 Aug  6 03:36 card0
crw-rw----+  1 root render 226,   1 Aug  9 10:03 card1
crw-rw----+  1 root render 226, 128 Aug  6 03:36 renderD128
crw-rw----+  1 root render 226, 129 Aug  6 03:36 renderD129
root@lizum:/home/chuck#

On closer inspection it is indeed renderD128. My copy paste must have cut off the last digit. Apologies for that.

Bumping this to update with a little more trouble detail. It turns out my issue is transcode is just not working at all…whether it be software or hardware. Turning off hw transcode yields the same results.

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