[vorbis-dev] [fwd] ogg123 (from: pfk@fuchs.offl.uni-jena.de)

volsung at asu.edu volsung at asu.edu
Tue Jan 9 05:35:11 PST 2001



> For ogg123 I need the following feature:
> 
> - Decode one .ogg file and write it as 44 byte standard header .wav
>   to stdout.
> 
> Can you add this feature?

This looked easy at first, but then I remembered that our wav output code
writes the header last (using file seeking fuctions) so that it can get the
file size information correct.  Is there a way to change the code so that it
writes it first?  Will programs break if the size info is incorrect?

> f:.../Audio/technik/ogg # ogg123 -d wav -o file:1.wav
> American_Heartbreak-White_Girl.ogg
> 
> Playing from file American_Heartbreak-White_Girl.ogg.
> 
> Bitstream is 2 channel, 44100Hz
> Encoded by: Xiphophorus libVorbis I 20000508
> 
> 
> Done.
> Segmentation fault
> f:.../Audio/technik/ogg # file 1.wav
> 1.wav: ASCII text
> f:.../Audio/technik/ogg # wavplay 1.wav
> Bad format: Cannot find RIFF file marker:
> Reading WAV header from 1.wav
> f:.../Audio/technik/ogg # bd 1.wav | less
> 000000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> *
> 0090c0  00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0090d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff
> 0090e0  00 00 ff ff 00 00 ff ff 00 00 fe ff 00 00 fe ff
> 0090f0  00 00 fe ff 00 00 fe ff 00 00 fe ff 00 00 ff ff
> 009100  00 00 00 00 00 00 01 00 00 00 01 00 00 00 01 00
> 009110  00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00
> f:.../Audio/technik/ogg # _

The zeros in the header mean that the code segfaulted before the wav device
was closed.  I'll look at the code some more this afternoon to see if I can
dig up where the problem could be.


---
Stan Seibert

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