Hi,
From two months I can’t run ffmpeg encoding with hardware acceleration. Firstly on Manjaro and then I reinstall it to Fedora. I have Nvidia GTX 1660Ti. When I run for example:
sudo ffmpeg -i avengers.mp4 -c:v h264_nvenc -b:v 1M output.mp4
I always got this error:
[h264_nvenc @ 0x56418fcbfb40] dl_fn->cuda_dl->cuInit(0) failed → CUDA_ERROR_UNKNOWN: unknown error
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
Few times I have error that device is not CUDA capable but how is it possible (I have newest LTS drivers).
My nvidia-smi output:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| 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 GeForce GTX 166... Off | 00000000:08:00.0 On | N/A |
| 0% 43C P8 15W / 140W | 489MiB / 5941MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
FFmpeg version:
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
What is an issue? Always it’s work and from 2-3 months dosn’t work and I can’t work with hardware acceleration.
I really please for help.