Skip to content

Instantly share code, notes, and snippets.

@devymex
Created July 19, 2020 04:57
Show Gist options
  • Save devymex/d7320fe6b1b3f1c73921bb53bc6f7c28 to your computer and use it in GitHub Desktop.
Save devymex/d7320fe6b1b3f1c73921bb53bc6f7c28 to your computer and use it in GitHub Desktop.
Install GPU ffmpeg in Ubuntu 18.04
sudo apt purge ffmpeg
sudo apt purge libavcodec-dev libavformat-dev libswscale-dev
sudo apt autoremove --purge
sudo apt install build-essential cmake git unzip wget locate
sudo apt-get install yasm libnuma1 libnuma-dev
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers && sudo make install && cd -
git clone https://git.ffmpeg.org/ffmpeg.git && cd ffmpeg
./configure --enable-nonfree --enable-cuda-nvcc --enable-libnpp --enable-pic --enable-shared \
--extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
make -j8
sudo make install
ffmpeg
sudo updatedb && locate libavformat. libavcodec. libswscale. | grep -P "(\.so|\.a)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment