I have installed Channels on a new Ubuntu 20.04 server and can not get the hardware transcoding enabled. I have followed the steps provided in the install documentation for Intel Quick Sync, but its still showing Software under the transcode settings. Any suggestions?
Check the permission on /dev/dri, and ensure that the user running the Channels DVR server is a member of the group that owns the device. It is usually either the video or render group.
I have done that and it the user is part of the video and render group. Here is the output from the test HW Acceleration.
Trying nvenc: /home/myuser/channels-dvr/2020.09.14.2100/ffmpeg-dl /home/myuser/channels-dvr/2020.09.14.2100/ffmpeg-dl -hide_banner -nostats -loglevel warning -loglevel verbose -f lavfi -t 0.1 -i color=black:640x480 -f null -c:v h264_nvenc -profile:v high -level 42 -b:v 400k -maxrate:v 600k -y /dev/null
[Parsed_color_0 @ 0x3cc89c0] size:640x480 rate:25/1 duration:-1.000000 sar:1/1
Input #0, lavfi, from 'color=black:640x480':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 0x3d13a80] w:640 h:480 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[h264_nvenc @ 0x3cf5ac0] Cannot load libcuda.so.1
[h264_nvenc @ 0x3cf5ac0] Nvenc unloaded
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
2020/11/26 02:12:59.470182 [HWE] Failure: exit status 1
2020/11/26 02:12:59.470200 [HWE] Trying amf: /home/myuser/channels-dvr/2020.09.14.2100/ffmpeg-dl /home/myuser/channels-dvr/2020.09.14.2100/ffmpeg-dl -hide_banner -nostats -loglevel warning -loglevel verbose -f lavfi -t 0.1 -i color=black:640x480 -f null -c:v h264_amf -profile:v high -level 42 -b:v 400k -maxrate:v 600k -y /dev/null
[Parsed_color_0 @ 0x2dc59c0] size:640x480 rate:25/1 duration:-1.000000 sar:1/1
Input #0, lavfi, from 'color=black:640x480':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Unknown encoder 'h264_amf'
2020/11/26 02:12:59.471764 [HWE] Failure: exit status 1
2020/11/26 02:12:59.471776 [HWE] Cannot access /dev/dri/renderD129: no such file or directory
2020/11/26 02:12:59.471783 [HWE] Trying vaapi@/dev/dri/renderD128: /home/myuser/channels-dvr/2020.09.14.2100/ffmpeg /home/myuser/channels-dvr/2020.09.14.2100/ffmpeg -hide_banner -nostats -loglevel warning -loglevel verbose -init_hw_device vaapi=intel:/dev/dri/renderD128 -f lavfi -t 0.1 -i color=black:640x480 -f null -y /dev/null
[AVHWDeviceContext @ 0x3702dc0] libva: VA-API version 1.5.0
[AVHWDeviceContext @ 0x3702dc0] libva: va_getDriverName() returns 0
[AVHWDeviceContext @ 0x3702dc0] libva: driver init failed
[AVHWDeviceContext @ 0x3702dc0] libva: va_openDriver() returns -1
[AVHWDeviceContext @ 0x3702dc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value 'vaapi=intel:/dev/dri/renderD128' for option 'init_hw_device': Input/output error
Error parsing global options: Input/output error
2020/11/26 02:12:59.480708 [HWE] Failure: exit status 1
2020/11/26 02:12:59.480718 [HWE] Cannot access /dev/renderD128: no such file or directory
2020/11/26 02:12:59.480724 [HWE] Trying vaapi@/dev/dri/card0: /home/myuser/channels-dvr/2020.09.14.2100/ffmpeg /home/myuser/channels-dvr/2020.09.14.2100/ffmpeg -hide_banner -nostats -loglevel warning -loglevel verbose -init_hw_device vaapi=intel:/dev/dri/card0 -f lavfi -t 0.1 -i color=black:640x480 -f null -y /dev/null
[AVHWDeviceContext @ 0x222ddc0] libva: VA-API version 1.5.0
[AVHWDeviceContext @ 0x222ddc0] libva: va_getDriverName() returns 0
[AVHWDeviceContext @ 0x222ddc0] libva: driver init failed
[AVHWDeviceContext @ 0x222ddc0] libva: va_openDriver() returns -1
[AVHWDeviceContext @ 0x222ddc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value 'vaapi=intel:/dev/dri/card0' for option 'init_hw_device': Input/output error
Error parsing global options: Input/output error
2020/11/26 02:12:59.497392 [HWE] Failure: exit status 1