hello,
i’m trying to configure the nvidia toolkit for my parrot enviroment.
apt-get install nvidia-driver nvidia-cuda-toolkit
worked well to be able to develop with pytorch using GPUs but i’m stuck when trying to use my nvidia card as hw-accelerator for FFMPEG.
using
locate cuda | grep /cuda$
it came out that i have a cuda dir in /usr/lib/cuda/
containing folders: bin (empty!), include (empty!), lib64 (empty!) and nvvm.
my ffmpeg source comes from the official repo: https://github.com/FFmpeg/FFmpeg
i configured it as follows:
./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/lib/cuda/include --extra-ldflags=-L/usr/lib/cuda/lib64
then i run:
make -j 10
as mentioned in the nvidia doc: https://developer.nvidia.com/ffmpeg
a simple ffmpeg command now, like
./ffmpeg -hwaccel cuvid -c:v h264_cuvid -i ../test.MP4 -vf scale_npp=1280:720 -c:v h264_nvenc ../out.mp4
gives me the following errors
[h264_nvenc @ 0x55dd2bbbcac0] Cannot load libnvidia-encode.so.1 [h264_nvenc @ 0x55dd2bbbcac0] The minimum required Nvidia driver for nvenc is 418.30 or newer 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
is it maybe due to the empty folders in my nvidia dir?
should i change the way to install nvidia-toolkit or is there something simple i can do to fix this problem?
thanks.