Displaying 20 results from an estimated 46 matches for "ogg_stream_pagein".
2001 Feb 04
2
Am I missing something?
Hey all,
If my understanding is right, there's a serious big in vorbisfile.c, in
the routine _fetch_headers(), which will only show up when comment
packet spans multiple pages. The code to read the first 3 Vorbis
packets ogg_stream_pagein() once, then calls ogg_stream_packetout().
The problem is that ogg_stream_pagein() only adds a single page to the
ogg stream state, whereas ogg_stream_packetout(), loops until it finds a
non-255 lacing value. So, if the comment packet is larger than one
page, all lacing values will be 255, and o...
2005 Jun 22
2
ogg_sync_pageout
It seems to me that running ogg_sync_pageout doesn't automatically advance
the page. This is good if you haven't worked with the given page, makes
coding somewhat easier. However, when does a page advance. Is it after a
call to ogg_stream_pagein?
On a side note, I need to do seeking on top of libvorbis, I'd love to use
vorbisfile but sadly I can't. Is there a reasonable way to "rewind" without
calling various resets and returning to the beginning of the file? It looks
like I'd have to call:
Ogg_sync_reset
Vorbis_syn...
2001 Dec 06
1
packet over several pages
Hello everyone,
I'm programming something using ogg vorbis and i
was wondering how I could get a packet from a
logical bitstream when this packet is over several
pages.
let's say I made a call to ogg_stream_pagein, then
ogg_stream_packetout, but the packet is incomplete
and continued in the next page(s). If I get the
following page and I call ogg_stream_pagein again,
how can i get the beginning of my packet back. It
seems to that only one page is accessible at a
time through an ogg_stream_state...
***...
2008 Apr 29
2
More trival questions
...he_ogg_stream_state, 0);
do {
if (ogg_sync_pageout(&the_ogg_sync_state, &the_ogg_page) == 1) {
printf("Decode Page\n");
send_to_my_decoder( the_ogg_page.body, the_ogg_page.body_len );
ogg_stream_pagein(&the_ogg_stream_state, &the_ogg_page);
ogg_stream_packetout(&the_ogg_stream_state, &the_ogg_packet);
printf("Decode Packet\n");
send_to_my_decoder( the_ogg_packet.packet, the_ogg_packet.bytes );...
2004 Sep 18
5
possible libogg bug holding up Ogg FLAC
...-----+------------+
| xxxxxx|xxxxxxxxxxxxx|xxxxxxxxxxxxx|xxxxxxx |
^
|
Say I reset the sync/stream states and fseek to where the
arrow is. Then I ogg_sync_pageout() and fill the sync
buffer until it syncs on page 6 and ogg_sync_pageout()
returns > 0.
Then I ogg_stream_pagein(). It recognizes that a reset
happened -- "if(pageno!=os->pageno){" -- then inside checks
the 'continued' flag and eats up all the segments of the
packet in page 6, then 'bodysize' is 0 and the function
returns.
Then I ogg_stream_packetout() and it returns 0 because t...
2009 May 12
2
compile error of libtheora example
...ence to `SDL_UnlockSurface'
player_example.c:(.text+0xb05): undefined reference to
`SDL_UnlockYUVOverlay'
player_example.c:(.text+0xb1a): undefined reference to
`SDL_DisplayYUVOverlay'
/tmp/ccpyle3c.o: In function `queue_page':
player_example.c:(.text+0xce4): undefined reference to `ogg_stream_pagein'
player_example.c:(.text+0xd00): undefined reference to `ogg_stream_pagein'
/tmp/ccpyle3c.o: In function `main':
player_example.c:(.text+0xe17): undefined reference to `ogg_sync_init'
player_example.c:(.text+0xe23): undefined reference to `vorbis_info_init'
player_example.c:(.te...
2008 Oct 31
0
Ogg slow _os_body_expand
ogg.k.ogg.k at googlemail.com wrote:
>> New data accomulate in ogg_stream_state use ogg_stream_pagein.
>>
>
> Check that the pages are increasing in timestamps (eg, run oggz-validate
> from oggz-tools, from www.annodex.net).
>
oggz-validate have empty output with my videofile.
> Check that you're not pulling only one packet per page (eg, loop over
> packetout and...
2001 Feb 11
2
ogg_stream_packetout() and stream mixing
Just to make sure, if I'm mixing 2 streams at the page level, and using
ogg_stream_pagein() and ogg_stream_packetout() to extract them, I need
two ogg_stream_states, one for each logical stream, and I need to ensure
that each ogg_stream_state only sees pages of it's own type, is that
right?
- Martin
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage:...
2009 May 16
2
Speex seek with high precision
Hello Conrad,
I'm trying to seek the way you told but I'm facing a problem.
ogg_page_packets returns 164 and following code returns 189. Shouldn't it be
the same, what does that means ?
int res;
while (true)
{
res = ogg_stream_packetout(&os, &op);
if (res == 1)
nPackets++;
if (res == -1)
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 take so m...
2008 Aug 28
0
Error while cross compiling libvorbis 1.2.0
...nc_wrote'
decoder_example.o(.text+0x70): undefined reference to `ogg_sync_pageout'
decoder_example.o(.text+0x8c): undefined reference to `ogg_page_serialno'
decoder_example.o(.text+0xa8): undefined reference to `ogg_stream_init'
decoder_example.o(.text+0xc8): undefined reference to `ogg_stream_pagein'
decoder_example.o(.text+0xe0): undefined reference to `ogg_stream_packetout'
decoder_example.o(.text+0x114): undefined reference to `ogg_sync_pageout'
decoder_example.o(.text+0x138): undefined reference to `ogg_sync_buffer'
decoder_example.o(.text+0x168): undefined reference to `og...
2001 Sep 22
3
retrieving "instant" bitrate without vo_open?
ok, I'm aware that vo_open cant be used at the same time as other functions
such as ogg_sync_wrote, ogg_sync_pageout, ogg_stream_pagein,
ogg_stream_packetout and vorbis_synthesis_headerin. In order to get
information from the bitstream i've been using this method because it's fast
and doesn't require decoding of the stream. But, i can only retrieve the
average bitrate of the ogg stream with the vorbis_info struct...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...ageCount = -1;
int flgPacketsConsumed = 0;
int packetCount = -1;
int flgEOSPage = 0;
while(!flgBailError) {
dprintf("Page: %d\n", pageCount);
if (pageCount != -1) {
if (pageCount == 0) {
// FIXME: Silly pageCount used to indicate serial number change
// because ogg_stream_pagein does braindead release on error and
// ogg_page_bos() doesn't seem to work for a concatenated stream.
dprintf("Beginning of stream found\n");
// Use hex to match ogginfo return
dprintf("Setting serial number: %x\n", ogg_page_serialno(og));
ogg_stream_reset_serialno(os...
2009 May 16
1
Speex seek with high precision
...nb_read = fread(data, 1, 512, fin);
ogg_sync_wrote(&oy, nb_read);
}
nPages++;
}
while (ogg_page_granulepos(&og) < position);
printf("ogg_page_packets: %d\n", ogg_page_packets(&og));
// Add page to the bitstream
ogg_stream_pagein(&os, &og);
printf("ogg_page_packets: %d\n", ogg_page_packets(&og));
/* Packet counter */
int res;
while (true)
{
res = ogg_stream_packetout(&os, &op);
if (res == 1)
nPackets++;
if (res == -1)
print...
2017 Apr 03
1
Chained Vorbis Stream Distorting
Hi All,
I'm relatively new to Ogg and Vorbis and I've hit a pretty puzzling issue,
and I'm wondering if a veteran could help me out.
I'm attempting to decode a chained live Ogg Vorbis stream. The primary
issue is that the source does not exactly follow validation (I have no
control of this). The stream switches from a prerecorded segment, to a live
segment, back to a prerecorded
2008 Jan 04
2
ogg packets get lost
...library to easily create command line tools to cut/cat video-files and to
extract and join the video and audio stream etc.
However, I started the project and found some very strange behaviors:
I stored some ogg_packet objects (which are created on the heap) in a list.
When I make several calls to ogg_stream_pagein() and ogg_stream_packetout(),
the packets are accidentally overwritten by some nonsense.
I am not sure what really happens, but I guess the libogg writers wanted to
reduce the memory copy to a minimum, so that there are pointers (packet),
which will be reused or whatever.
My question is: how d...
2002 Mar 18
1
Bug in ogglib leads to incomplete packets
...he beginning
and not the end.
(packets = 0 continued = 1)
- You deliver the next page which contains
the end of the page before and some more
(packets >= 1 )
Now ogglib returns the end of this packet as
a complete packet because the check if there
was a hole is only done once in ogg_stream_pagein
Best regards,
Tobias
--- >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@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed...
1999 Oct 04
3
Detailed decoder pseudocode (was: Re: ETA?)
...ata */
/* I handle the initial header first instead of just having the code
read all three Vorbis headers at once because reading the initial
header is an easy way to identify a Vorbis bitstream and it's
useful to see that functionality seperated out. */
vorbis_info_init(&vi);
if(ogg_stream_pagein(&os,&og)<0){ /* error; stream version mismatch perhaps */}
if(ogg_stream_packetout(&os,&op)!=1){ /* no page? must not be vorbis */}
if(vorbis_info_headerin(&vi,&op)<0){ /* error case; not a vorbis header */}
/* At this point, we're sure we're Vorbis. We'v...
2006 Aug 06
2
Speex + Ogg package
...ogg_sync_pageout(&oy,&audio_page)>0)
{
if (stream_init == 0)
{
ogg_stream_init(&os, ogg_page_serialno(&audio_page));
stream_init = 1;
}
queue_page(&audio_page);
while(ogg_stream_packetout(&os,&op)>0)
{
int b;
ogg_stream_pagein(&os, &audio_page);
int len=(audio_page.body_len-4)/FRAMES_PACKET;
char *datos=(char*)op.packet;
char m[100];
sprintf(m,"paq %d",op.packetno);
System::Console::WriteLine(gcnew String(m));
int t=((int *)datos)[0];
for(int i=0...
2004 Nov 01
1
compile libvorbis using mingw?
...`ogg_page_serialno'
.libs/vorbisfile.o(.text+0x80f):vorbisfile.c: undefined reference to
`ogg_stream_reset_serialno'
.libs/vorbisfile.o(.text+0x821):vorbisfile.c: undefined reference to
`ogg_stream_reset_serialno'
.libs/vorbisfile.o(.text+0x83a):vorbisfile.c: undefined reference to
`ogg_stream_pagein'
.libs/vorbisfile.o(.text+0x849):vorbisfile.c: undefined reference to
`ogg_stream_pagein'
.
.
.
It seems it cannot find libogg to link with. What arguments should I
tell libvorbis's configure to make /mingw/libogg* accessible to it?
Thanks in advance.