[MPlayer-users] Convert file from -dumpstream to .mp3

Rashkae rashkae at tigershaunt.com
Sat Jan 20 18:59:12 CET 2007


On Sat, Jan 20, 2007 at 10:04:51AM -0600, jmmckee at flinthills.com wrote:
> Quoting The Wanderer <inverseparadox at comcast.net>:
> 
> >jmmckee at flinthills.com wrote:
> >
> >>I was in a hurry.  I had a number of streaming files that I wanted to
> >>capture. So, I used -dumpstream -dunpfile.
> >>
> >>I can play the files with mplayer, but would like to convert them to
> >>mp3 format.
> >>
> >>I have looked through a lot of the man pages, but am uncertain if
> >>what I want to do is possible.
> >>
> >>If this is possible, can somebody tell me how to do this??
> >
> >It can be done, but not directly using MPlayer or MEncoder. The simplest
> >(universally reliable) way is a two-step process:
> >
> >1. Dump the audio from the stream into a WAV file:
> >mplayer stream.dump -vo null -vc dummy -ao pcm:fast:file=filename.wav
> >
> >2. Transcode the WAV file into an MP3 file using an external tool, such
> >as LAME:
> >lame <your preferred MP3 encoding options> filename.wav filename.mp3
> >
> >
> >Alternately, if you'd rather not use multiple tools for a single task,
> >you can try FFmpeg:
> >
> >ffmpeg -i stream.dump <your preferred MP3 encoding options> filename.mp3
> >
> >This will not necessarily be capable of handling all files which MPlayer
> >can play, but it should be able to deal with most types of file.
> >
> >-- 
> >      The Wanderer
> >
> Just what I needed.  Thank you for the assistance.

Depending on the source, I find it really helps to normalize the wav file before encoding to mp3

just run 'normalize file.wav' 



More information about the MPlayer-users mailing list