Djlithium bad stream! Re: [vorbis-dev] Yet another backtrace
Oddsock
oddsock at oddsock.org
Wed Sep 12 22:13:38 PDT 2001
when listening to my stream which is exibiting this problem, I get the
following on song changes :
residue bit usage nan:nan (nan total)
residue bit usage nan:nan (nan total)
W: Stream error
Title: Am I Evil?
Artist: Metallica
Bitstream is 2 channel, 44100Hz
Encoded by: Xiphophorus libVorbis I 20010813
(this is using ogg123 to listen)
I think the problem is related to the 2 bytes of garbage that appear
between the 2nd and 3rd vorbis header, but I'm not sure..Monty, can you
confirm this ?
also, to be complete, I am including my code which sends the headers on a
song change, anything seem out of the ordinary ?
ogg_packet header_main;
ogg_packet header_comments;
ogg_packet header_codebooks;
vorbis_comment vc;
char title[1024] = "";
char artist[1024] = "";
char FullTitle[1024] = "";
char SongTitle[1024] = "";
char Artist[1024] = "";
memset(Artist, '\000', sizeof(Artist));
memset(SongTitle, '\000', sizeof(SongTitle));
memset(FullTitle, '\000', sizeof(FullTitle));
vorbis_comment_init(&vc);
if (!strcmp(gMetadataUpdate, "FALSE")) {
getCurrentSongTitle(SongTitle, Artist, FullTitle);
sprintf(title, "TITLE=%s", SongTitle);
vorbis_comment_add(&vc,title);
sprintf(artist, "ARTIST=%s", Artist);
vorbis_comment_add(&vc,artist);
}
/* Build the packets */
memset(&header_main, '\000', sizeof(header_main));
memset(&header_comments, '\000', sizeof(header_comments));
memset(&header_codebooks, '\000', sizeof(header_codebooks));
vorbis_analysis_headerout(&vd,&vc,
&header_main,&header_comments,&header_codebooks);
ogg_stream_packetin(&os,&header_main);
ogg_stream_packetin(&os,&header_comments);
ogg_stream_packetin(&os,&header_codebooks);
oddsock
At 09:56 PM 9/12/2001, you wrote:
>On Wed, Sep 12, 2001 at 10:39:46PM -0400, Ignacio Vazquez-Abrams wrote:
> > On Wed, 12 Sep 2001, Monty wrote:
> >
> > > What's being used to make this stream? That bug should be fixed.
> > >
> > > (I'm hardening vorbisfile against the problem so that it's more
> > > tolerant of garbage. The streaming software should still be fixed).
> >
> > IIRC, Lithium is currently using Oddcast DSP 26 from Oddsock.
>
>OK. I need to get together with Oddsock and find the problem then.
>
>I've finished hardening Vorbisfile against the trouble and will commit.
>
>Monty
>
>--- >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.
--- >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