#Ffmpeg linux build from source installIf your repository provides libmp3lame-dev version ≥ 3.98.3 then you can install that instead of compiling: sudo apt-get install libmp3lame-dev Requires ffmpeg to be configured with -enable-libmp3lame. configure -prefix="$HOME/ffmpeg_build" -disable-shared If your repository provides libfdk-aac-dev then you can install that instead of compiling: sudo apt-get install libfdk-aac-dev Requires ffmpeg to be configured with -enable-libfdk-aac (and -enable-nonfree if you also included -enable-gpl). See the AAC Audio Encoding Guide for more information and usage examples. 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. #Ffmpeg linux build from source downloadNote: 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. configure -prefix="$HOME/ffmpeg_build" -bindir="$HOME/bin" 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 \ #Ffmpeg linux build from source updateGet 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 #Ffmpeg linux build from source codeNote: 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. #Ffmpeg linux build from source portableIt is static program so no need portable or included dynamic link module anymore.This basic guide supports Ubuntu Xenial Xerus 16.04 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). Now you can just copy only file "ffmpeg" to another machine. profile:v baseline -preset veryfast -c:a aac -b:a 96k -f flv "rtmps://:443/rtmp/" To make sure the "ffmpeg" is static program, you can use command ldd ffmpeg, the resule should be "not a dynamic executable" ldd. extra-ldflags="-L-prefix=/root/ffmpeg-static/workspace/lib -static"Īfter compile, you cloud see new file ffmpeg, ffmpeg_g, ffprobe, ffprobe_g. extra-cflags="-I-prefix=/root/ffmpeg-static/workspace/include -static" \ disable-doc -enable-gpl -enable-nonfree -enable-version3 \ extra-version=patrickz -disable-debug -disable-shared -enable-static \ configure -prefix=/root/ffmpeg-static/workspace \ Prepare FFmpeg source code then compile it# cd /root/ffmpeg-static export PKG_CONFIG_PATH=/root/ffmpeg-static/workspace/lib/pkgconfig You should see openssl, libssl, libcryto and x264 libraries. configure -prefix=/root/ffmpeg-static/workspace -enable-static -enable-picīefore build FFmpeg, make sure that your environement know all library. I recommend "FFmpeg Static Build" collected by John Van Sickle. Install tools
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |