Last active
April 24, 2021 16:45
-
-
Save nanguoyu/ad66041f4ca05b27a17700f428a46c63 to your computer and use it in GitHub Desktop.
Ubuntu FFmpeg with CUDA11.0
This file contains 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
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git | |
cd nv-codec-headers && make && sudo make install | |
git clone https://github.com/FFmpeg/FFmpeg.git | |
cd FFmpeg | |
# Manually modify nvccflags_default | |
./configure --enable-nonfree \ | |
--enable-cuda-nvcc \ | |
--enable-libnpp \ | |
--enable-pic \ | |
--enable-shared \ | |
--enable-cuvid \ | |
--enable-nvenc \ | |
--extra-cflags=-I/usr/local/cuda-11.0/include \ | |
--extra-ldflags=-L/usr/local/cuda-11.0/lib64 | |
make -j4 | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment