.:Hledání:.



ffmpeg instalace debian/ubuntu


Hlasování: 3 (188)   +-


Autor: sinker
# pridat zdroje pro debian-multimedia
echo "deb http://www.debian-multimedia.org lenny main non-free" >> /etc/apt/sources.list
wget http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008.10.16_all.deb
dpkg -i debian-multimedia-keyring_2008.10.16_all.deb
aptitude update

aptitude install subversion gcc git-core yasm make

// musi se vzdy doinstalovat knihovny amrnb a amrwb libfaad libfaac xvid
aptitude install amrnb amrwb libfaad0 faad libfaad-dev libfaac0 libfaac-dev libmp3lame0 libmp3lame-dev libamrnb-dev libamrwb-dev libxvidcore4 libxvidcore4-dev libxvidcore-dev libxvidcore

cd /usr/local/src
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg

// konfigurace
./configure --enable-nonfree --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-gpl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3

// pri problemech s verzi x264
cd /usr/local/src
git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-shared
make
make install

cd ..
cd ffmpeg
./configure --enable-nonfree --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libxvid --enable-gpl --enable-version3 --enable-pic --enable-pthreads --enable-swscale --enable-debug --disable-optimizations --enable-libx264

// pripadne pridat
 --extra-cflags=-I`pwd`/../x264/ --extra-ldflags=-L`pwd`/../x264/

make
make install