Tech tip #3: Rip audio from an .FLV file.

Well folks, here’s another quick tech tip that I use once in a while. How do you rip only the audio from an .FLV file? .FLV files, or Flash Video files are the format used in browser-embedded videos, common on video-sharing sites such as YouTube or Vimeo (and Eadrax!) For whatever reason if you have an .FLV file of your favourite music video, now you can get the music rocking solo.

mencoder a.flv -o a.mp3 -of rawaudio -oac mp3lame -lameopts cbr:br=192 -ovc copy

I’ll stay off tech tips for a while as the weekend is coming up.

Dion Moult

I've been developing software for well over 10 years, work as an architect (not the computer kind, the regular sort), and am classically trained as a pianist. I try to do the right thing when I get the chance in my field, such as through contributing to open-source communities and promoting sustainable living.

More Posts

Spread the love
Tagged: , , , ,


  1. ffmpeg -i foobar.flv -vn -acodec vorbis -aq 50 -ac 2 flavor.ogg

    -vn no video
    -aq audio quality (vorbis specific ~ values 1-100)
    -ac audio channels
    -acodec audio codec

  2. When going from a already lossy source, and encoding into a lossy format you will only degrade the quality of the audio even more. Thus it would be better to use a lossless format like FLAC or even WAV to prevent further degrading the audio quality.

  3. The audio stream in .flv are already in mp3 format. So you can just do following command
    mplayer -dumpaudio foobar.flv
    and have a resulting stream.dump file which you can rename to foobar.mp3 (this works the same way for .wmv to .wma and .mp4/.f4v to .aac). No unnecessary re-ecoding so it keeps the quality and is faster to boot.

Leave a Reply

Your email address will not be published. Required fields are marked *