Trying this now
Just did the test and that worked fine with tone mapping enabled. Logs attached. its around the 10:38 mark
tonemapping disabled:
Jul 01, 2023 10:38:38.770 [22935298100024] INFO - [Req#18410/Transcode/0df501e99355e601-com-plexapp-android] Preparing driver imd for GPU AlderLake-S GT1
Jul 01, 2023 10:38:38.770 [22935298100024] DEBUG - [Req#18410/Transcode/0df501e99355e601-com-plexapp-android/DriverDL/imd] Skipping download; already exists
Jul 01, 2023 10:38:38.770 [22935298100024] DEBUG - [Req#18410/Transcode/0df501e99355e601-com-plexapp-android] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Jul 01, 2023 10:38:38.770 [22935298100024] DEBUG - [Req#18410/Transcode/0df501e99355e601-com-plexapp-android/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/8217c1c-4578-linux-x86_64/' LIBVA_DRIVERS_PATH="/config/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86_64" X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" "-codec:#0x02" av1 "-hwaccel:#0x02" vaapi "-hwaccel_fallback_threshold:#0x02" 10 "-hwaccel_output_format:#0x02" vaapi "-hwaccel_device:#0x02" vaapi "-codec:#0x01" aac_lc -analyzeduration 20000000 -probesize 20000000 -i /movies/Test/Test.mp4 -filter_complex "[0:#0x02]hwupload[0];[0]scale_vaapi=w=960:h=540:format=nv12[1];[1]hwupload[2]" -map "[2]" -codec:0 h264_vaapi -b:0 3888k -maxrate:0 5184k -bufsize:0 10368k -r:0 25 -force_key_frames:0 "expr:gte(t,n_forced*3)" -filter_complex "[0:#0x01] aresample=async=1:ochl='mono':rematrix_maxval=0.000000dB:osr=48000[3]" -map "[3]" -codec:1 libopus -b:1 128k -segment_format mpegts -f ssegment -individual_header_trailer 0 -segment_time 3 -segment_start_number 0 -segment_copyts 1 -segment_time_delta 0.0625 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/0df501e99355e601-com-plexapp-android/b133e154-df4b-4f15-9e2a-1ca96cf09b17/manifest?X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 "media-%05d.ts" -start_at_zero -copyts -vsync cfr -init_hw_device vaapi=vaapi:/dev/dri/renderD128 -filter_hw_device vaapi -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/0df501e99355e601-com-plexapp-android/b133e154-df4b-4f15-9e2a-1ca96cf09b17/progress
Your log shows tonemapping working then failing…
What’s not clear is what the heck the player is doing. It’s definitely having problems
Jul 01, 2023 10:12:56.026 [22935479741240] DEBUG - Failed to stream media, client probably disconnected after 12648448 bytes: 104 - Connection reset by peer
Jul 01, 2023 10:12:56.026 [22935479741240] DEBUG - Completed after connection close: [192.168.1.188:41344] 200 GET /library/parts/496688/1682665912/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=209664 (18 live) #938 TLS 151ms 12648448 bytes (pipelined: 3)
Jul 01, 2023 10:12:56.028 [22935304063800] DEBUG - Request: [192.168.1.188:41360 (Allowed Network (Subnet))] GET /library/parts/496688/1682665912/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=209664 (17 live) #93c TLS Signed-in Token (Devon.Schroeder) (Galaxy Z Fold4) (range: bytes=11015906771-)
Jul 01, 2023 10:12:56.030 [22935304063800] DEBUG - Content-Length of /movies/Peter Pan and Wendy (2023)/Peter Pan and Wendy (2023) {imdb-tt5635026} [Hybrid DSNP][WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][HEVC]-CMRG.mkv is 7359 (of total: 11015914130).
Jul 01, 2023 10:12:56.030 [22935477631800] DEBUG - Completed: [192.168.1.188:41360] 206 GET /library/parts/496688/1682665912/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=209664 (17 live) #93c TLS 2ms 7359 bytes (pipelined: 2) (range: bytes=11015906771-)
Jul 01, 2023 10:12:56.039 [22935361801016] DEBUG - Request: [192.168.1.188:41360 (Allowed Network (Subnet))] GET /library/parts/496688/1682665912/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=209664 (17 live) #93e TLS Signed-in Token (Devon.Schroeder) (Galaxy Z Fold4) (range: bytes=8132-)
Jul 01, 2023 10:12:56.041 [22935361801016] DEBUG - Content-Length of /movies/Peter Pan and Wendy (2023)/Peter Pan and Wendy (2023) {imdb-tt5635026} [Hybrid DSNP][WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][HEVC]-CMRG.mkv is 11015905998 (of total: 11015914130).
Jul 01, 2023 10:12:56.172 [22935477631800] DEBUG - Failed to stream media, client probably disconnected after 16007168 bytes: 104 - Connection reset by peer
Jul 01, 2023 10:12:56.172 [22935477631800] DEBUG - Completed after connection close: [192.168.1.188:41360] 206 GET /library/parts/496688/1682665912/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=209664 (17 live) #93e TLS 132ms 16007168 bytes (pipelined: 3) (range: bytes=8132-)
Jul 01, 2023 10:12:56.194 [22935370668856] DEBUG - Request: [192.168.1.188:41374 (Allowed Network (Subnet))] GET /library/parts/496688/1682665912/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=209664 (17 live) #939 TLS Signed-in Token (Devon.Schroeder) (Galaxy Z Fold4) (range: bytes=352196-)
Jul 01, 2023 10:12:56.196 [22935370668856] DEBUG - Content-Length of /movies/Peter Pan and Wendy (2023)/Peter Pan and Wendy (2023) {imdb-tt5635026} [Hybrid DSNP][WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][HEVC]-CMRG.mkv is 11015561934 (of total: 11015914130).
Jul 01, 2023 10:12:56.307 [22935477631800] DEBUG - Failed to stream media, client probably disconnected after 12828672 bytes: 104 - Connection reset by peer
Jul 01, 2023 10:12:56.307 [22935477631800] DEBUG - Completed after connection close: [192.168.1.188:41374] 206 GET /library/parts/496688/1682665912/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=209664 (17 live) #939 TLS 112ms 12828672 bytes (pipelined: 1) (range: bytes=352196-)
Jul 01, 2023 10:12:56.322 [22935304063800] DEBUG - Request: [192.168.1.188:41388 (Allowed Network (Subnet))] GET /library/parts/496688/1682665912/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=209664 (17 live) #940 TLS Signed-in Token (Devon.Schroeder) (Galaxy Z Fold4) (range: bytes=11015103182-)
Jul 01, 2023 10:12:56.324 [22935304063800] DEBUG - Content-Length of /movies/Peter Pan and Wendy (2023)/Peter Pan and Wendy (2023) {imdb-tt5635026} [Hybrid DSNP][WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][HEVC]-CMRG.mkv is 810948 (of total: 11015914130).
Your file name looks like one of those “DV Creations” ??
[Hybrid DSNP][WEBDL-2160p] – “Hybrid” ?
i can play another type thats not Hybrid and will post here. just doing it now.
When solving problems, it’s best to keep things as simple & pure as possible.
“get the basics first” ![]()
Here is another 1
at 11:00. Same issue as before, wont hw transcode with tone mapping enabled
This is a [kernel] driver issue.
It’s able to see the hardware and then suddenly it can’t.
(it didn’t ‘close’ correctly or can’t init/open a new session)
Jul 01, 2023 10:59:56.454 [22935333301048] DEBUG - [Req#196e5/Transcode/0df501e99355e601-com-plexapp-android] Starting a transcode session 0df501e99355e601-com-plexapp-android at offset -1.0 (state=3)
Jul 01, 2023 10:59:56.455 [22935333301048] DEBUG - [Req#196e5/Transcode/0df501e99355e601-com-plexapp-android] TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Jul 01, 2023 10:59:56.455 [22935333301048] DEBUG - [Req#196e5/Transcode/0df501e99355e601-com-plexapp-android] [Universal] Using local file path instead of URL: /movies/Shazam! Fury of the Gods (2023)/Shazam! Fury of the Gods (2023) {imdb-tt10151854} [Remux-2160p][DV HDR10][TrueHD Atmos 7.1][HEVC]-FraMeSToR.mkv
Jul 01, 2023 10:59:56.455 [22935333301048] DEBUG - [Req#196e5/Transcode/0df501e99355e601-com-plexapp-android] TPU: hardware transcoding: final decoder: , final encoder:
Jul 01, 2023 10:59:56.455 [22935333301048] DEBUG - [Req#196e5/Transcode/0df501e99355e601-com-plexapp-android/JobRunner] Job running: EAE_ROOT=/tmp/pms-55278434-d795-4808-9408-216a838a3b97/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/8217c1c-4578-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -codec:1 truehd_eae -eae_prefix:1 0df501e99355e601-com-plexapp-android_ -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i '/movies/Shazam! Fury of the Gods (2023)/Shazam! Fury of the Gods (2023) {imdb-tt10151854} [Remux-2160p][DV HDR10][TrueHD Atmos 7.1][HEVC]-FraMeSToR.mkv' -map 0:0 -codec:0 copy -filter_complex "[0:1] aresample=async=1:ochl='7.1':rematrix_maxval=0.000000dB:osr=48000[0]" -map "[0]" -metadata:s:1 language=eng -codec:1 libopus -b:1 1032k -segment_format mpegts -f ssegment -individual_header_trailer 0 -segment_time 10 -segment_start_number 0 -segment_copyts 1 -segment_time_delta 0.0625 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/0df501e99355e601-com-plexapp-android/619ca098-d1a7-49d0-85d4-81b3afc4c781/manifest?X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 "media-%05d.ts" -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/0df501e99355e601-com-plexapp-android/619ca098-d1a7-49d0-85d4-81b3afc4c781/progress
Jul 01, 2023 10:59:56.455 [22935333301048] DEBUG - [Req#196e5/Transcode/0df501e99355e601-com-plexapp-android/JobRunner] In directory: "/transcode/Transcode/Sessions/plex-transcode-0df501e99355e601-com-plexapp-android-619ca098-d1a7-49d0-85d4-81b3afc4c781"
Jul 01, 2023 10:59:56.455 [22935333301048] DEBUG - [Req#196e5/Transcode/0df501e99355e601-com-plexapp-android/JobRunner] Jobs: Starting child process with pid 7862
Jul 01, 2023 10:59:56.457 [22935076068152] DEBUG - Request: [127.0.0.1:54766 (Loopback)] PUT /video/:/transcode/session/0df501e99355e601-com-plexapp-android/619ca098-d1a7-49d0-85d4-81b3afc4c781/progress?status=startup (21 live) #196d5 Signed-in Token (Devon.Schroeder) (range: bytes=0-)
There’s something about GUC and HUC tuning options (for the i915) out on the internet. It has helped some folks. I forget where I saw it.
Ahh right. All good @ChuckPa Thank you very much for helping me figure out where the issue is, at least i know now
. At least now if you get questions from other community members you can tell them that this is a known issue with the i915 driver on Kernel 6.1.34 for Alder Lake
Ill have a look around for the GUC and HUC settings or ill just have to disable Tone Mapping for now until a new Kernel gets used in Unraid.
The GUC / HUC will be part of i915.conf – on the host itself , not the container, when you set it.
Thanks ![]()
Ill have a search and play today and will update this tread if i find a workaround solution for the time being.
Just replying to say I have this same issue, except I’m using LSIO Plex container. Rolled back to 1.32.1.6999-91e1e2e2c and everything works.
Thanks for the reply. Yeah i ended up staying on the latest build but then removing tone mapping for now as a short term fix.
OK, so it is a Kernel/driver issue - that’s now understood.
Out of interest, though, what does Plex version .6999 do differently such that it is not affected by the kernel/driver issue?
Old Kernel + Old Plex - Works
New Kernel + New Plex - Broken
New Kernel + Old Plex - Works
Has anyone tested Old Kernel + New Plex? Presumably that works, but what changed in Plex?
Thats a very good question! I cant roll back my unraid very easily so i havent check this one but id say you are right that old Kernel and new Plex will work.
Also, even though New Kernel and old Plex works i still get Transcoding and Media scan segfaults during the maintenance scan which i never got before. So something about the new Kernel has definitely broken something.
Do you have any updates about this issue?
I have the same issue after I upgrade my Unraid from 6.11 to 6.12,
BUT it still not working even I disabled Tone Mapping and degrade to 6999. ( Not tested rigorously)
Thanks.
If you Downgraded to 6999 you shouldnt need to disable tone mapping but if it still doesnt hw transcode try stopping plex then deleting the Codecs folder and then start up plex and see if that works. It will Auto download the codecs again. I jad to do that at least once when i was flip flopping between releases troubleshooting.
Then try the latest Plex again with tone mapping off.
Also, under “Transcoder” in your server settings, leave the GPU selection set to Auto.
Hopefully that gets you going again.
But unfortunately no further updates. We are stuck here until Unraid uses a newer Kernel ![]()
When using the 1.32.5 version, the image is blurred, and it works fine in the 1.32.4 version.
OS: pve 7.4-3
Kernel: 6.2.11-2-pve
CPU: Intel 12700
Hmm, you might need to ask @ChuckPa to have a look at the logs to see whats going on here.
So with 1.32.4 and the 6.2 Kernel everything works, including hw transcoding with Tone mapping enabled?
