[MPlayer-users] mplayer -in [url] > [mp3 file] (stdout as mp3?)
Christopher Gokey
cgokey at comcast.net
Mon Aug 27 01:56:07 CEST 2007
Thanks Nico. I'll give this a try for the UNIX end, but I'm not sure
it will solve
my problem for Windows, since I don't think Windows OS has any equivalent to
/dev/stdout... It would be really nice if mplayer would have an option to
send the stream to stdout, or maybe some contrib directory where it
has some small
command line apps that tap its libraries for this kind of functionality.
Chris
On 8/26/07, Nico Sabbi <nicola_sabbi at fastwebnet.it> wrote:
> Christopher Gokey wrote:
> > I have unix application that could be simplified greatly if it could
> > receive a mp3 stream directly from mplayer rather than having to pipe
> > the .wav file through lame to get a mp3 stream... These streams are
> > dynamic from a internet stream, so right now I'm sending them through
> > fifos, like so:
> >
> > internet stream (real audio/windows media)
> > |
> > |----> mplayer ------> wav_fifo
> > |
> > |---->lame-----> mp3_fifo
> >
> > |
> >
> > |---------> unix application read
> >
> > from mp3fifo
> >
> > Unfortunately, this very unix specific with lots of fifos... Can
> > mplayer or some other
> > client (?) do this without fifos, i.e.,
> >
> > internet stream ------> mplayer -----> unix application that only
> > reads mp3 format
> >
> >
>
> it's not guaranteed to work because a lot of crappy code in
> mplayer pollutes stdout, but with some luck:
> $ mencoder -really-quiet -oac mp3lame -ovc frameno -lameopts -of
> rawaudio ... -o /dev/stdout SRC | myprogram
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
--
Christopher D. Gokey
NASA Global Change Master Directory
http://gcmd.gsfc.nasa.gov/
RS Information Systems
(301) 358-3628 FAX: (208) 439-2405
More information about the MPlayer-users
mailing list