search for: ogg_page_packet

Displaying 10 results from an estimated 10 matches for "ogg_page_packet".

Did you mean: ogg_page_packets
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)...
2009 May 16
1
Speex seek with high precision
..._sync_pageout(&oy, &og) != 1) { data = ogg_sync_buffer(&oy, 512); 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,...
2015 May 19
2
How do I seek to seek to specific samples using libvorbis?
...on Link Subject: RE: [Vorbis] How do I seek to seek to specific samples using libvorbis? What I did was performed a binary search in my ogg vorbis file, in order to find the page proceeding the page containing the desired sample (you can determine this using the granule position). Next, I used ogg_page_packets() to determine how many packets complete on that page, skip to the final packet by calling ogg_stream_packetout N times and just ignoring the result. Then decode the page's final packet. This should mean that the next sample you decode will actually be the one the granule position says it is....
2012 Oct 19
3
How to cross-compile opus-tools?
...rence to `opus_encoder_ctl' /home/user/source/opus-tools/src/opusenc.c:864: undefined reference to `ogg_stream_packetin' /home/user/source/opus-tools/src/opusenc.c:878: undefined reference to `ogg_stream_flush_fill' /home/user/source/opus-tools/src/opusenc.c:881: undefined reference to `ogg_page_packets' /home/user/source/opus-tools/src/opusenc.c:881: undefined reference to `ogg_page_granulepos' /home/user/source/opus-tools/src/opusenc.c:828: undefined reference to `ogg_stream_flush_fill' /home/user/source/opus-tools/src/opusenc.c:830: undefined reference to `ogg_page_packets' /ho...
2015 May 20
0
How do I seek to seek to specific samples using libvorbis?
...seek to seek to specific samples using > libvorbis? > > > > What I did was performed a binary search in my ogg vorbis file, in order > to find the page proceeding the page containing the desired sample (you > can determine this using the granule position). Next, I used > ogg_page_packets() to determine how many packets complete on that page, > skip to the final packet by calling ogg_stream_packetout N times and > just ignoring the result. Then decode the page's final packet. This > should mean that the next sample you decode will actually be the one the > granule p...
2008 Nov 11
5
further debugging of my ogg/theora decoder
Hi, I am continuing to try to debug my ogg/theora decoder. The issue seems to be that not enough packets are being pulled from the bitstream, here is some sample output from my player with some debugging comments put in: (playback began at first frame, this is from the middle of the clip) get page at 1765027 got packet frame++, skip is 0 frame decoded page processed, kframe=414 : offs=442 get
2009 May 13
2
Speex seek with high precision
Hello everybody, I'm new to this mailing list so I'm sorry if it's the wrong place to post this. I'm developing a Speex player and I need to seek with a precision of milliseconds. I used liboggz that supposedly does just that, but it never seeks exactly where it should. For example if I use oggz_seek_units(oggz, 18450, SEEK_SET) result it's 16386 and there is a delay between
2008 Apr 04
0
speexdec 1.2.3
...mp;og) != os.serialno) { /* so all streams are read. */ ogg_stream_reset_serialno(&os, ogg_page_serialno(&og)); } /*Add page to the bitstream*/ ogg_stream_pagein(&os, &og); page_granule = ogg_page_granulepos(&og); page_nb_packets = ogg_page_packets(&og); if (page_granule>0 && frame_size) { /* FIXME: shift the granule values if --force-* is specified */ skip_samples = frame_size*(page_nb_packets*granule_frame_size*nframes - (page_granule-last_granule))/granule_frame_size; if...
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote: > Jahn, Ray (R.) a ?crit : > > > Dear Speex codec community: > > > > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...ogg_page_continued(ogg_page *og); extern int ogg_page_bos(ogg_page *og); extern int ogg_page_eos(ogg_page *og); extern ogg_int64_t ogg_page_granulepos(ogg_page *og); extern ogg_uint32_t ogg_page_serialno(ogg_page *og); extern ogg_uint32_t ogg_page_pageno(ogg_page *og); extern int ogg_page_packets(ogg_page *og); extern int ogg_page_getbuffer(ogg_page *og, unsigned char **buffer); extern int ogg_packet_release(ogg_packet *op); extern int ogg_page_release(ogg_page *og); extern void ogg_page_dup(ogg_page *d, ogg_page *s); /* Ogg BITSTREAM PRIMITIVES: return codes ********...