Hello
I am fighting with HW transcode on my bare metal (HP microserver) headless debian 10 box with AMD CPU and NVIDIA quadro 400 GPU
My plex box has no more the guts to transcode HEVC with CPU, I need the help of GPU
I am aware that missing quicksync feature of my CPU is not an issue, as plex will skip to NVENC if available.
As I have a valid plex pass, I for sure enabled hardware transcoding in plex config UI, double check.
here is my kernel, might be the cuplrit?
# uname -a
Linux microserver 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
Installed required drivers version from backports :
nvidia-driver 450.80
here is the output of nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: N/A |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Quadro P400 On | 00000000:01:00.0 Off | N/A |
| 34% 25C P8 N/A / N/A | 1MiB / 1999MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
plex membership looks OK :
# groups plex
plex : plex video wonder render
# ls -ls /dev/nvidia*
0 crw-rw-rw- 1 root root 195, 0 déc. 30 06:12 /dev/nvidia0
0 crw-rw-rw- 1 root root 195, 255 déc. 30 06:12 /dev/nvidiactl
0 crw-rw-rw- 1 root root 195, 254 déc. 30 06:12 /dev/nvidia-modeset
/dev/nvidia-caps:
total 0
0 cr-------- 1 root root 246, 1 déc. 29 23:48 nvidia-cap1
0 cr--r--r-- 1 root root 246, 2 déc. 29 23:48 nvidia-cap2
# ls -la /dev/dri
total 0
drwxr-xr-x 3 root root 100 déc. 30 06:12 .
drwxr-xr-x 19 root root 3680 déc. 29 23:48 ..
drwxr-xr-x 2 root root 80 déc. 30 06:12 by-path
crw-rw---- 1 root render 226, 0 déc. 30 06:12 card0
crw-rw---- 1 root render 226, 128 déc. 30 06:12 renderD128
I still canât get HW transcode, from the logs :
Jan 06, 2021 22:19:17.691 [0x7f172b7fe700] DEBUG - Completed: [127.0.0.1:52328] 200 PUT /video/:/transcode/session/2iv0s3tc9vgnljyfafgkld91/aa09dd0a-f877-4cf9-9181-41da29b0a94d/progress/streamDetail?index=3&id=0&codec=hdmv_pgs_subtitle&type=subtitle&language=eng (19 live) 0ms 195 bytes (pipelined: 11) (range: bytes=0-)
Jan 06, 2021 22:19:17.692 [0x7f1703fff700] DEBUG - Request: [127.0.0.1:52328 (Loopback)] PUT /video/:/transcode/session/2iv0s3tc9vgnljyfafgkld91/aa09dd0a-f877-4cf9-9181-41da29b0a94d/progress/streamDetail?index=4&id=0&codec=ac3&type=audio&bitrate=640000&language=eng&channels=6&layout=5.1%28side%29&sampleRate=48000&disp_default=1 (19 live) Signed-in Token (qube001) (range: bytes=0-)
Jan 06, 2021 22:19:17.693 [0x7f172b7fe700] DEBUG - Completed: [127.0.0.1:52328] 200 PUT /video/:/transcode/session/2iv0s3tc9vgnljyfafgkld91/aa09dd0a-f877-4cf9-9181-41da29b0a94d/progress/streamDetail?index=4&id=0&codec=ac3&type=audio&bitrate=640000&language=eng&channels=6&layout=5.1%28side%29&sampleRate=48000&disp_default=1 (19 live) 0ms 195 bytes (pipelined: 12) (range: bytes=0-)
qube@ipv4:~/Téléchargements/PLEX$ grep -i codec Plex\ Media\ Server.log
Jan 06, 2021 22:03:51.810 [0x7f17037fe700] DEBUG - Job running: EAE_ROOT='/tmp/pms-db82c3d9-3653-4bb6-945a-068c0508b050/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/367b3d4-3654-linux-x86_64/' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Media Scanner' '--scan' '--refresh' '--section' '8' '--activity' 'cf4e586d-f53b-4f93-9db4-ce7adb03012f'
Jan 06, 2021 22:19:17.515 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Jan 06, 2021 22:19:17.515 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Jan 06, 2021 22:19:17.515 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.515 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Jan 06, 2021 22:19:17.516 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jan 06, 2021 22:19:17.516 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Jan 06, 2021 22:19:17.516 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Jan 06, 2021 22:19:17.516 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
Jan 06, 2021 22:19:17.516 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.516 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Jan 06, 2021 22:19:17.516 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Jan 06, 2021 22:19:17.516 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] MDE: Cannot direct stream audio stream due to codec ac3 when profile only allows aac
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Jan 06, 2021 22:19:17.517 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.518 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.519 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.520 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Jan 06, 2021 22:19:17.521 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jan 06, 2021 22:19:17.521 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Jan 06, 2021 22:19:17.521 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Jan 06, 2021 22:19:17.521 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
Jan 06, 2021 22:19:17.521 [0x7f1729ffb700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 06, 2021 22:19:17.521 [0x7f1729ffb700] DEBUG - [Transcode] MDE: Cannot direct stream audio stream due to codec ac3 when profile only allows aac
Jan 06, 2021 22:19:17.644 [0x7f16e27ec700] DEBUG - [Transcode] Job running: EAE_ROOT='/tmp/pms-db82c3d9-3653-4bb6-945a-068c0508b050/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/367b3d4-3654-linux-x86_64/' XDG_CACHE_HOME='/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache' XDG_DATA_HOME='/usr/lib/plexmediaserver/Resources' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Transcoder' '-codec:0' 'hevc' '-codec:1' 'ac3' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' '/mnt/storage/VIDEO/films/Le nom de la rose (1986).mkv' '-filter_complex' '[0:0]scale=w=1274:h=720[0];[0]format=pix_fmts=yuv420p|nv12[1]' '-filter_complex' '[0:1] aresample=async=1:ocl='\''stereo'\'':rematrix_maxval=0.000000dB:osr=48000[2]' '-map' '[1]' '-codec:0' 'libx264' '-crf:0' '23' '-maxrate:0' '3659k' '-bufsize:0' '7318k' '-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,0+n_forced*3)' '-map' '[2]' '-metadata:s:1' 'language=fre' '-codec:1' 'aac' '-b:1' '119k' '-f' 'dash' '-seg_duration' '3' '-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/2iv0s3tc9vgnljyfafgkld91/aa09dd0a-f877-4cf9-9181-41da29b0a94d/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/2iv0s3tc9vgnljyfafgkld91/aa09dd0a-f877-4cf9-9181-41da29b0a94d/progress'
It seems plex cannot access to NVIDIA hardware, I dâonât get what could be wrong
I hope someone in similar setup could give some pointers to help me to troubleshoot
I thank you in advance for the enlightenment ![]()
Server Version#: 1.21.1.3830
Player Version#:
