[MPlayer-users] Convert file from -dumpstream to .mp3
The Wanderer
inverseparadox at comcast.net
Sat Jan 20 14:12:33 CET 2007
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 yhe 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
Warning: Simply because I argue an issue does not mean I agree with any
side of it.
Secrecy is the beginning of tyranny.
More information about the MPlayer-users
mailing list