Skip to content

Commit

Permalink
Update build-ffmpeg-for-nvidia-gpus.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pizslacker committed Apr 11, 2021
1 parent 8c5f73f commit 0e22732
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build-ffmpeg-for-nvidia-gpus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
#
# Remove ubuntu-standard ffmpeg
sudo apt-get remove --purge ffmpeg
# Clone latest ffmpeg git-repo
git clone https://git.ffmpeg.org/ffmpeg.git
# Clone latest NV-codec-headers (Nvidia)
git clone https://github.com/FFmpeg/nv-codec-headers
cd nv-codec-headers/
sudo make install
cd ../
# Build and install ffmpeg (for Nvidia GPUs)
# Clone latest ffmpeg git, build and install ffmpeg (for Nvidia GPUs)
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg/
./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 --enable-shared --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-opencl --enable-libmp3lame --enable-libx264 --cc="gcc -m64 -fPIC" && \
Expand Down

0 comments on commit 0e22732

Please sign in to comment.