How to install ffmpeg

How to install ffmpeg


ffmpeg

Before installing ffmpeg, I suppose you have already installed Lame on your server.
FFMPEG:

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 shell

===========================================================================

Errors

Ok this is why I have provided the ffmpeg installation here.

configure Error:

While running command "./configure --enable-libmp3lame --enable-shared", if you get 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 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 login 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 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.

    • Related Articles

    • Howto install FFmpeg-PHP

      wget http://oratoronline.com/how2/video_share_modules/source_directory/ffmpeg/ffmpeg-php-0.5.1.tbz2 tar -xjvf ffmpeg-php-0.5.1.tbz2 ; cd ffmpeg-php-0.5.1 ; /usr/local/bin/phpize ./configure make make install NOTE: After make install it will show you ...
    • How to install Perl

      yum -y install perl
    • How to install RkHunter

      wget http://oratoronline.com/how2/Rkhunter/rkhunter-1.3.2.tar.gz tar -zxvf rkhunter-1.3.0.tar.gz cd rkhunter-1.3.0 chmod 755 installer.sh ./installer.sh --layout default --install rkhunter --propupd rkhunter --check /usr/local/bin/rkhunter -c Issue ...
    • How to install ImageMagic

      cd /usr/local/src wget http://oratoronline.com/how2/ImageMagick/ImageMagick-6.4.2-3.tar.gz (NOTE: Download Latest version of ImageMagick from ftp://ftp.imagemagick.org/pub/ImageMagick/) gunzip -c ImageMagick-6.4.2-3.tar.gz | tar xvf - cd ...
    • Howto Install FLv2Tool

      yum install ruby* wget http://oratoronline.com/how2/video_share_modules/source_directory/flvtool2/flvtool2_1.0.5_rc6.tgz tar -xvf flvtool2_1.0.5_rc6.tgz cd flvtool2_1.0.5_rc6 ruby setup.rb config ruby setup.rb setup sudo ruby setup.rb install Verify: ...