ffmpeg环境搭建

1. 安装编码器

h264编码器,fmpeg默认有h264的解码器,但是没有编码器

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

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

make

sudo make install

安装

faac:http://www.audiocoding.com/downloads.html

./configure

make
make install

2. 安装ffmpeg

./configure --enable-gpl --enable-libx264 --enable-libfaac --enable-nonfree

make

sudo make install

猜你喜欢

转载自michaelzqm.iteye.com/blog/2229154