Skip to content

Instantly share code, notes, and snippets.

@i-v-s
Last active March 23, 2020 16:12
Show Gist options
  • Save i-v-s/6b523ffaa75df2efc921fd9b562c045c to your computer and use it in GitHub Desktop.
Save i-v-s/6b523ffaa75df2efc921fd9b562c045c to your computer and use it in GitHub Desktop.
Build FFMPEG with desired ffnvcodec version. Avoid "The minimum required Nvidia driver for nvenc is xxx or newer"
# From https://devblogs.nvidia.com/nvidia-ffmpeg-transcoding-guide/
#Install dependencies:
sudo apt install nasm
# Download ffnvcodec:
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers
# Check ffnvcodec versions and select version
git tag -l
git checkout n9.0.18.2
make
sudo make install
# Build ffmpeg
git clone https://git.ffmpeg.org/ffmpeg.git
./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
make -j -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment