Plex GPU transcoding will randomly not work

Server Version#: 1.31.0.6654
Player Version#: 4.87.2

Plex will transcode sometimes and other times it will use the GPU. I notice if I restart the nvidia-smi and plex it will start transcoding on the GPU again.

here are the logs I think I need to give?

That snippet , unfortunately, isn’t enough nor usable form.

  1. Can’t debug a snippet in a web browser
  2. What little I could search returned:
Feb 20, 2023 01:40:47.338 [0x7f2dfc0c7b38] DEBUG - [Req#13c/Transcode] TPU: hardware transcoding: using hardware decode accelerator nvdec
Feb 20, 2023 01:40:47.338 [0x7f2dfc0c7b38] DEBUG - [Req#13c/Transcode] TPU: hardware transcoding: zero-copy support present
Feb 20, 2023 01:40:47.338 [0x7f2dfc0c7b38] DEBUG - [Req#13c/Transcode] TPU: hardware transcoding: using zero-copy transcoding
Feb 20, 2023 01:40:47.338 [0x7f2dfc0c7b38] DEBUG - [Req#13c/Transcode] [Universal] Using local file path instead of URL: /Streaming/Tv/Planet Earth II (2016) {imdb-tt5491994}/Season 01/Planet Earth II (2016) - S01E03 - Jungles [Bluray-2160p][PQ][AAC 5.1][x265]-MZABI.mkv
Feb 20, 2023 01:40:47.338 [0x7f2dfc0c7b38] DEBUG - [Req#13c/Transcode] TPU: hardware transcoding: final decoder: nvdec, final encoder: nvenc
Feb 20, 2023 01:40:47.339 [0x7f2dfc0c7b38] DEBUG - [Req#13c/Transcode/JobRunner] Job running: CUDA_CACHE_PATH="/config/Library/Application Support/Plex Media Server/Cache/Shaders/CUDA" FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/7e8dc7a-4467-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx4936-afd1-d3158823e3d0 "/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 aac -analyzeduration 20000000 -probesize 20000000 -i "/Streaming/Tv/Planet Earth II (2016) {imdb-tt5491994}/Season 01/Planet Earth II (2016) - S01E03 - Jungles [Bluray-2160p][PQ][AAC 5.1][x265]-MZABI.mkv" -filter_complex "[0:0]hwupload[0];[0]scale_cuda=w=2276:h=1280:format=p010[1];[1]tonemap_cuda=mobius:nv12[2]" -map "[2]" -codec:0 h264_nvenc -b:0 20000k -forced-idr:0 1 -r:0 25 -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/5hcizohoyutvkntz1ad4wev4/839b8339-4c05-4251-99e4-25bab23b83f4/manifest?X-Plex-Http-Pipeline=infinite" -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -start_at_zero -copyts -vsync cfr -init_hw_device cuda=cuda: -filter_hw_device cuda -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/5hcizohoyutvkntz1ad4wev4/839b8339-4c05-4251-99e4-25bab23b83f4/progress
Feb 20, 2023 01:40:47.339 [0x7f2dfc0c7b38] DEBUG - [Req#13c/Transcode/JobRunner] In directory: "/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-5hcizohoyutvkntz1ad4wev4-839b8339-4c05-4251-99e4-25bab23b83f4"
Feb 20, 2023 01:40:47.339 [0x7f2dfc0c7b38] DEBUG - [Req#13c/Transcode/JobRunner] Jobs: Starting child process with pid 306

This tells us the Nvidia is found and ready to be used.

There were no statements which said it couldn’t be found.

The other part of the logs (the “Plex Media Server.log”), uploaded here so we can search and examine it in a text editor, would allow us to find out what really did happen with the playback from request start → transcode start

The most common cause of CPU load increase is subtitle burning.

Hi, thank you for your reply!

I may be a little confused but I thought I did copy/paste the entire log file. When I posted the GitHub link to the files Plex forums created a snippet but I can still see it all by clicking the link.

In the lines it shows “45.898 [0x7f2dfdb48b38] DEBUG - [Req#11c/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library” which after the restart started transcoding it just fine again

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