Tuesday, September 11, 2007

Converting flv files to avi and mpeg

In linux we have a good tool, although text based, to convert between various video format. The tool is ffmpeg. This article will guide you on how you can convert flv format video to avi and mpg.

1. change your directory to the directory where your flv video is located.

2. run ffmpeg command:
$ ffmpeg -i input.flv output.avi
where -i stands for input and output.avi is the output file in avi or mpg.

3. For more advanced setting, you can use the command below
$ ffmpeg -i input.flv -ab 56 -ar 22050 -b 500 -s 320x240 output.mpg
-ab is audio bitrate with default of 64kbps
-ar is audio samplerate with default of 44100Hz
-b is video bitrate with delault of 2000kbps
-s is size with default of 160x128px


Unknown said...

use youconvertit.com

try it to convert many other file formats

mpg to mov converter said...

Although i am suing windows 7, i use ffmpeg to convert my video files. thank you, guy, you done a good job.