PATH="$HOME/bin:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off.
Otherwise you can compile: sudo apt-get install cmake mercurial If your repository provides libx265-dev version ≥ 68 then you can install that instead of compiling: sudo apt-get install libx265-dev See the H.265 Encoding Guide for more information and usage examples. Note: You can download the nightly x264 source snapshot as an alternative to using git. configure -prefix="$HOME/ffmpeg_build" -bindir="$HOME/bin" -enable-static -disable-opencl Otherwise you can compile: cd ~/ffmpeg_sources If your repository provides libx264-dev version ≥ 118 then you can install that instead of compiling: sudo apt-get install libx264-dev See the H.264 Encoding Guide for more information and usage examples. Requires ffmpeg to be configured with -enable-gpl -enable-libx264. configure -prefix="$HOME/ffmpeg_build" -bindir="$HOME/bin" Required for compilation of x264 and other tools. Highly recommended or your resulting build may be very slow. Libvorbis-dev pkg-config texi2html yasm zlib1g-devĪn assembler for x86 optimizations used by x264 and FFmpeg. Libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev librtmp-dev libtheora-dev \
Get the dependencies ( Ubuntu Server or headless users): sudo apt-get update Libx11-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev Librtmp-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev \ Libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \ Sudo apt-get -y install build-essential checkinstall git libfaac-dev libgpac-dev \ Get the dependencies ( Ubuntu Desktop users): sudo apt-get update Remove any existing packages: sudo apt -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev Note: Copy and paste the whole code box for each step. This guide will also install many filters (see the filter list in the Filtering Guide. These are optional and may be omitted if desired. This basic guide supports Ubuntu Xenial Xerus 16.04 (also works on my Ubuntu 18.04 machine) and will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). For enabling nvidia cuvid please take a look at