propofol |
10-09-2009 12:34 AM |
HowTo: Custom ffmpeg with x264 support for AMD64 on Debian Squeeze
This caused me some amount of frustration - this is a quick howto for anyone interested based on this:
Code:
sudo apt-get update
sudo apt-get install build-essential subversion git-core checkinstall yasm libfaac-dev libfaad-dev libmp3lame-dev libtheora-dev libxvidcore4-dev libopencore-amrnb-dev libopencore-amrwb-dev libspeex-dev libavdevice52 libavfilter0 libavformat52 libdc1394-22 libswscale0 libusb-1.0-0 libdc1394-dev liba52-0.7.4 liba52-0.7.4-dev
cd ~
git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-shared --enable-pic
make
sudo checkinstall -D make install
sudo ldconfig
cd ~
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-postproc --enable-libvorbis --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-pthreads --enable-libx264 --enable-libxvid -
-enable-shared --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-version3
make
sudo checkinstall -D make install
(The --enable-pic option fixed a " relocation R_X86_64_32 against rodata.str1.1" error after much googling)
Regards,
Stefan
|