PDA

View Full Version : [ubuntu] Ripping mp3's from .flv



mysticaltopher
September 8th, 2009, 06:01 AM
I'm having problems ripping the audio from .flv videos (ones downloaded from youtube). I've searched for an answer but havn't found out what the deale-o is yet.
it keeps telling me: unsupported video codec or unsupported coded.
Is there a lib package that must be installed that i am missing?
thx.

btw, i have libmp3lame.so.0 already installed, i think i need this right?

oh, and im using winff

MelDJ
September 8th, 2009, 07:59 AM
are you using a converter? or maybe just use fetchmp3.com

credobyte
September 8th, 2009, 08:13 AM
sudo apt-get install ffmpeg
ffmpeg -i source.flv soundonly.mp3
** ffmpeg command might need some tweaking ( bitrate, etc. )

ken_do_san
September 8th, 2009, 09:30 AM
Give mobile media converter a try, always works for me, where .flv are concerned if you want to convert them :)

andrew.46
September 8th, 2009, 01:25 PM
Hi mysticaltopher,


I'm having problems ripping the audio from .flv videos (ones downloaded from youtube). I've searched for an answer but havn't found out what the deale-o is yet.
it keeps telling me: unsupported video codec or unsupported coded.
Is there a lib package that must be installed that i am missing?

There are some special issues with FFmpeg and Ubuntu which probably means that your version of FFmpeg is missing a few vital codecs. For some details and a fix have a look at:

HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoding in FFmpeg
http://ubuntuforums.org/showthread.php?t=1117283

I have little experience with WinFF but I know that what you are after can easily be done with FFmpeg itself from the commandline (and doubtless just as easily from the excellent WinFF!). If you can get your version of FFmpeg fitted out with all the codecs try running the following from the commandline:


ffmpeg -i my_file.flv

and this will give an indication of the finer details required for the extraction of the mp3 audio alone, as credobyte has mentioned in his post. If you are happy with all of this could you post the terminal output here?

All the best,

Andrew

MrWES
September 8th, 2009, 02:59 PM
I used this guide to compile ffmpeg and get a fully unlocked version to allow me transcoding on my mediatomb server:

It was a matter of copy and paste.

http://ubuntuforums.org/showthread.php?t=786095

~Bill

scorp123
September 8th, 2009, 11:15 PM
I'm having problems ripping the audio from .flv videos (ones downloaded from youtube). I'd suggest you get the "ubuntu-restricted-extras" package if you don't have it already and then include the "Medibuntu" repository (tons and tons of codecs and what not):

http://www.medibuntu.org/

From there you should get vlc, mplayer, mencoder, ffmpeg ... and those should pull in tons of other dependencies which should then have the result that multimedia-wise you will be able to play, watch, listen to and rip pretty much anything.

I myself use this simple shell command to get MP3 audio out from e.g. YouTube-like videos:

ffmpeg -i vid.flv -acodec copy output.mp3

Shamelessly copied from here:
http://symbolik.wordpress.com/2007/10/10/extracting-an-mp3-from-a-youtube-flash-flv-download/

andrew.46
September 9th, 2009, 02:57 AM
Hi,

A technique is available from MPlayer as well, although you will get better results with FFmpeg. If you know the audio is mp3 you can run:


mplayer input.flv -dumpaudio -dumpfile output.mp3

However if the audio is actually aac you will get a file called output.mp3 that is actually an aac file and probably unreadable...

Andrew