Skip to content
Snippets Groups Projects
Commit c11b1835 authored by calrama's avatar calrama
Browse files

[centos-7] Enable Nvidia hardware encoding in FFmpeg

parent 7ba90eb4
No related branches found
No related tags found
No related merge requests found
......@@ -71,10 +71,15 @@ RUN version=4.2.1 && \
yum clean all && \
source /etc/profile && \
cd /tmp && \
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git && \
cd nv-codec-headers && \
make install && \
cd .. && \
rm -rf nv-codec-headers && \
curl -sSLO http://ffmpeg.org/releases/ffmpeg-${version}.tar.gz && \
tar -xf ffmpeg-${version}.tar.gz && \
cd ffmpeg-${version} && \
./configure --prefix=/usr/local --enable-gpl --enable-libfreetype --enable-avresample --enable-shared --disable-static --enable-pic && \
./configure --prefix=/usr/local --enable-gpl --enable-nvenc --enable-libfreetype --enable-avresample --enable-shared --disable-static --enable-pic && \
make install && \
cd .. && \
rm -rf ffmpeg-${version}*
......
......@@ -3,3 +3,5 @@ source scl_source enable devtoolset-8
# Git 2.18
source scl_source enable rh-git218
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment