0

I am trying to compile FFMPEG with Nvidia Cuda support on jetson TX2 by following the tutorial https://developer.nvidia.com/ffmpeg

git clone https://github.com/FFmpeg/FFmpeg -b master 
cd FFmpeg
./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp  --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 

When I try to configure ffmpeg, it says:

ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec

I saw the first answer of the question :ERROR: cuvid requested, but not all dependencies are satisfied: cuda/ffnvcodec

I thought I found the solution for my problem. To compile the FFmpeg NVIDIA headers ("ffnvcodec"):

git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers
make
sudo make install

i tried to recompile the ffmpeg as first, but i get the same error.

Then I declare the PKG_CONFIG_PATH pointing to the path where ffnvcodec.pc is located when running configure for FFmpeg

PKG_CONFIG_PATH="/home/nvidia/ffmpeg_sources/nv-codec-headers/" ./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp  --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 

ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec

thanks for any help

Mohand
  • 1

0 Answers0