mac下编译ffmpeg+x265+x264+faac

1. 编译x264
下载:ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
./configure 
make 
make install

2. 编译x265
下载:https://bitbucket.org/multicoreware/x265/downloads
需要工具pkg-config, brew install pkg-config
cd build(参考readme文件)
cmake ../source
make
sudo make install

3.编译fdk-aac
下载:git clone git://github.com/mstorsjo/fdk-aac
需要automake工具集 brew install autoconf/ automake/ libtool 等工具
autoreconf -i
./configure
make
make install

4.编译ffmpeg
下载:git clone https://github.com/FFmpeg/FFmpeg.git
./configure --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-gpl --enable-nonfree --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib 
make
sudo make install

你可能感兴趣的:(视频编码)