HDR Tone Mapping not compatible with HW Accelerated transcoding anymore (DS920+)

Remove it for now and retest.

The new Intel drivers don’t like it called out directly.
PMS will add ,965 when needed based on codec in use.

A lot of changes/improvements were made (hacks removed) in the last couple releases. I need to make a list of everything no-longer-needed and then identify by CPU generation. :roll_eyes:

Restored previous snapshot, then Removed Codecs and the VaapiDriver setting from Preferences.xml and retested the video. Now shows below. Does this get populated with more video types based on what what Plex believes is need to watch the current video? But still Browser tone-mapping is also not working along with iOS Plex app and etc. Tested with hardware transcoding device set to both Auto and GeminiLake [UHD Graphics 600]

The Codecs will populate as needed.
(Due to Dolby licensing, we are required to download all codecs-on-demand)

Seems to have mostly fixed browser based tone-mapping. Non browser connections (at least tested iOS) seem to still be broken.

(Image is from Firefox Browser)

Although this video still seems to have issues (Image is also from Firefox browser).

Image taken from iPhone iOS 17.5.1

I will need iOS app logs as I can’t replicate.

My mistake :man_facepalming: the above images are not from HDR video (or does not show as HDR in Plex Web).

Browser:

IOS:

So the Codecs folder removal and restart looks to have fixed HDR content (I think), unless it was just has issues with non HDR content. I’m looking through some of the conent I tested previously to double-check.

I guess I was mistaken and its not the HDR content having the issues.

Video: 1080p (HEVC Main 10)
Audio: English (OPUS Stereo)
Subtitles: Englished Forced (ASS)

Firefox (no issues):

Apple TV 4K:


Video: 4K HDR10 (HEVC Main 10)
Audio: English (TRUEHD 7.1)
Subtitles: off

Firefox (no issues):

Apple TV 4K (no issues):


Video: 1080p (HEVC Main 10)
Audio: English (EAC3 5.1)
Subtitles: Off

Firefox:

Apple TV 4K:


@ChuckPa you pointed me to this thread but I’m not certain if it is the exact same issue. I’m using Gemini Lake but no Synology. I’m able to hardware transcode with Tonemapping disabled. As soon as I enable it, it falls back to software transcoding. I cannot find an error 1001 though.

Could you have a look into my logs?

I’ve also tried adding VaapiDriver="i965" to Preferences.xml. Server is on the current version. I’m not sure if I should also try to downgrade?

Plex Media Server.log.zip (132.6 KB)

@admin_wilmaw

Take VaapiDriver="i965" back out. We’ve made PMS and the transcoder smart enough to know when it’s needed now. It’s part of our migration path to FFMPEG 6.1

On the DS920+, (GeminiLake), you will need it off now.

You’ll get errors like this: No hardware decode accelerator found

