Friday, December 15, 2006

Convert Google Video FLV’s into AVI, MPG, etc…in LINUX

So, I found a digg on converting flv (Google Video) files to other formats like AVI today...Alas...it was geared for Windows users :P . So, of course, I figured out how to do it painlessly in linux....actually more painless than in Windows.

First, get the ffmpeg CVS source:

cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg


Then, compile it:

./configure; make; sudo make install


Then, run it like this:

ffmpeg -i video.flv -ab 56 -ar 22050 -b 500 -s 320x240 test.mpg


Where all that crap is:
-b bitrate: set the video bitrate in kbit/s (default = 200 kb/s)
-ab bitrate: set the audio bitrate in kbit/s (default = 64)
-ar sample rate: set the audio samplerate in Hz (default = 44100 Hz)
-s size: set frame size. The format is WxH (default 160x128)

This will convert your video.flv into a test.mpg!

If you need help, there's a great resource RIGHT ON YOUR COMPUTER!
Type man ffmpeg.

(link to note)

No comments: