Step by step guide on installing the following ffmpeg installation:
configuration: 每enable-libmp3lame
每enable-libvorbis 每enable-libxvid 每enable-gpl 每enable-shared
每enable-version3 每enable-nonfree 每enable-pthreads 每enable-libfaac
每enable-libfaad 每enable-libopencore-amrnb 每enable-libopencore-amrwb
每enable-libtheora 每enable-libx264 每enable-libxvid 每enable-x11grab
I would advise you to fetch all the following files inside a single directory. What I usually do, which has been working for me quite well, is I would start with fetching the ffmpeg installation and immediately start the above configure command, then as it fails due to dependiencies, I just install them one by one. I will now log the entire install here for you to grab a read and perhaps try yourself.
./configure --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-gpl --enable-shared --enable-version3 --enable-nonfree --enable-pthreads --enable-libfaac
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
ERROR yasm not found
wget http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz
ERROR: libfaac not found
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
ERROR: libmp3lame >= 3.98.3 not found
wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flame%2Ffiles%2Flame%2F&ts=1285256527&use_mirror=ufpr
ERROR: libopencore_amrnb not found
wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fopencore-amr%2F&ts=1285256783&use_mirror=ufpr
(libtheora depends on libogg, libvorbis)
wget http://downloads.xiph.org/releases/ogg/libogg-1.2.2.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.gz
ERROR: libtheora not found
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
ERROR: libx264 not found
This one doesn't work!!! wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20100922-2245.tar.bz2
use this one:
(in case you don't have git: sudo apt-get install git-core)
git clone git://git.videolan.org/x264.git
ERROR: libxvid not found
wget http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz
Depending on your system, you may need to update your GNU make as well if you get this error:
common.mak:28: *** unterminated call to function `foreach': missing `)'. Stop.
cd ..
wget http://ftp.gnu.org/gnu/make/make-3.82.tar.gz
ldconfig
bash -l
In order to compile ffplay, you may need to --enable-ffplay
And you need to install sdl: