I’ve been downloading music from imeem.com and the biggest problem was encoding files from .flv to mp3, in linux we don’t need any strange program , the terminal is all we need (and one or two things installed).
At first we are going to encode from flv to wav with mplayer
mplayer -ao pcm -vo audiodump.wav somefile.flv
Then we encode the mp3 (from the wav file)
lame audiodump.wav -q 2 -b 192 somefile.mp3
see man lame for more details.
i’ve made two scripts, can be found here
8 comentarios
Comments feed for this article
enero 14, 2008 a 1:15 pm
Claudio
Yo uso este script en python+gstreamer:
http://www.gnome.org/~csaavedra/hacks/dirtomp3.py
enero 21, 2008 a 12:03 am
Alejandro
That’s so Interesting! But in Windows you neither need any strange program.. in fact you should have installed the same programs you use above =)
Enjoy your vacations!!!
BYtES!!!
agosto 20, 2008 a 7:13 pm
scrawl
thanks, that was easier than i thought 🙂
agosto 22, 2008 a 11:50 am
william
there is no need to dump into an wav file
mkfifo somepipename
lame -b 64 somepipename filename.mp3 &
mplayer -quiet -ao pcm -aofile somepipename somefile.flv
lame will read some the pipe and exit when it encounter EOF (sent by mplayer at the end of the file of somefile.flv)
no need to have a huge dump file
septiembre 26, 2008 a 3:13 pm
x
Hi,
Thanks !
marzo 30, 2009 a 6:18 pm
jojo
mplayer -dumpaudio -dumpfile file.mp3 file.flv
febrero 3, 2011 a 10:22 pm
frankmanssss
>> jojo
>> mplayer -dumpaudio -dumpfile file.mp3 file.flv
Doesn’t work if the audio in the flv isn’t in mp3 format
noviembre 24, 2010 a 7:06 pm
no name
thx
it works quite good