Test passes on the Raspberry Pi pi3b official system.
1. Download http://www.linuxfromscratch.org/blfs/view/svn/general/yasm.html yasm and install:./configure--prefix=/usr
Make
Make install
2. Download the latest stable version of x264 and install:
./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
The Raspberry Pi may not be able to install Libfaac-dev, then download the source compilation installation:
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. Download 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