[vorbis-dev] wav output to stdout status?

volsung at asu.edu volsung at asu.edu
Sun May 6 09:40:42 PDT 2001



I actually submitted a patch that was never committed that wrote as much of
the RIFF header has was possible at the start of playback, and then went back
and wrote the correct length values once playback finished:

http://www.xiph.org/archives/vorbis-dev/200101/0287.html

It still doesn't allow stdout to be used for output.  The patch sets the
length to 0x7fffffff (max 32-bit signed int), which seems to not crash most
programs.

If you want to see what you favorite program does with this type of header,
download: http://volsung.dhcp.asu.edu/~stan/less-infinite.wav

If it really is useful to pipe WAV files with busted headers, I'll get Jack to
commit my wav_header patch and modify ao_wav to accept stdout as a valid
file.


---
Stan Seibert

On Wed, 5 Sep 2001, Aaron Plattner wrote:

> Or just do "ogg123 -d raw -o file:- file.ogg | sox -t raw -r 44100 -c 2 -sw - -t wav -"
> 
> sox will put a (corrupt) RIFF header on it, which will make at least a couple
> programs work.  What we really need is a format containing sampling rate,
> channels, etc. but not length.  Are there any formats like this?
> 
> Aaron Plattner
> 
> On Sun, May 06, 2001 at 08:42:54AM -0700, volsung at asu.edu wrote:
> > Then I would follow the suggestion given by the other poster of using a shell
> > script to output the wav data to a temp file and then cat the file into the
> > next program you need.
> > 
> > ogg123 isn't really geared toward file to file conversion, but rather file
> > playback.
> > 
> > ---
> > Stan Seibert
> > 
> > On Sun, 6 May 2001, smoerk at gmx.de wrote:
> > 
> > > But I need piping WAV or another non-headerless format to stdout. it's
> > > not very useful to pipe raw audio to stdout, because not every ogg file
> > > or stream is 44.1khz, 2 channel.
> > > 
> 

--- >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-dev-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-dev mailing list