le lab

FFmpeg revisited

FFmpeg is a nice piece of human intelligence able to convert from almost everything to almost anything in video. I talked about it before, I won't talk too much about it. BUT, the executable I had made was flawed. Amongst its issues, there was no support for aac! So I spent more time on it and I put my comments. Still xvid and amr missing though. If you find it, please tell me! You can also download the command line executable.

1 Install lame

2 Install faac

tar -xf faac
./bootstrap
chmod 755 bootstrap
./bootstrap
./configure
make 
sudo make install

3 Install faad

tar -xf faad2.tar
cd faad2
chmod +x bootstrap
./bootstrap
./configure
cd libfaad
make
sudo make install

4. Install x264

svn co svn://svn.videolan.org/x264/trunk x264
cd x264/
./configure
make
sudo make install

5. You have to find the way to add amr_nb support by yourself, as well as xvid support, I'm sorry.

6. Download and correct ffmpeg

cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
cd ffmpeg/
./configure --enable-mp3lame --enable-gpl --disable-vhook --enable-a52 --enable-faac --enable-faad  --enable-pthreads --enable-x264

In libavutil/common.h there's a big piece of code to delete, which only works on Win32. It's a if loop. Try to compile: it comes as one of the very first errors.

make ffmpeg

Et voilà. Don't misunderstand me: due to the lack of documentation , it's taken me a small day to get to this point...

Commentaires

1. cyriljeudi 24 janvier 2008 à 18:24

Okay, I just added amr support! I don't know what I was doing before. It was fairly easy, after I read directions here. Anyway, the executable has been updated.

Trackbacks

Aucun trackback.

Les trackbacks pour ce billet sont fermés.

Ajouter un commentaire

Les commentaires pour ce billet sont fermés.