Latest FFmpeg Git – Ubuntu 16.10

Build and install the latest FFmpeg from Git on Ubuntu 16.10. 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 libx264-dev

sudo apt install libfdk-aac-dev

Download latest ffmpeg snapsot and build

./configure \
--prefix=/usr \
--extra-version=0ubuntu0.16.10.1 \
--toolchain=hardened \
--libdir=/usr/local/lib \
--incdir=/usr/local/include \
--cc=cc \
--cxx=g++ \
--enable-gpl \
--enable-shared \
--disable-stripping \
--disable-decoder=libopenjpeg \
--disable-decoder=libschroedinger \
--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-libmodplug \
--enable-libmp3lame \
--enable-libopenjpeg \
--enable-libopus \
--enable-libpulse \
--enable-librubberband \
--enable-librtmp \
--enable-libschroedinger \
--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-libzvbi \
--enable-openal \
--enable-opengl \
--enable-x11grab \
--enable-libdc1394 \
--enable-libiec61883 \
--enable-libzmq \
--enable-frei0r \
--enable-chromaprint \
--enable-libx264 \
--enable-nonfree \
--enable-libfdk-aac
make -j$(nproc)

sudo checkinstall --pkgname=ffmpeg --pkgversion="7:4.0.0-0ubuntu0.16.10.1" --backup=no --deldoc=yes --fstrans=no --default
sudo nano /etc/ld.so.conf

/usr/local/lib/

sudo ldconfig

To check and confirm:

~$ apt-cache policy ffmpeg
ffmpeg:
  Installed: 7:4.0.0-0ubuntu0.16.10.1-1
  Candidate: 7:4.0.0-0ubuntu0.16.10.1-1
  Version table:
 *** 7:4.0.0-0ubuntu0.16.10.1-1 100
        100 /var/lib/dpkg/status
     7:3.0.5-0ubuntu0.16.10.1 500
        500 http://mirror.zol.co.zw/ubuntu yakkety-updates/universe amd64 Packages
        500 http://mirror.zol.co.zw/ubuntu yakkety-security/universe amd64 Packages
     7:3.0.2-1ubuntu3 500
        500 http://mirror.zol.co.zw/ubuntu yakkety/universe amd64 Packages

Leave a Reply

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