[MPlayer-users] $ mencoder mms://url/of/some/asf/stream -oac mp3lame -o stream.mp3

D Richard Felker III dalias at aerifal.cx
Tue Jun 1 08:00:58 CEST 2004


On Tue, Jun 01, 2004 at 07:24:44AM +0200, Michal Panoch wrote:
> The Wanderer <inverseparadox at comcast.net> writes:
> 
> >> ASF file format detected.
> >> Video stream is mandatory!
> >> Exiting...
> >> Why this action NEEDS VIDEO stream as well ?!?!
> >
> > Because Mencoder is not an audio encoder, it's a video encoder. The
> > fact that it can also encode audio is purely a matter of convenience,
> > which appears to have been included simply because one rarely wants to
> > encode video without some accompanying audio.
> 
> ok, but would it be that complicated to add this feature.. mencoder would be even
> more convenient.. :)

Yes it would be complicated.

> >> All i need is to save some internet radio asf stream directly into an
> >> mp3 file, which I thought could not be a problem with mplayer.. But
> >> after whole night effort to make mplayer work with lame, this
> >> appears.. :((
> >
> > Saving directly into MP3 isn't possible, but:
> >
> > ==
> > mplayer mms://stream -ao pcm -aofile stream.wav && \
> > lame ${opts} stream.wav stream.mp3 && \
> > rm stream.wav
> > ==
> >
> > ought to do the job, with I think just about the same end result.
> 
> but i'm trying to avoid saving 100+ MB files and encode them
> afterwards..

RTFM mkfifo

Rich




More information about the MPlayer-users mailing list