FFMPEG

ubuntuforums

SCRIPT:ffmpeginstaller.com


CLEANUP: (only needed if updating)
sudo apt-get autoremove
sudo apt-get remove ffmpeg x264 libx264-dev
UPDATE yasm update needed:
sudo apt-get install build-essential checkinstall
sudo apt-get build-dep yasm 
sudo apt-get install libx264-dev 
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz && \
tar -xf yasm-1.2.0.tar.gz && cd yasm-1.2.0 && ./configure
make
sudo checkinstall --pakdir "$HOME/Desktop" --pkgname yasm --pkgversion 1.1.0 \
--backup=no --default
sudo apt-get update
sudo apt-get install build-essential subversion git-core checkinstall yasm-1 texi2html libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev
On Maverick meerkat:
sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev
sudo mkdir /usr/local/lib/pkgconfig
Continue:
cd ffmpeg/
git clone git://git.videolan.org/x264.git
cd x264/
ls
./configure
make
sudo checkinstall --pkgname=x264 --pkgversion "2:0.`grep X264_BUILD x264.h -m1 | \
    cut -d' ' -f3`.`git rev-list HEAD | wc -l`+git`git rev-list HEAD -n 1 | \
    head -c 7`" --backup=no --default --deldoc=yes
CLEANUP libmp3lame (for update)
sudo apt-get remove libmp3lame-dev
MAKE MODULES AND INSTALL
sudo apt-get install nasm
cd ..
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz
tar xzvf lame-3.99.tar.gz
cd lame-3.98/
./configure --enable-nasm --disable-shared
make
sudo checkinstall --pkgname=lame-ffmpeg --pkgversion="3.99" --backup=no --default     --deldoc=yes
cd ..
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx/
./configure
make
sudo checkinstall --pkgname=libvpx --pkgversion="`date +%Y%m%d%H%M`-git" --backup=no     --default --deldoc=yes
cd ..
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg/
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc     --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion "4:SVN-r`LANG=C svn info | \
awk '{ print $NF }'`" --backup=no --default --deldoc=yes install -D -m755     tools/qt-faststart /usr/local/bin/qt-faststart
ffmpeg
ffmpeg -h
:) "Checked out revision 23591. ERROR: libx264 version must be >= 0.98." so we need to remove the current x264 and install the latest
update need latest : sudo apt-get install libx264-85 libx264-dev
cd /usr/src/ffmpegscript/
git clone git://git.videolan.org/x264.git
cd x264
export cpu=`cat "/proc/cpuinfo" | grep "processor"|wc -l`
export TMPDIR=$HOME/tmp
ldconfig
./configure --prefix=/usr/local/cpffmpeg --enable-shared --disable-asm
make -j$cpu
make install
 
cd back to ffmpeg installer directory
make
make install

 

Hessen Kasselstraat 8
5615 SM Eindhoven
phone: +316-81888456