How I use FFMPEG is a constantly changing situation for me. The more you understand the tools available in FFMPEG, the more you are able to do some really amazing stuff. Here is how I am running it now in 2013.
Compiling ffmpeg on Ubuntu 12.10
# git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
# cd ffmpeg
# ./configure --enable-gpl --enable-libx264
# make install
This compile includes x264 which is awesome.
Encoding with H.264
ffmpeg -i MerchantOfVenice2004Pacino.m4v -async 2 -vcodec libx264 -strict -2 -qscale 5 MoV2004.mp4
” -async 2″ gives me confidence that audio/video sync will be okay
” -vcodec libx264″ is the call to have ffmpeg use it over the default
” -strict -2″ is to allow ffmpeg to deal with AAC since it was from a Mac
” -qscale 5″ lowers the video quality a bit, but not noticeably in my use and the filesize reduction is worth it for me.
Play in browser