Dion Moult Seriously who ever reads this description.

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.

No related posts.


6 Comments

eliasp says: (25 July 2009)

Shorter and easier to remember:
ffmpeg -i foo.flv bar.mp3

Dion Moult says: (25 July 2009)

@eliasp: Whoops :) and thanks!

hari says: (25 July 2009)

This is a shameless promotion, but do you know about my app BiaMovE, which is a mencoder GUI I wrote – it has most of the options of mencoder without dumbing down them and I use it myself for ripping DVDs or audio/video conversion.

Take a look: http://harishankar.org/software/biamove.php

Blah says: (26 July 2009)

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

hessiess says: (28 July 2009)

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.

anon says: (5 August 2009)

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 Comment