Opened 13 days ago

Last modified 13 days ago

#6576 new defect

Cannot load libnvidia-encode.so.1 library

Reported by: olegburlacu Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Cannot load libnvidia-encode.so.1 library, using nvidia drivers 381.22 or newer.
How to reproduce:
CentOS 7. Install nvidia drivers, cuda library. After, compile ffmpeg-3.3.2 with --enable-nonfree --enable-nvenc --enable-gpl --enable-postproc --enable-version3 --enable-avfilter --disable-decoder=amrnb --disable-encoder=libschroedinger --enable-librtmp --enable-ffplay --disable-ffserver --enable-pthreads --enable-filters --enable-runtime-cpudetect --enable-libfdk-aac --enable-cuda --enable-libnpp

% ffmpeg -y -v verbose -hwaccel_device 0 -hwaccel cuvid -i "udp://239.20.20.50:1234" -ignore_unknown -map 0:0 -c:v:0 h264_nvenc -r 25 -profile:v:0 main -level:v:0 4.0 -preset:v:0 slow -b:v:0 5M -maxrate:v:0 8M -bufsize:v:0 8M -bf:v:0 1 -refs:v:0 2 -map 0:1 -c:a libfdk_aac -ar 48000 -ab 128k -f mpegts  "udp://239.50.50.50:1234?pkt_size=1316"
ffmpeg version 3.3.2

ffmpeg give an exception: Cannot load libnvidia-encode.so.1.
Lib libnvidia-encode.so.1 is present in /usr/lib64, with a symlink to libnvidia-encode.so.381.22 (driver library).
ldconfig show this libary as loaded.

libnvidia-encode.so.1 (libc6,x86-64) => /lib64/libnvidia-encode.so.1

And

lrwxrwxrwx.   1 root root     9 Mar 11 16:49 lib64 -> usr/lib64

By using drivers from 375.xx branch - all is ok.

Change History (2)

comment:1 Changed 13 days ago by olegburlacu

  • Version changed from unspecified to git-master

comment:2 Changed 13 days ago by oromit

This is purely an issue with your system and/or driver installation.
All ffmpeg does is dlopen that library, which is what's failing here.

Note: See TracTickets for help on using tickets.