[FFmpeg-trac] #6405(undetermined:new): Compile troubles with “cuvid”, “nvenc” and “npp”

FFmpeg trac at avcodec.org
Thu May 25 18:12:55 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):


 Yes, the libnpp* libraries do not come with the nvidia driver.
 However, you can compile static with them (instead of regular dynamic
 linking to libnpp*.so).

 Moreover, libnpp* libraries are not linked to CUDA in any sense. As they
 are linked to the driver and not to the libcuda*.so. So you can use them
 without linking with "-lcuda".

 Then, the requirement to "link with the CUDA SDK" is not necessary to
 enable the libnpp.
 You can check it:

 - Install the CUDA SDK and compile FFMPEG.
 - If you compile with "--enable-libnpp --enable-cuda --enable-cuda-sdk"
 then the binary runs and is linked to libcuda*.so (check it with ldd).
 - If you make the change in the configuration file
 (scale_npp_filter_deps="cuda libnpp") and compile with "--enable-libnpp
 --enable-cuda --disable-cuda-sdk" then all goes fine... the binary runs
 and is not linked to libcuda*.so

 In fact, this confusion was caused when someone has updated the CUDA SDK
 files in FFMEPG.
 Before this change the old config was:
  [scale_npp_filter_deps="cuda libnpp"]
 and now is:
  [scale_npp_filter_deps="cuda_sdk libnpp"].

 For sure you need to install the CUDA SDK, but the correct configuration
 is the ancient: the requirement is "cuda" not "cuda_sdk" (for libnpp).

 Please, update the configuration file to reflect this fact.

 I confirm this because I'm compiling and using one custom FFMpeg compiled
 as this.

Ticket URL: <https://trac.ffmpeg.org/ticket/6405#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list