Displaying 6 results from an estimated 6 matches for "ogg_stream".
2005 Dec 08
1
A few questions how to use libogg
1.) after initializing a ogg_stream_state may I just keep calling
ogg_stream_packetin with valid ogg_packet's until no more ogg_packets
needs to be added? Or do I need to call ogg_stream_pageout after every
ogg_stream_packetin? Iaw may I delay calling ogg_stream_pageout until
there are no more packets to be added?
2.) I assu...
2003 Sep 11
1
Flushing audio
...x00ff & (int) buf[i*2])) / 32768.f;
}
vorbis_analysis_wrote(&dsp_state, vals);
while(vorbis_analysis_blockout(&dsp_state, &vblock) == 1){
ogg_packet ogg_pkt;
vorbis_analysis(&vblock, &ogg_pkt);
ogg_stream_packetin(&ogg_stream, &ogg_pkt);
while(1){
int result = ogg_stream_flush(&ogg_stream, &page);
if(!result)
break;...
2007 Feb 15
1
How to do Theora playback efficiently ?
...smooth video
playback so another implementation is needed.
Because of this I tried to do this demuxing stuff (read from file, do the
page_in calls) in a seperate thread. But without defining critical sections
or other handling of synchronising threads, I get a lot off runtime errors
(collission of ogg_stream and ogg_theora functions because of suddenly zero
packets, etc.).
If I synchonise the threads, it's working but I have a big slow down
again... it works not efficiently.
I don't understand why I have all these theora and ogg states when they are
not capable of handle multiple threads. The...
2007 Feb 16
1
AW: How to do Theora playback efficiently ?
...ith precached
decoded audiobuffers). Not only the Theora decoding and the YUV2RGB stuff
takes time and those seem to be not the main reason why audio gets stalled
(the vorbis decoder is in the same loop and it is called very frequently,
also when heavy work load on theora). The problem occures when
ogg_stream_pagein() is called. In case of the theora stream it has to be
called about 20-30 times successively... and this takes up to 30ms (for one
frame)!! During this time BOTH decoders are 20-30 times called but because
of no data stalled.
So I don't understand why these ogg_stream_pagein() calls ta...
2000 Apr 28
2
Metadata followup
Once upon a time Monty said:
>id3v2 will not be a part of Vorbis. Ogg bistreams allow mixing streams of any
>type, and there will be an XML stream type defined for metadata. This is a
>better solution than id3 in just about every technical sense. The Ogg
>bitstream code to support this already exists.
Can you please elaborate? Is this functionality complete? The only
mention to
2007 Dec 13
1
Help recording from PCM stream and silence.
I need it to be able to take a stream of PCM data and encode it. Right
now it works if I am recording from a source (i.e. microphone or with
"what you hear") but when I try to use another API (Team Speak) to
capture the PCM data it doesn't seem to be encoding correctly. (I know
the PCM data is correct. I am able to use it to create a wav file.)
I'm also having a problem with