FFmpeg & Codecs & errors & Compile

HOW TO TEST YOUR FFMPEG



FFmpeg handles a lots of formats but only if you install it correctly let's go to test it

Type in a terminal :

 
ffmpeg -formats 2>&1 | grep aac
     

if you get

 
 D  aac             ADTS AAC
 D A    mpeg4aac
     

E=Encoder and so...

Your ffmpeg is not able to use restricted formats like ac3 wma etc etc ! and you'll get problems !

if you get

 
 D  aac             ADTS AAC
 DEA    aac
 D A    mpeg4aac
     

your FFmpeg is compiled with aac supports and if you wanna encode on ac3 formats you HAVE TO USE like codec name aac!

EXAMPLE: ffmpeg -i INPUT -acodec aac OUTPUT

fi you get

 
 D  aac             ADTS AAC
 DEA    libfaac 
 D A    mpeg4aac
     

Your FFmpeg is compiled with aac supports but YOU HAVE TO USE LIBFAAC like codec name!

EXAMPLE: ffmpeg -i INPUT -acodec libfaac OUTPUT

this works for many codecs example xvid h264 etc etc

etc etc

HOW To FIx FFMPEG on ubuntu system
 
        1-Add Medibuntu repository see here if you don't know  how to do it see  here
 

then reinstall FFmpeg

Warming  UBUNTU 8.10 you could get problem even installing these packages... i think the best way is to compile..
you have to install this too

Code:
sudo apt-get install ffmpeg libavdevice-unstripped-52 libavformat-unstripped-52 libavutil-unstripped-49 libpostproc-unstripped-51 libswscale-unstripped-0


HOW To FIx FFMPEG on Kubuntu 9.04 system COMPILING
Code:
sudo apt-get build-dep ffmpeg && sudo apt-get install libx264-dev  libxvidcore4-dev libopenjpeg-dev libamrwb-dev libamrnb-dev  checkinstall  libasound2-dev   libdc1394-22-dev   libgsm1-dev  libimlib2-dev libraw1394-dev libsdl1.2-dev libschroedinger-dev libspeex-dev  libtheora-dev  libvorbis-dev libx11-dev libxext-dev libxvmc-dev quilt texi2html zlib1g-dev libfaad-dev    
Code:
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
Code:
 cd ffmpeg && ./configure --prefix=/usr --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libx264  --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-avfilter-lavf --enable-libamr-nb --enable-libamr-wb &&  make 
 
 sudo make install 
     

Error that makes your ffmpeg sucks

error while loading shared libraries: libavutil.so.50: cannot open shared object file: No such file or directory

that is due to an older ffmpeg version on the pc you have to rid it

try this

sudo apt-get remove --purge ffmpeg

then compile ffmpeg again.

Comments

I think that you have jumped

I think that you have jumped a step on : Kubuntu 9.04 system compiling

[code] ./configure --prefix=/usr --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-avfilter-lavf --enable-libamr-nb --enable-libamr-wb && make [/code]

What is the directory of this command?

right

fixed; i hope