树莓派编译安装ffmpeg

在树莓派pi3B 官方系统上测试通过。

1.下载http://www.linuxfromscratch.org/blfs/view/svn/general/yasm.html yasm 并安装:

./configure --prefix=/usr
make
make install


2.下载x264最新稳定版并安装:
./configure --enable-shared --prefix=/usr
make  
make install  


3.sudo apt-get install aptitude
sudo aptitude install libfaac-dev libmp3lame-dev libtheora-dev libvorbis-dev libxvidcore-dev libxext-dev libxfixes-dev


树莓派上可能无法安装libfaac-dev,则下载源码编译安装:
http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
http://blog.csdn.net/qiuchangyong/article/details/7250690
http://blog.chinaunix.net/uid-10769062-id-4171969.html
./configure --prefix=/usr
make  
make install 


4.下载ffmpeg_0.10.16
./configure --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab --enable-libvorbis
make
make install

你可能感兴趣的:(树莓派)