I'm interested in ignoring the audio stream in a theora encoded file.
My first attempt was to remove the test for vorbis:
/* identify the codec: try theora */
if(!theora_p &&
theora_decode_header(&ti,&tc,&op)>=0){
/* it is theora */
memcpy(&to,&test,sizeof(test));
theora_p=1;
}else if(!vorbis_p &&
vorbis_synthesis_headerin(&vi,&vc,&op)>=0){
/* it is vorbis */
memcpy(&vo,&test,sizeof(test));
vorbis_p=1;
}else{
/* whatever it is, we don't care about it */
ogg_stream_clear(&test);
}
I simply commented out the "else if (! vorbis_p &&" line.
Unfortunately, the resulting executable displayed a green rectangle and,
when interrupted, crashes. Clearly I am doing something very wrong!
Any thoughts? I'm quite new to Theora.
Thanks.
-- Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xiph.org/pipermail/theora/attachments/20070925/ea733f61/attachment.html
OK... I've since discovered "oggsplit" and removed the audio. The
"oggsplit" routine complained about the video source I was using so I
switched to another. Interestingly, when I attempted to play the output
of "oggsplit" on the original video I got the same green rectangle
that
I saw here.
The problem file was "senate_proceeding_09-17-07.ogg.anx" from
http://metavid.ucsc.edu/. The "md5sum" of the file I downloaded was:
454fa0117f0e1fb432f2c4a956712d6b senate_proceeding_09-17-07.ogg.anx
I have other problems but they deserve a different subject line.
-- Jim
________________________________
From: Mayer, Jim
Sent: Tuesday, September 25, 2007 6:14 PM
To: 'theora@xiph.org'
Subject: ignoring audio in player_example
I'm interested in ignoring the audio stream in a theora encoded file.
My first attempt was to remove the test for vorbis:
/* identify the codec: try theora */
if(!theora_p &&
theora_decode_header(&ti,&tc,&op)>=0){
/* it is theora */
memcpy(&to,&test,sizeof(test));
theora_p=1;
}else if(!vorbis_p &&
vorbis_synthesis_headerin(&vi,&vc,&op)>=0){
/* it is vorbis */
memcpy(&vo,&test,sizeof(test));
vorbis_p=1;
}else{
/* whatever it is, we don't care about it */
ogg_stream_clear(&test);
}
I simply commented out the "else if (! vorbis_p &&" line.
Unfortunately, the resulting executable displayed a green rectangle and,
when interrupted, crashes. Clearly I am doing something very wrong!
Any thoughts? I'm quite new to Theora.
Thanks.
-- Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xiph.org/pipermail/theora/attachments/20070926/c6ba928a/attachment.html
Hi Jim, in general for Theora-only playback I'd advise looking at dump_video.c - that one does take care to only process Theora streams. I haven't looked closely but I guess just disabling the Vorbis header check may result in Vorbis data later on getting stuffed into the Theora decoder - albeit in your case I guess the decoder may have some PowerPC related problems. Maik Mayer, Jim schrieb:> I?m interested in ignoring the audio stream in a theora encoded file. > My first attempt was to remove the test for vorbis: > > > > /* identify the codec: try theora */ > > if(!theora_p && theora_decode_header(&ti,&tc,&op)>=0){ > > /* it is theora */ > > memcpy(&to,&test,sizeof(test)); > > theora_p=1; > > }else if(!vorbis_p && vorbis_synthesis_headerin(&vi,&vc,&op)>=0){ > > /* it is vorbis */ > > memcpy(&vo,&test,sizeof(test)); > > vorbis_p=1; > > }else{ > > /* whatever it is, we don't care about it */ > > ogg_stream_clear(&test); > > } > > > > I simply commented out the ?else if (! vorbis_p &&? line. > > > > Unfortunately, the resulting executable displayed a green rectangle and, > when interrupted, crashes. Clearly I am doing something very wrong! > > > > Any thoughts? I?m quite new to Theora. > > > > Thanks. > > > > -- Jim > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > theora mailing list > theora@xiph.org > http://lists.xiph.org/mailman/listinfo/theora