ubuntu compile x264, ffmpeg

1, the installation tool and dependencies

sudo apt-get update // read the software list

sudo apt-get install // package mounted below

build-essential // compiler package containing c / c ++ required

checkinstall // tar.gz from class source code generation program RPM / Debian or Slackware installation package, generating a "clean" installation package or unloaded

cmake // cross compiler tool

yasm    //a complete rewrite of the NASM assembler. It currently supports the x86 and AMD64 instruction sets.

libfaac-dev    //AAC audio encoder

libjack-jackd2-dev    //JACK Audio Connection Kit

libmp3lame-dev    //mp3 audio encoder

libopencore-amrnb-dev // Adaptive Multi Rate Narrowband Adaptive multi-rate speech coder

libopencore-amrwb-dev // Broadband

libsdl1.2-dev    //Simple DirectMedia Layer development files

libva-dev    //Video Acceleration (VA) API for Linux

libvdpau-dev    //Video Decode and Presentation API for Unix

libvorbis-dev    //

libx11-dev    //

libxfixes-dev    //provides an X Window System client interface to the 'XFIXES' extension to the X protocol

libxvidcore-dev    //Open source MPEG-4 video codec

texi2html    //converts the given Texinfo file to a set of HTML files

zlib1g-dev    //compression library

 

libgtk2.0-0 libgtk2.0-dev    //common files for the GTK+ graphical user interface library

libjpeg8 libjpeg8-dev    //

 

2、x264

1) Download the source code

git clone http://git.videolan.org/git/x264.git

or 

wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20120528-2245-stable.tar.bz2

tar xvf x264-snapshot-20120528-2245-stable.tar.bz2

2) configuration, compile and install

./configure --enable-static --enable-shared --enable-pic

make

sudo make install

Generated file / usr / local / lib, there libx264.a, libx264.so, libx264.so.159

Published 35 original articles · won praise 6 · views 6692

Guess you like

Origin blog.csdn.net/qq_35413770/article/details/105147202