Aug 30, 2024 01:03:30.231 [140463734532920] DEBUG - [Req#38a/Transcode] TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Aug 30, 2024 01:03:30.231 [140463734532920] DEBUG - [Req#38a/Transcode] [Universal] Using local file path instead of URL: /media/plex-shows/Serien/Game of Thrones (2011)/Season 01/Game of Thrones (2011) - S01E01 - Der Winter naht - BD wilmaw HEVC 2160p.mkv
Aug 30, 2024 01:03:30.232 [140463734532920] DEBUG - [Req#38a/Transcode] TPU: hardware transcoding: final decoder: , final encoder: 
Aug 30, 2024 01:03:30.233 [140463734532920] DEBUG - [Req#38a/Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/27d3929-731e70e17b964ba367f4016a-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -codec:1 ac3 -ss 0 -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i "/media/plex-shows/Serien/Game of Thrones (2011)/Season 01/Game of Thrones (2011) - S01E01 - Der Winter naht - BD wilmaw HEVC 2160p.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=deu -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/nsby7zu7pbai005lqmrqksaq/633b938b-fc18-4c17-99f0-cc31f8ea9a08/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:6 -metadata:s:0 language=deu -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/nsby7zu7pbai005lqmrqksaq/633b938b-fc18-4c17-99f0-cc31f8ea9a08/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/nsby7zu7pbai005lqmrqksaq/633b938b-fc18-4c17-99f0-cc31f8ea9a08/progress

Apologies for the late reply. I’ve been battling QNAP all day with a priority 1 problem impacting using Plex on QNAP (VERY VERY weird problem that I think I’ve identified and know how to fix … Just need to figure out how to implement)

Ah thanks for pointing that out. So I removed the VaapiDriver="i965", but I see no actual difference. Still hw transcoding without tonemapping, but sw with tonemapping.

Plex Media Server.log.zip (137.1 KB)

Any idea or do you think I’m missing sth?

I’m re-running everything on my DS920+ now. one moment please.

I apologize for the delay. I had major technical hurdles

  1. Ubuntu update knocked my entire network down – Had to reconfigure it by hand because their update changed all the device names. GRRRRRRR
  2. Overnight, HDD failed on my NAS (cable unplugged)
  3. Fixed that but knocked another cable loose – Now 2 drives down in RAID 6
  4. Got it bandaided together until I can replace all cabling
  5. It’s now rebuilding (24 hours to rebuild the 120TB array)
  6. If it farts one more time, I will lose the array and be forced to start over.
    — 3 day recovery from my backup NAS also using 10 GbE networking)

My “Fun Meter” has been pegged

:crazy_face:

OK… results for you.

If you’re trying this way and not getting it, I WILL help you.

  1. Plex/web playback quality set for 20 Mbps (as a starting point)
  2. Movie is 50 Mbps HEVC HDR 10 movie
Duration 2:01:57
Bitrate 51150 kbps
Width 3840
Height 2160
Aspect Ratio 1.78
Video Resolution 4K
Container MKV
Video Frame Rate 24p
Video Profile main 10
  1. Playback perfect.
    – transcoding the audio
    – HW transcode video
    – HW tonemap

The issue with the DS920 is, as many forget, a “Basic/Entry level” GPU.
The UHD600 wasn’t designed to handle huge bitrates with multiple streams.
The UHD630 can handle up to about 130 Mbps output (i’ve tested this)

I can test for you but 1.40.5 (for right now) is
a. the best transcoding we have with GLK (FFMPEG 6.1 will change that)
b. is comfortable with 20-30-40 Mbps output streams.. Just remember it’s not a race car like the bigger GPUs. If you get 80 Mbps total of output, I would be very happy.

Please tell me how I can help make this work best for you and I’ll do it.

No problemo I‘m just really happy that you taking care of this and I‘m also really happy Gemini lake hw tone mapping SHOULD work again out of the box.
However, there seems to be sth fishy as in fact I still cannot get hw tone mapping to work.

I‘m using Debian 12 and Kernel 6.9. Plex is up to date and running in a docker container. I have removed the VaapiDriver="i965" from Preferences.xml again. In this last server log I posted* there is a successful hardware decoded playback WITHOUT tone mapping, followed by enabling tone mapping, restarting playback and the transcoder falling back to sw.

Could you have a look into the log? Do you have any idea what could possibly be the problem?

@admin_wilmaw

Walking down the log file:

  1. It finds the GPU
Aug 30, 2024 09:17:30.312 [140191830387512] DEBUG - [GPU] Got device: GeminiLake [UHD Graphics 605], intel@builtin, default true, best true, ID 8086:3184:1849:2212@0000:00:02.0, DevID [8086:3184:1849:2212], flags 0x34e7
Aug 30, 2024 09:17:30.312 [140191830387512] INFO - Preemptively preparing driver ivd for GPU GeminiLake [UHD Graphics 605]
Aug 30, 2024 09:17:30.312 [140191830387512] DEBUG - [DriverDL/ivd] Skipping download; already exists
Aug 30, 2024 09:17:30.313 [140191830387512] INFO - Preemptively preparing driver icr for GPU GeminiLake [UHD Graphics 605]
Aug 30, 2024 09:17:30.313 [140191830387512] DEBUG - [DriverDL/icr] Skipping download; already exists
  1. It starts transcoding with the GPU
Aug 30, 2024 09:18:58.360 [140191641643832] DEBUG - [Req#4de/Transcode] [FFMPEG] - Created surface 0x4000000.
Aug 30, 2024 09:18:58.360 [140191641643832] DEBUG - [Req#4de/Transcode] [FFMPEG] - Direct mapping possible.
Aug 30, 2024 09:18:58.360 [140191641643832] INFO - [Req#4de/Transcode] Preparing driver ivd for GPU GeminiLake [UHD Graphics 605]
Aug 30, 2024 09:18:58.360 [140191641643832] DEBUG - [Req#4de/Transcode/DriverDL/ivd] Skipping download; already exists
Aug 30, 2024 09:18:58.361 [140191641643832] DEBUG - [Req#4de/Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Aug 30, 2024 09:18:58.361 [140191641643832] DEBUG - [Req#4de/Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/27d3929-731e70e17b964ba367f4016a-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:0 hevc -hwaccel:0 vaapi -hwaccel_fallback_threshold:0 10 -hwaccel_output_format:0 vaapi -hwaccel_device:0 vaapi -codec:1 ac3 -analyzeduration 20000000 -probesize 20000000 -i "/media/plex-shows/Serien/Game of Thrones (2011)/Season 01/Game of Thrones (2011) - S01E01 - Der Winter naht - BD wilmaw HEVC 2160p.mkv" -filter_complex "[0:0]hwupload[0];[0]scale_vaapi=w=1920:h=1080:format=nv12[1];[1]hwupload[2]" -map "[2]" -codec:0 h264_vaapi -b:0 8403k -maxrate:0 11205k -bufsize:0 22410k -r:0 23.975999999999999 -force_key_frames:0 "expr:gte(t,n_forced*1)" -filter_complex "[0:1] aresample=async=1:ochl='stereo':rematrix_maxval=0.000000dB:osr=48000[3]" -map "[3]" -metadata:s:1 language=deu -codec:1 aac -b:1 151k -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/7gbl6fjnxn6x2nyejdqvo9w0/9b14e719-8154-4101-afe1-f6647127d6a8/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:6 -metadata:s:0 language=deu -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/7gbl6fjnxn6x2nyejdqvo9w0/9b14e719-8154-4101-afe1-f6647127d6a8/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 -init_hw_device vaapi=vaapi:/dev/dri/renderD128,driver=i965 -filter_hw_device vaapi -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/7gbl6fjnxn6x2nyejdqvo9w0/9b14e719-8154-4101-afe1-f6647127d6a8/progress
Aug 30, 2024 09:18:58.361 [140191641643832] DEBUG - [Req#4de/Transcode/JobRunner] In directory: "/transcode/Transcode/Sessions/plex-transcode-7gbl6fjnxn6x2nyejdqvo9w0-9b14e719-8154-4101-afe1-f6647127d6a8"
Aug 30, 2024 09:18:58.361 [140191645838136] DEBUG - [Req#4dc/Transcode] Found session GUID of 7gbl6fjnxn6x2nyejdqvo9w0 in session start.
Aug 30, 2024 09:18:58.361 [140191645838136] DEBUG - [Req#4dc/Transcode] Using existing transcode session.
Aug 30, 2024 09:18:58.362 [140191641643832] DEBUG - [Req#4de/Transcode/JobRunner] Jobs: Starting child process with pid 587
Aug 30, 2024 09:18:58.368 [140191729724216] DEBUG - Request: [127.0.0.1:54886 (Loopback)] PUT /video/:/transcode/session/7gbl6fjnxn6x2nyejdqvo9w0/9b14e719-8154-4101-afe1-f6647127d6a8/progress?status=startup (9 live) #4e3 Signed-in Token (.wilmaw.) (range: bytes=0-) 
  1. Next attempt, the GPU has not yet returned to “ready” state. Transcoder can’t see it.
Aug 30, 2024 09:20:32.345 [140191830387512] DEBUG - TranscodeUniversalRequest: adapting profile with augmentation data: add-limitation(scope=videoCodec&scopeName=hevc&type=upperBound&name=video.width&value=4096&replace=true)+add-limitation(scope=videoCodec&scopeName=hevc&type=upperBound&name=video.height&value=2160&replace=true)+add-limitation(scope=videoCodec&scopeName=hevc&type=upperBound&name=video.bitDepth&value=10&replace=true)+add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.bitrate&value=12000&replace=true)+append-transcode-target-codec(type=videoProfile&context=streaming&protocol=dash&videoCodec=hevc)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=dash&type=match&name=video.colorTrc&list=bt709|bt470m|bt470bg|smpte170m|smpte240m|bt2020-10|smpte2084&isRequired=false)+append-transcode-target-codec(type=videoProfile&context=streaming&audioCodec=aac&protocol=dash)
Aug 30, 2024 09:20:32.346 [140191830387512] DEBUG - TranscodeUniversalRequest: using augmented profile Web
Aug 30, 2024 09:20:32.346 [140191830387512] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/23647?includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=e8lp070voh53axp0mnuc8o0r
Aug 30, 2024 09:20:32.352 [140191830387512] DEBUG - We're going to try to auto-select an audio stream for account 1.
Aug 30, 2024 09:20:32.352 [140191830387512] DEBUG - Selecting best audio stream for part ID 71750 (language: de)
Aug 30, 2024 09:20:32.352 [140191830387512] DEBUG - We're going to try to auto-select a subtitle for account 1.
Aug 30, 2024 09:20:32.352 [140191830387512] DEBUG - Subtitles: Found a candidate subtitle language [de] for a foreign film
Aug 30, 2024 09:20:32.352 [140191830387512] DEBUG - Audio Stream: 221909, Subtitle Stream: 221914
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: Selected protocol dash; container: mp4
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: analyzing media item 51981
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: Direct Play is disabled
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: media must be transcoded in order to use the dash protocol
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - Der Winter naht - video.bitDepth limitation applies: 10 > 8
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: Direct Streaming is disabled, so video stream will be transcoded
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no remuxable profile found, so video stream will be transcoded
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: Audio Direct Streaming is disabled, so video's audio stream will be transcoded
Aug 30, 2024 09:20:32.354 [140191830387512] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
Aug 30, 2024 09:20:32.355 [140191830387512] DEBUG - MDE: Game of Thrones: Das Lied von Eis und Feuer - S1 E1 - Der Winter naht: selected media 0 / 51981
Aug 30, 2024 09:20:32.355 [140191830387512] DEBUG - Streaming Resource: Calculated bandwidth of 12870kbps exceeds bandwidth limit. Changing decision parameters provided by client to fit bandwidth limit of 12000kbps
Aug 30, 2024 09:20:32.355 [140191830387512] DEBUG - Streaming Resource: Determining preferred transcode encoders through transcode only decision.
Aug 30, 2024 09:20:32.355 [140191830387512] DEBUG - Streaming Resource: Reducing playback quality for 11428kbps stream bitrate: video resolution to 1920x1080, audio channels to 2, quality to 34
Aug 30, 2024 09:20:32.355 [140191830387512] DEBUG - MDE: Selected protocol dash; container: mp4
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: analyzing media item 51981
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: Direct Play is disabled
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: media must be transcoded in order to use the dash protocol
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no direct play video profile exists for http/mkv/hevc/ac3
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Der Winter naht - video.bitDepth limitation applies: 10 > 8
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Der Winter naht - audio.channels limitation applies: 6 > 2
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: Direct Streaming is disabled, so video stream will be transcoded
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: no remuxable profile found, so video stream will be transcoded
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: E1 - Der Winter naht: Audio Direct Streaming is disabled, so video's audio stream will be transcoded
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - MDE: Game of Thrones: Das Lied von Eis und Feuer - S1 E1 - Der Winter naht: selected media 0 / 51981
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Streaming Resource: Reached Decision id=23647 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=51981 part=(id=71750 decision=transcode container=mp4 protocol=dash streams=(Video=(id=221908 decision=transcode bitrate=11205 encoder=libx264 width=1920 height=1080) Audio=(id=221909 decision=transcode bitrate=151 encoder=aac channels=2 rate=48000) Subtitle=(id=221914 decision=transcode bitrate=2147483647 encoder=ass languageCode=deu location=sidecar))))
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Transcode Session: Going to restart at offset 0.000000 with segment number -1
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Killing job.
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Signalling job ID 760 with 9
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Job was already killed, not killing again.
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Stopping transcode session d2nh05dfrmgajla66vsw0lhy
Aug 30, 2024 09:20:32.356 [140191830387512] DEBUG - Starting a transcode session d2nh05dfrmgajla66vsw0lhy at offset 0.0 (state=3)
Aug 30, 2024 09:20:32.357 [140191830387512] DEBUG - TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Aug 30, 2024 09:20:32.357 [140191830387512] DEBUG - [Universal] Using local file path instead of URL: /media/plex-shows/Serien/Game of Thrones (2011)/Season 01/Game of Thrones (2011) - S01E01 - Der Winter naht - BD wilmaw HEVC 2160p.mkv
Aug 30, 2024 09:20:32.357 [140191830387512] DEBUG - Codecs: hardware transcoding: testing API vaapi for device '' ()
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x30323449 -> yuv420p.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Created surface 0x4000000.
Aug 30, 2024 09:20:32.358 [140191830387512] DEBUG - [FFMPEG] - Direct mapping possible.
Aug 30, 2024 09:20:32.359 [140191830387512] DEBUG - TPU: hardware transcoding: final decoder: , final encoder: 
Aug 30, 2024 09:20:32.359 [140191830387512] DEBUG - [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/27d3929-731e70e17b964ba367f4016a-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:0 hevc -codec:1 ac3 -analyzeduration 20000000 -probesize 20000000 -i "/media/plex-shows/Serien/Game of Thrones (2011)/Season 01/Game of Thrones (2011) - S01E01 - Der Winter naht - BD wilmaw HEVC 2160p.mkv" -filter_complex "[0:0]scale=w=1920:h=1080:force_divisible_by=4[0];[0]format=p010,tonemap=mobius[1];[1]format=pix_fmts=yuv420p|nv12[2]" -map "[2]" -codec:0 libx264 -crf:0 21 -maxrate:0 11205k -bufsize:0 22410k -r:0 23.975999999999999 -preset:0 veryfast -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,n_forced*1)" -filter_complex "[0:1] aresample=async=1:ochl='stereo':rematrix_maxval=0.000000dB:osr=48000[3]" -map "[3]" -metadata:s:1 language=deu -codec:1 aac -b:1 151k -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/d2nh05dfrmgajla66vsw0lhy/1e69943c-a0d2-482a-9403-7211e89e09ae/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:6 -metadata:s:0 language=deu -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/d2nh05dfrmgajla66vsw0lhy/1e69943c-a0d2-482a-9403-7211e89e09ae/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 -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/d2nh05dfrmgajla66vsw0lhy/1e69943c-a0d2-482a-9403-7211e89e09ae/progress

Can you please get me a sample of this file so I can test here?
I want to be able to replicate what you see

Finally home again. Here is that sample.
https://drive.google.com/file/d/1mxZxgULDSTIlovQqVGY8Pl3uUwsYApwl/view?usp=drive_link

@admin_wilmaw

Went to download the samle – Permission denied, Request sent via google.

I am using 1.40.5 on DS920+

  1. If I play normally, (start , let it play, finish) it is perfect.
  2. If I start playback then jump forward or change resolution/quality – anything which forces a new transcoder instance (reconfiguring itself) – It will fail (can’t find hardware)
  3. Digging into the Intel Media Driver, I find the problem. FFMPEG issues the stop, it shuts down the session, but the Intel Media Driver does not respond instantly. It needs 5-10 seconds to shutdown its connection to the hardware (it has an exclusive lock on it).

I still would like to see your video file to confirm there’s not another issue with the driver.

Sorry I’m not using Google Drive regularly. Should be accessible now. This 2nd instance issue could be the problem. Do you see it with tonemapping enabled only or always?

It’s only with Tonemapping enabled. This is because the Intel Media Driver also has to connect to its internal OpenCL layer (tone mapping)

Ah ok that makes sense. I just wonder why nobody else seems to have an issue :confused: … Have you been able to download the sample?