High quality flv conversion with ffmpeg
daniel posted this on May 31st 2007 under Howto
This generates high quality flv files. For the best result make sure the input file is deinterlaced or horizontal combing on moving objects in video will appear.
# ffmpeg -i input.mp4 -ar 22050 -ab 56 -acodec mp3 -r 25 -f flv -b 400 -s 320x240 output.flv
When you have interlaced video you could also use:
# ffmpeg -i input.mp4 -deinterlace -ar 22050 -ab 56 -acodec mp3 -r 25 -f flv -b 400 -s 320x240 output.flv
-i; specify input file
-deinterlace; deinterlace video
-ar; audio sample rate
-ab; audio bitrate
-acodec; audio codec
-r; framerate
-f; output format
-b; bitrate (of video!)
-s; resize to widthxheight