Latest FFmpeg Git – Ubuntu 17.04 … Build and install the latest FFmpeg from Git on Ubuntu 17.04. For use with hardware encoding Nvidia nvenc, OBS nvenc, WinFF.

sudo apt install checkinstall libsdl2-2.0 libsdl2-dev

Enable “Source code” in System Settings > Software & Updates > Ubuntu Software

sudo apt build-dep ffmpeg

sudo apt install libfdk-aac-dev

Download latest ffmpeg snapsot and build

./configure \
--prefix=/usr \
--extra-version=1build2 \
--toolchain=hardened \
--libdir=/usr/local/lib \
--incdir=/usr/local/include \
--enable-gpl \
--disable-stripping \
--enable-avresample \
--enable-avisynth \
--enable-gnutls \
--enable-ladspa \
--enable-libass \
--enable-libbluray \
--enable-libbs2b \
--enable-libcaca \
--enable-libcdio \
--enable-libflite \
--enable-libfontconfig \
--enable-libfreetype \
--enable-libfribidi \
--enable-libgme \
--enable-libgsm \
--enable-libmp3lame \
--enable-libopenjpeg \
--enable-libopenmpt \
--enable-libopus \
--enable-libpulse \
--enable-librubberband \
--enable-libshine \
--enable-libsnappy \
--enable-libsoxr \
--enable-libspeex \
--enable-libssh \
--enable-libtheora \
--enable-libtwolame \
--enable-libvorbis \
--enable-libvpx \
--enable-libwavpack \
--enable-libwebp \
--enable-libx265 \
--enable-libxvid \
--enable-libzmq \
--enable-libzvbi \
--enable-omx \
--enable-openal \
--enable-opengl \
--enable-sdl2 \
--enable-libdc1394 \
--enable-libiec61883 \
--enable-chromaprint \
--enable-frei0r \
--enable-libopencv \
--enable-libx264 \
--enable-shared \
--enable-nonfree \
--enable-libfdk-aac
make -j$(nproc)

sudo checkinstall --pkgname=ffmpeg --pkgversion="7:4.0.0-1build2" --backup=no --deldoc=yes --fstrans=no --default
/etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf

/etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib/

sudo ldconfig

To check and confirm:

~$ apt policy ffmpeg
ffmpeg:
  Installed: 7:4.0.0-1build2-1
  Candidate: 7:4.0.0-1build2-1
  Version table:
 *** 7:4.0.0-1build2-1 100
        100 /var/lib/dpkg/status
     7:3.2.4-1build2 500
        500 http://archive.ubuntu.com/ubuntu zesty/universe amd64 Packages

Leave a Reply

Your email address will not be published. Required fields are marked *