[vorbis] Realtime resampling/encoding with oggenc

Frank Heckenbach frank at g-n-u.de
Tue May 15 14:21:50 PDT 2001



David Mitchell wrote:

> You could try putting dd in there to get the proper number of
> samples. some thing like:
> dd if=/dev/dsp bs=1024 count=1240312 | sox -etc -s - | oggenc
> 
> Fill in the proper options to sox and oggenc.  dd will output of
> STDOUT of you don't specify an output file. I'm guessing that "-s
> -" will tell sox to read from STDIN.
> 
> This will have dd read in about 2 hours worth of samples then
> exit. When it does, it will send an EOF to sox, which should make
> it close down, which will send an EOF to oggenc. I haven't tried
> this, but it should work.

But when sox attempts ioctls on the input (to set sample frequency,
size, etc.), it won't work if the input is a pipe. Perhaps putting
dd after sox works better.

Frank


-- 
Frank Heckenbach, frank at g-n-u.de
http://fjf.gnu.de/
PGP and GPG keys: http://fjf.gnu.de/plan

--- >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