Failed to Open NVENC codec: unknown error occurs (Linux)

aborealis

New Member
I have a Kali Linux with the latest version of NVIDIA drivers installed.

When I started recording with NVENC H.264 I got mentioned error.

The terminal log shows the following:

info: ---------------------------------
info: [FFmpeg NVENC encoder: 'simple_video_recording'] settings:
encoder: NVIDIA NVENC H.264 (FFmpeg)
rate_control: CQP
bitrate: 0
cqp: 23
keyint: 250
preset: p5
tuning: hq
multipass: qres
profile: high
width: 1920
height: 1080
b-frames: 2
psycho-aq: 1
GPU: 0

[h264_nvenc @ 0x556feffd0240] dl_fn->cuda_dl->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error


When I run the command `clinfo` (which I believe only collects the information), this error disappears. The terminal log shows:

info: libfdk_aac bitrate: 192, channels: 2
info: ==== Recording Start ===============================================
info: [ffmpeg muxer: 'simple_file_output'] Writing file '/home/aborealis/Видео/2023-10-23 12-35-34.mkv'...
info: [ffmpeg muxer: 'simple_file_output'] Output of file '/home/aborealis/Видео/2023-10-23 12-35-34.mkv' stopped
info: Output 'simple_file_output': stopping
info: Output 'simple_file_output': Total frames output: 78
info: Output 'simple_file_output': Total drawn frames: 89
info: ==== Recording Stop ================================================
info: libfdk_aac encoder destroyed

What can cause this error?
 
Top