Created
July 19, 2020 04:57
-
-
Save devymex/d7320fe6b1b3f1c73921bb53bc6f7c28 to your computer and use it in GitHub Desktop.
Install GPU ffmpeg in Ubuntu 18.04
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
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