Transcoding not working while playback

Server Version#: 1.41.7.9799
Hello! I have hardware transcoding enabled on my linux PC but what’s weird is that it doesn’t seem to be working while playback is happening. However hardware transcoding works fine if you set the quality manually before playing something. I want to be able for the server to transcode automatically though.

When attempting to transcode while playback I get this error.

When I retry it’ll sometimes transcode or sometimes it just goes back to direct stream. When it does transcode, it’ll transcode a few seconds of it then stops playback entirely. When it doesn’t transcode it stops playback and gives this error:

However if you attempt to hit retry a few times eventually it would transcode without issues. And the reason I know this is because I have nvidia-smi watched on my terminal. In there I can see when it transcodes only a few seconds it’ll use the GTX 1650 it has and then suddenly stops using it. But if it does manage to transcode without issues I can see it being used.

Not sure what’s causing this, CPU transcoding works (slower tho, and this PC is not capable of doing that), and also tried other things such as SMB changes on my storage and the like. This is on any client, web, mac, windows, and mobile.

can you make certain that the server’s DEBUG logging is enabled ?
(Settings - server - General - Show Advanced - SAVE if changed)

Next, Please recreate the attempt (15-20 seconds is all that’s needed)

When you stop it,

Settings - Troubleshooting (left panel) - Download Logs

PMS will give you a ZIP file. Please attach that ZIP file here.

Sure thing! Here it is enclosed.
Plex Media Server Logs_2025-05-24_05-49-37.zip (5.2 MB)

PMS did see the card and your GPU when it started.

May 24, 2025 04:05:31.582 [135324157647504] DEBUG - Captured session 1.
May 24, 2025 04:05:31.584 [135324063722296] DEBUG - [GPU] Got device: NVIDIA TU117 [GeForce GTX 1650], nvidia@unknown, default true, best true, ID 10de:1f82:19da:c548@0000:01:00.0, DevID [10de:1f82:19da:c548], flags 0xe8
May 24, 2025 04:05:31.584 [135324063722296] DEBUG - [GPU] Got device: Intel HD Graphics 630, intel@builtin, default false, best true, ID 8086:5912:1028:07a2@0000:00:02.0, DevID [8086:5912:1028:07a2], flags 0x38e7
May 24, 2025 04:05:31.705 [135324063722296] INFO - Preemptively preparing driver imd for GPU Intel HD Graphics 630
May 24, 2025 04:05:31.713 [135324063722296] DEBUG - [DriverDL/imd] Skipping download; already exists
May 24, 2025 04:05:31.724 [135324063722296] INFO - Preemptively preparing driver icr for GPU Intel HD Graphics 630
May 24, 2025 04:05:31.724 [135324063722296] DEBUG - [DriverDL/icr] Skipping download; already exists
May 24, 2025 04:05:31.724 [135323845151544] DEBUG - Grabber: Cleaning up orphaned grabs.

It seems to be able to use the Nvidia for most of the transcodes.

