Netflix / vmaf

Perceptual video quality assessment based on multi-method fusion.
Other
4.67k stars 755 forks source link

Update Dockerfile.cuda #1380

Open Brainiarc7 opened 4 months ago

Brainiarc7 commented 4 months ago

This patch is a fix to #1379, wherein:

  1. The CUDA library stubs are added to ldconfig's cache.
  2. The build type for libvmaf is set to shared.
  3. The included models are also copied to /usr/local/share/model for re-usability with custom FFmpeg pipelines as needed.
  4. ldconfig is called up immediately after libvmaf build so that FFmpeg can detect it.
guyoun commented 4 months ago

I think the FFmpeg build failure is due to the missing libcuda.so.1 library file.

The vmaf is linked with libcuda.so.1 because of SONAME of libcuda.so is libcuda.so.1 When enable libvmaf of FFmpeg, it requires libcuda.so.1 but this file does not exist when building the Docker image. I am unsure why the SONAME of /usr/local/cuda/lib64/stubs/libcuda.so is libcuda.so.1. According to this issue on the NVIDIA GitHub repository, there are no plans to fix this.