Last active
March 23, 2020 16:12
-
-
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"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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