LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   AVI Audio to MP3 File (http://www.linuxquestions.org/questions/linux-software-2/avi-audio-to-mp3-file-49105/)

Obi Perrin 03-10-2003 09:44 AM

AVI Audio to MP3 File
 
Okay, I've got an AVI file with a really cool audio track. I'd like to have this audio track as an MP3 file. My first attempt at this failed miserably:

mencoder file.avi -ovc frameno -oac mp3lame -lameopts vbr=3:br=128:q=4:aq=0 -o music_track.mp3.

It played fine in MPlayer, but xmms chewed it up and spat it out again. Anyone have any idea how to do this?

acid_kewpie 03-10-2003 09:59 AM

mplayer -dumpaudio -dumpfile music_track.mp3 film.avi

that's assuming it is ALREADY an mp3 stream in the avi file. if not then it's probably best to reencode the film, not the dumped file, as if you've just got an ac3 audio stream an encoder like lame probably won't know how to deal with ac3.

Obi Perrin 03-10-2003 10:27 AM

Cool, MPlayer truely rules! I'll try that when I get home, thanks.


All times are GMT -5. The time now is 09:16 PM.