[FFmpeg-trac] #6405(undetermined:new): Compile troubles with “cuvid”, “nvenc” and “npp”
FFmpeg
trac at avcodec.org
Fri May 26 10:35:17 EEST 2017
#6405: Compile troubles with “cuvid”, “nvenc” and “npp”
-------------------------------------+-------------------------------------
Reporter: ahakon | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: cuvid, | Resolution:
nvenc, npp, cuda-sdk | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by ahakon):
Hi,
Regarding the linking to CUDA SDK, here more specific info:
- The source file "compat/cuda/dynlink_loader.h" contains all references
to dynamic links using NV HW:
# define CUDA_LIBNAME "libcuda.so.1"
# define NVCUVID_LIBNAME "libnvcuvid.so.1"
# define NVENC_LIBNAME "libnvidia-encode.so.1"
- All these files are installed by the driver in "/usr/lib/*"
- All CUDA SDK libraries (dynamic/static) are installed in
"/usr/local/cuda/lib*"
Then, you don't need to link to the CUDA SDK (-lcuda) if is not strictly
necessary.
And when you use the filter "scale_npp" is not necessary to link to the
CUDA SDK, as the use of CUDA functions are dynamic loaded from
"libcuda.so.1" as "dynlink_loader.h" describes.
This is the same behaviour of the h264_nvenc; it loads "libcuda.so.1" and
"libnvidia-encode.so.1" dynamically.
So, the configuration forcing to link to CUDA SDK when enabling the filter
"scale_npp" is erroneous.
Please, fix the configuration of the configure file to:
[scale_npp_filter_deps="cuda libnpp"]
instead of the wrong:
[scale_npp_filter_deps="cuda_sdk libnpp"]
For sure for the "scale_cuda" the requirement of "cuda_sdk" is correct.
This only applyes to filter "scale_npp".
I hope you fix it soon!
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6405#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list