[ILUG] difficulty redirecting to a pipe
niall at moybella.net
Fri Dec 16 14:56:29 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Ciaran O'Riordan wrote:
> I have a laptop with only about 300Mb free, and I want to record an online
> radio station during the day for listening to at night.
> I use mplayer for this, but it makes huge .wav files, so I can't record as
> much as I would like. I guess the solution would be to have mplayer send
> the data to oggenc.
> Here's the mplayer command I use to make .wav files:
> mplayer -playlist http://globe-ss.dagupan.com:8080/dzbb.asx -ao pcm:file=radio.wav
> So what I think I want, is to replace "radio.wav" with a pipe (or something)
> and have that pipe (or whatever) read as standard input by oggenc.
> Here's an example of what I thought I could do (but which doesn't work) :
> mplayer -playlist http://globe-ss.dagupan.com:8080/dzbb.asx -ao pcm:file=&1 | oggenc --output=dzbb.ogg -q2 -
> Anyone know the answer? Thanks.
You could use -dumpstream to dump the file in it's native format. It
will appear as stream.dump which mplayer should be able to play after.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the ILUG