[MPlayer-users] resampling frequency using mencoder and lame

D Richard Felker III dalias at aerifal.cx
Wed Jul 31 21:18:01 CEST 2002


On Wed, Jul 31, 2002 at 08:55:17PM +0200, Mariusz Woloszyn wrote:
> On Wed, 31 Jul 2002, D Richard Felker III wrote:
> 
> > Not directly. Dump audio to a file first, then encode it with lame,
> > then mux it back together with
> >
> > mencoder -ovc copy -oac copy source.avi -audiofile lameoutput.mp3 -o final.avi
> >
> Thank you for your help.
> What is teh best way to dump out the audio using mencoder?

If the audio is mp3 to begin with, just use

mplayer -dumpaudio source.avi

Otherwise, you'll have to use

mplayer -ao pcm -vo null -vc null source.avi

to write the audio to a wav file. This takes a lot longer but it will
work for any source audio type mplayer can play.

Rich

P.S. Please send replies to the list, it makes thing a lot easier.




More information about the MPlayer-users mailing list