Get source code
Needs libfaac…
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
hmmm… that seemed to require
yum install gcc-c++
to get g++ to work
Also needs x264
But x264 needs yasm…
wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
OK, got yasm, now
wget ftp://ftp.videolan.org:21/pub/videolan/x264/snapshots/x264-snapshot-20091130-2245.tar.bz2
Be sure to ./configure –enable-shared
There was an issue using libx264.so.76 on another system I maintain, had to fall back on libx264.so.72 . errors like
In function `X264_init':
/tmp/ffmpeg/libavcodec/libx264.c:284: undefined reference to
`x264_encoder_open_79'
libx264.so.79 and ffmpeg from SVN seem to take care of that.
OK, at last we con configure ffmpeg with
./configure --disable-ffplay --disable-demuxer=v4l_demuxer --enable-libx264 --enable-gpl --enable-shared --enable-libfaac --enable-nonfree
Lastly, always need to set env
LD_LIBRARY_PATH=’/usr/local/lib/
Now, we can type
ffmpeg -y -i /users/w/a/waw/red5/webapps/oflaDemo/streams/bob/intro.flv -acodec libfaac -ab 96k -ar 44100 -vcodec libx264 -vpre hq -crf 22 -flags2 -bpyramid /users/w/a/waw/red5/webapps/oflaDemo/streams/bob/intro.mp4
Oops — almost forgot. Also need to set working directory to ffmpeg/tools and make qt-faststart , then copy qt-faststart to /usr/local/bin