[vorbis] Re: Oggenc & stdin

Michael Smith msmith at labyrinth.net.au
Mon Mar 19 22:50:25 PST 2001



At 03:20 PM 3/19/01 -0800, you wrote:
>On Mon, Mar 19, 2001 at 04:02:09PM -0700, Troy Telford wrote:
>> I haven't seen this in the options, and have been unsuccessful in trying 
>> it...
>> 
>> Is there any way to set oggenc to accept data (file) input from stdin?
>> 
>> basically do a raw PCM stream from CDParanoia -> oggenc without an 
>> intermediary file.
>
>I use fifo's for this effect, you can hack a script to wrap cdparanoia
>and create the .wav file as a fifo first, then both programs can
>read/write as the buffers get filled without a bunch of temp space
>wasted on the drive.

Neither oggenc nor cdparanoia need a fifo for this purpose. Oggenc follows
the convention of using a filename of '-' (without quotes, of course) to
mean stdin. So "oggenc -" will encode from stdin (to stdout, since an 
output file isn't specified). 

Michael

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list