May 24, 2025 04:06:20.166 [135323760233272] DEBUG - [Req#2fd/Transcode] [Universal] Using local file path instead of URL: /mnt/vault101_emby/movies/Apocalypse Now (1979)/Apocalypse.Now.1979.Redux.PROPER.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT.mkv
May 24, 2025 04:06:20.166 [135323760233272] DEBUG - [Req#2fd/Transcode] TPU: hardware transcoding: final decoder: nvdec, final encoder: nvenc
May 24, 2025 04:06:20.167 [135323760233272] DEBUG - [Req#2fd/Transcode/JobRunner] Job running: CUDA_CACHE_PATH="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Shaders/CUDA" EAE_ROOT=/tmp/pms-5fe039d4-160a-4f27-bc2b-875977f3bf17/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/1c96867-c7c51eae1050ee8a09ae8dc1-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -hwaccel:0 nvdec -hwaccel_fallback_threshold:0 10 -threads:0 1 -hwaccel_output_format:0 cuda -hwaccel_device:0 cuda -codec:1 truehd_eae -eae_prefix:1 xll940ynuptytjfjw6ckfwkz_ -analyzeduration 20000000 -probesize 20000000 -i "/mnt/vault101_emby/movies/Apocalypse Now (1979)/Apocalypse.Now.1979.Redux.PROPER.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT.mkv" -filter_complex "[0:0]hwupload[0];[0]scale_cuda=w=3840:h=2160:format=p010[1];[1]tonemap_cuda=hable:nv12[2]" -map "[2]" -metadata:s:0 language=eng -codec:0 h264_nvenc -b:0 20000k -maxrate:0 20000k -bufsize:0 40000k -forced-idr:0 1 -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=eng -codec:1 aac -b:1 256k -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/xll940ynuptytjfjw6ckfwkz/095ed54a-53d6-4c33-aa74-a4485e8b99a8/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:4 -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/xll940ynuptytjfjw6ckfwkz/095ed54a-53d6-4c33-aa74-a4485e8b99a8/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 cuda=cuda:pci:0000:01:00.0 -filter_hw_device cuda -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/xll940ynuptytjfjw6ckfwkz/095ed54a-53d6-4c33-aa74-a4485e8b99a8/progress
May 24, 2025 04:06:20.167 [135323760233272] DEBUG - [Req#2fd/Transcode/JobRunner] In directory: "/var/lib/plexmediaserver/transcode-temp/Transcode/Sessions/plex-transcode-xll940ynuptytjfjw6ckfwkz-095ed54a-53d6-4c33-aa74-a4485e8b99a8"

However, for this file, it doesn’t have any HW capable

May 24, 2025 04:06:16.641 [135323840932664] DEBUG - [HttpClient/HCl#45] HTTP/2.0 (0.0s) 200 response from GET https://downloads.plex.tv/codecs/1c96867-c7c51eae1050ee8a09ae8dc1/linux-x86_64-standard/libaac_encoder.so (reused)
May 24, 2025 04:06:16.692 [135324050832184] DEBUG - [Req#28d/Transcode] TPU: hardware transcoding: final decoder: , final encoder: 
May 24, 2025 04:06:16.693 [135324050832184] DEBUG - [Req#28d/Transcode/JobRunner] Job running: EAE_ROOT=/tmp/pms-5fe039d4-160a-4f27-bc2b-875977f3bf17/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/1c96867-c7c51eae1050ee8a09ae8dc1-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 hevc -codec:1 truehd_eae -eae_prefix:1 enkqnhoi7lai5deufn81henv_ -ss 0 -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i "/mnt/vault101_emby/movies/Apocalypse Now (1979)/Apocalypse.Now.1979.Redux.PROPER.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT.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/enkqnhoi7lai5deufn81henv/f101854d-61ad-47a0-b020-51cea093f59c/manifest?X-Plex-Http-Pipeline=infinite" -format_options f_strict=unofficial -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -map 0:4 -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/enkqnhoi7lai5deufn81henv/f101854d-61ad-47a0-b020-51cea093f59c/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/enkqnhoi7lai5deufn81henv/f101854d-61ad-47a0-b020-51cea093f59c/progress
May 24, 2025 04:06:16.693 [135324050832184] DEBUG - [Req#28d/Transcode/JobRunner] In directory: "/var/lib/plexmediaserver/transcode-temp/Transcode/Sessions/plex-transcode-enkqnhoi7lai5deufn81henv-f101854d-61ad-47a0-b020-51cea093f59c"

Is this what you’re seeing?

There is a problem (just discovered) with TrueHD → EAC3. Are you also seeing this (it would show as FPE (floating point exception) with AAC ?

So is it audio that’s the issue? I’m not really following…

That’s what I’m trying to figure out.

Do you get any different results if you use the 7700’s iGPU or play something which doesn’t have TrueHD -or- play to the Plex/web browser (AAC audio output)

I honestly don’t know, its set to transcode only on the GTX 1650. It happens on any file not just ones that have TrueHD.

@MrLionX2

Then perhaps best to try 1.41.6 or even 1.41.5 for now.

@MrLionX2

Chris Decker just posted an updated Beta which fixes Dolby-based transcoding.

You might want to try it.

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