Fixing ffmpeg on Ubuntu
Reference: https://wiki.ubuntu.com/ffmpeg
For a litany of legal reasons, ffmpeg does not come with all of the necessary things enabled for you to encode video for the iPod Video by default. Therefore, we need to build it from source and install some other libraries and programs, as well. Make sure you have multiverse and universe enabled.
sudo apt-get remove ffmpeg sudo apt-get install liba52-dev libdts-dev libgsm1-dev libvorbis-dev libxvidcore4 \ libxvidcore-dev libdc1394-dev libfaac-dev liblame-dev libx264-dev libfaad2-dev libtheora-dev \ libsdl1.2-dev libmpeg4ip-dev wget http://ffmpeg.mplayerhq.hu/ffmpeg-export-snapshot.tar.bz2 tar jxvf ffmpeg-export-snapshot.tar.bz2 cd ffmpeg-export-* ./configure --prefix=/usr/local --disable-debug --enable-shared --enable-gpl --enable-postproc \ --enable-swscale --enable-pthreads --enable-x11grab --enable-liba52 --enable-libdc1394 \ --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libtheora \ --enable-libvorbis --enable-libx264 --enable-libxvid make sudo make install
Trying to compile ffmpeg from svn gives the following error:
libavcodec/libx264.c: In function ‘X264_init’:
libavcodec/libx264.c:224: error: ‘X264_ME_TESA’ undeclared (first use in this…
Solved. Installing these two packages:
http://www.brloh.eu/ubuntu/libx264-dev_0.svn20080408-0.0ubuntu1_i386.deb
http://www.brloh.eu/ubuntu/libx264-59_0.svn20080408-0.0ubuntu1_i386.deb