wget http://oratoronline.com/how2/ffmpeg/ffmpeg-export-snapshot.tar.bz2
tar -xjvf ffmpeg-export-snapshot.tar.bz2 ;
cd ffmpeg-export-2008-07-18 ;
./configure --enable-libmp3lame --enable-shared
make
make install
Test by running 'FFmpeg' from a shell
Error #1
While running the command "./configure --enable-libmp3lame --enable-shared", if you get the following error
Unable to create and execute files in /tmp. Set the TMPDIR environment variable to another directory
Solution:
Open the configure file for FFmpeg and comment the following lines
# set temporary file name
#if test ! -z "$TMPDIR" ; then
# TMPDIR1="${TMPDIR}"
#elif test ! -z "$TEMPDIR" ; then
# TMPDIR1="${TEMPDIR}"
#else
#TMPDIR1="/home/username/tmp"
#fi
save/exit and rerun
./configure --enable-libmp3lame --enable-shared
Error # 2
After installing FFmpeg, run FFmpeg and if you get the following error.
ffmpeg: error while loading shared libraries: libavdevice.so.52:
cannot open shared object file: No such file or directory.
solution
run following commands one by one
(if you are on login via wheel user, you must log in via "su -" not only "su"
echo "/usr/local/lib" >> /etc/ld.so.conf echo "/usr/lib" >> /etc/ld.so.conf ldconfig
Now check FFmpeg by running :
FFmpeg
Error # 3
Or some time while running finally FFmpeg you get an error like this
ffmpeg: error while loading shared libraries: /usr/lib/libavutil.so.49:=[/color]
cannot r[color=blue]
Solution:
chcon -t texrel_shlib_t /usr/lib/libavutil.so.49
Keep doing the chcon on each new library until you get 'em all labeled.