How do I convert a .avi file to a .flv file?

5

1

I've been sent a .avi file that I need to convert to flash format to put online. What free software is there that will do this? I have Ubuntu and Windows 7 to work with so any software for either system will do.

Max Schmeling

Posted 2009-08-20T03:34:38.773

Reputation: 476

Answers

7

FFMPEG.

example:

/path/to/ffmpeg -i input.avi -f flv output.flv

John T

Posted 2009-08-20T03:34:38.773

Reputation: 149 037

11

ffmpeg is very good and works on Windows.

You'll need something like:

ffmpeg -y -i file.avi -acodec mp3 -ar 22050 -f flv file.flv

mlambie

Posted 2009-08-20T03:34:38.773

Reputation: 481

1

windows builds (so you don't have to try and compile it yourself): http://ffmpeg.arrozcru.org/builds/

– mpen – 2009-08-20T04:43:25.360

2

In addition to John T, mlambie and Chealion's answers, and if you're not so keen on the command line, I would recommend you to try SUPER, which is actually a GUI on top of ffmpeg (and other encoders).

fretje

Posted 2009-08-20T03:34:38.773

Reputation: 10 524

1

Media Coder (Windows) is another good encoder - it covers a lot of file formats in both audio and video.

There's only one downside, though: the main interface isn't user-friendly. If you think this one does the job for you, ensure you make use of its browser-based wizard.

Paolo B.

Posted 2009-08-20T03:34:38.773

Reputation: 221

1

Is there a specific codec or does it matter which one is used?

Flash video can use one of three codecs:

  • H.264 (Flash 9 Release 3 or newer)
  • On2VP6 (Flash 7 or newer)
  • Sorenson Spark (Flash 6 or newer)

You can convert into all 3 using ffmpeg and there are several GUIs available to handle the conversion using ffmpeg.

If you want to use Ubuntu you'll want to install ffmpeg first check out the Ubuntu Wiki

Once it's installed you can use a command such as:

/path/to/ffmpeg -i input.avi -ar 22050 -ab 96 -b 1200 -r 12 -f flv -s 320x240 -acodec mp3 -ac 1 output.flv

-ar = Audio rate
-ab = Audio bit rate
-b = bitrate
-s = size
-acodec = audio codec
-f = format

If you're more comfortable using a GUI with Windows you can try a variety of GUI frontends such as MeWiG or AVANTI

Chealion

Posted 2009-08-20T03:34:38.773

Reputation: 22 932

0

Any Video Converter is very good

Fastboy42

Posted 2009-08-20T03:34:38.773

Reputation: 59

haha.. when you don't capitalize it, it sounds like you're referring to any old converter (most of which are crap). http://download.cnet.com/Any-Video-Converter/3000-2194_4-10661456.html

– mpen – 2009-08-20T04:44:33.343

Yes. LoL it is actually a program. I have used it for a while now and I convert all my youtube videos with it – Fastboy42 – 2009-08-21T20:28:30.973