– sudo apt-get remove ffmpeg x264 libx264-dev
– sudo apt-get update
– sudo apt-get install build-essential git-core checkinstall texi2html libfaac-dev libsdl1.2-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev libxvidcore4-dev zlib1g-dev

Install Yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz
tar xzvf yasm-1.1.0.tar.gz
cd yasm-1.1.0
./configure
make
sudo checkinstall –pkgname=yasm –pkgversion=“1.1.0″ –backup=no –deldoc=yes –default

install x264
git clone git://git.videolan.org/x264.git
cd x264
./configure
make
sudo checkinstall –pkgname=x264 –pkgversion=“1:0.svn$(date +%Y%m%d)-0.0ubuntu1″ –backup=no –deldoc=yes –default

install LAME
sudo apt-get remove liblame-dev
sudo apt-get install nasm
cd
wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz
tar xzvf lame-3.98.4.tar.gz
cd lame-3.98.4
./configure –enable-nasm –disable-shared
make
sudo checkinstall –pkgname=lame-ffmpeg –pkgversion=“3.98.4″ –backup=no –deldoc=yes –fstrans=no –default

install libtheora
sudo apt-get install libogg-dev
cd
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
tar xzvf libtheora-1.1.1.tar.gz
cd libtheora-1.1.1
./configure –disable-shared
make
sudo checkinstall –pkgname=libtheora –pkgversion=“1.1.1″ –backup=no –deldoc=yes –fstrans=no –default

install ffmpeg
git clone git://git.ffmpeg.org/ffmpeg.git
cd ffmpeg
./configure –enable-gpl –enable-version3 –enable-nonfree –enable-postproc –enable-libfaac –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libmp3lame –enable-libtheora –enable-libvorbis –enable-libx264 –enable-libxvid –enable-x11grab
make
sudo checkinstall –pkgname=ffmpeg –pkgversion=“4:$(./version.sh)“ –backup=no –deldoc=yes –default
hash x264 ffmpeg ffplay

Guide:
http://ubuntuforums.org/showthread.php?t=786095

Alles wieder rückgängig:
sudo apt-get autoremove build-essential checkinstall ffmpeg git-core lame-ffmpeg libfaac-dev libopencore-amr libsdl1.2-dev libtheora libvorbis-dev libx11-dev libxext-dev libxfixes-dev libxvidcore4-dev nasm subversion texi2html x264 yasm zlib1g-dev

FLV 2 M4V
ffmpeg -i sample.flv -vcodec mpeg4 -b 1200k -acodec libfaac -ab 128k sample.m4v

ffmpeg -i source-video.avi -s 480×320 -vcodec mpeg4 -acodec aac -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 output-video.G1.mp4

WebKit compatible h.264 video
I decided to go for the ipod640 preset because it means the video can be viewed nicely on an iPhone or iPod touch. Of course, you can change the settings around a bit, get rid of the ‚-vpre ipod640‘, change the resolution or quality. Anyway the command is:

ffmpeg -i video_source_file.ext -vcodec libx264 -vpre hq -vpre ipod640 -b 250k -bt 50k -acodec libfaac -ab 56k -ac 2 -s 480×320 video_out_file.mp4
Firefox compatible Ogg video

This depends on you having ffmpeg2theora installed. Also, I have only tested it with the input file being the output file from the previous ffmpeg conversion. The command is:

ffmpeg2theora video_out_file.mp4 video_out_file.ogv

mp3 codec for ffmpeg
apt-get install libavcodec-extra-52

mov to flv:
ffmpeg -i ResMed_Praesentation.mov -vcodec flv -acodec libmp3lame -b 900k -s 400×300 ResMed.flv

ffmepg & convert .ts to avi
On Ubuntu 11.04 i had to install:
apt-get install libavcodec-extra-52

ffmpeg -i meinvideo.ts -vcodec xvid -b 2000k -acodec libmp3lame -ac 2 -ar 44100 -ab 128k meinvideo.avi

ffmpeg -i input.flv -vcodec mpeg4 -vtag xvid -b 2000k -acodec libmp3lame -ac 2 -ar 44100 -ab 128k Output.avi

 

FLV to mp3

ffmpeg -i „video.flv“ -ab 160000 -acodec libmp3lame „audio.mp3“ !

ffmpeg -i „video.flv“ -f mp3 -ab 160000 -acodec libmp3lame „audio.mp3“

ffmpeg -i „video.flv“ -f mp3 -acodec copy „audio.mp3“

change audio file within video
ffmpeg -i /mein_audio.mp3 -i Orig.wmv -acodec copy -vcodec copy output.wmv

WMV 2 FLV
ffmpeg -i output.wmv -sameq -ar 22050 -ab 96000 -deinterlace -nr 500 -s 1280×720 -aspect 16:9 -b 5444k -deinterlace -f flv -y Gaertner_Index06_HD-1280×640.flv

AVI 2 FLV
ffmpeg -i in.avi -y -b 900 -r 25 -f flv -vcodec flv -acodec libmp3lame -ab 128 -ar 44100 out.flv

 

 

AVI 2 MPEG
ffmpeg -i movie.avi movie.mpg

 

AVI 2 MPEG4
ffmpeg -i movie.avi -vcodec libx264 -b 1500k -s 960×640 -acodec libfaac -ab 128k -ar4800 -f mp4 -deinterlace -y movie.mp4

 

AVI 2 MPEG4 (iPod/iPhone)
ffmpeg -i movie.avi -acodec aac  -ab 128k -vcodec mpeg4 -b1200 kb -mbd 2 -flags +4mv+tell -aic – libx264 -b 1500k -s 960×640 -acodec libfaac -ab 128k -ar4800 -f mp4 -deinterlace -y movie.mp4

 

MP4 to AVI

ffmpeg -y -i Input.mp4 -vcodec  wmv1 -acodec wmav1 out.wmv

Kommentar hinterlassen