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.

  • 26 Users Found This Useful
Was this answer helpful?

Related Articles

How to Fix PHPMyAdmin Error "Fatal error: Allowed memory size of 132218712 bytes exhausted (tried to allocate 11641294 bytes)"?

METHOD: 1. Clear your web browser cache.a.) Windows CMD: http://www.wikihow.com/Flush-DNSb.)...

How to Register FREE Domain Name?

Register first: http://my.freenom.com/register.php Then click this link to register your free...

How to create a website or blog with FREE Domain (.tk/.ml/.ga/.gq/.cf) and Web Hosting for ₱45.00 or ₱100.00 pesos monthly only?

1. Order a Web Hosting plan first:a.) Starter Plan (₱135.00 quarterly or ₱45.00 monthly):...

How do I track how many hits my website gets?

There are a few things that need to be cleared in terms of terminology: 1. Hits - this simply...

Common SSH Commands - Linux Shell Commands

Navigating in UNIX pwd Shows the full path of the current directory ls Lists all...