Opened 7 years ago

Closed 6 years ago

#6576 closed defect (invalid)

Cannot load libnvidia-encode.so.1 library

Reported by: Oleg Burlacu 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 (3)

comment:1 by Oleg Burlacu, 7 years ago

Version: unspecifiedgit-master

comment:2 by Timo R., 7 years ago

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.

comment:3 by Carl Eugen Hoyos, 6 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.