Skip to content

Instantly share code, notes, and snippets.

@nanguoyu
Last active April 24, 2021 16:45
Show Gist options
  • Save nanguoyu/ad66041f4ca05b27a17700f428a46c63 to your computer and use it in GitHub Desktop.
Save nanguoyu/ad66041f4ca05b27a17700f428a46c63 to your computer and use it in GitHub Desktop.
Ubuntu FFmpeg with CUDA11.0
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