search for: ogg_sync_pageseek

Displaying 14 results from an estimated 14 matches for "ogg_sync_pageseek".

2006 Dec 07
2
page syncing and magic OggS
...PI to find out which ones are the start of pages? (Other than trying to decode from successive 'OggS' markers and noting when the resulting page changes.) Is this what ogg_sync_page_seek is for? I can't quite work out from the documentation what it does. http://xiph.org/ogg/doc/libogg/ogg_sync_pageseek.html Does the sequence go, get a page, find a nearby 'OggS', put data from that point into a sync_state and ask pageseek whether we're in the right place? -- imalone
2000 Sep 13
1
my vorbis comments
...A more general way to choose an info struct 2. vorbisfile: Write capability. 3. ogg_page: A way to compute page length. In order to compute the page length, I've been adding header_len and body_len - which is currently correct - but it's not part of the spec as far as I can tell. ogg_sync_pageseek would tell me the page length, but if I should use that, then who needs ogg_sync_pageout? 4. analysis/synthesis: a. I wouldn't mind if vorbis didn't use separated channel buffers, but since I don't understand the compression details, they might be really important. b. I...
2000 Jun 27
1
vorbis-tools/Makefile.in glitch...
...pm's build environment, I get lots of: gcc ogg123.o -o ogg123 -lm ../lib/libvorbis.a ../lib/vorbisfile.a ../lib/vorbisfile.a(vorbisfile.o): In function `_get_prev_page': vorbisfile.o(.text+0x54): undefined reference to `ogg_sync_reset' vorbisfile.o(.text+0xa9): undefined reference to `ogg_sync_pageseek' vorbisfile.o(.text+0xd2): undefined reference to `ogg_sync_buffer' ... This is obviously because libvorbis comes before vorbisfile on the command line ;). It really seems like we should be doing "-L../lib -lvorbis" instead of ../lib/libvorbis.a though, and that would fix the pr...
2013 Dec 04
1
possible regression in libogg
Am 03.12.2013 23:49, schrieb Monty Montgomery: > Any time code is stuck in a loop calling ogg_sync_pageseek() or > ogg_sync_pageout(), you'll see most of the time sunk into checksum > calculation. It's the only thing in libogg that _can_ take much time. > This is not likely a libogg bug, but a bug in the code calling libogg > in a tight loop. > > Looking at the file listed in...
2013 Dec 03
2
possible regression in libogg
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello devs, since this bug affect gstreamer and vlc, i assume it is libogg regression. Please take a look at this bug report: https://bugzilla.gnome.org/show_bug.cgi?id=719615 - -- Regards, Oleksij -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
2006 Aug 30
2
Continued:How can I seek in Ogg Vorbis file, but not using Vorbisfile library?
...lbacks() to supply my own read/write/seek functions. So, can you give me an example? I?m sorry for my ignorance, because I haven?t used callbacks before. I analyzed the vorbisfile.c in Tremor, and I think I need more specific information about the seek algorithm. As far as I know, I could use ogg_sync_pageseek() function to find the next page; if it returns 0, that means I need to read more data; if it returns n, that means the page was synced at the current location with a page length of n bytes, so the location is where the ?Oggs? is, am I right? And if it returns -n, does it mean I already skipped n b...
2013 Dec 03
0
possible regression in libogg
Any time code is stuck in a loop calling ogg_sync_pageseek() or ogg_sync_pageout(), you'll see most of the time sunk into checksum calculation. It's the only thing in libogg that _can_ take much time. This is not likely a libogg bug, but a bug in the code calling libogg in a tight loop. Looking at the file listed in the bug, there's a page d...
2003 Jul 31
0
Implementing seeking in splayer
Hi, I have now played around with seeking a bit. Currently I can seek into a file position in splayer and resynchronize playing (via ogg_sync_pageseek) from there. I did not take chained streams into account yet, as I'm not sure if it would make splayer far to complex for a sample application. Maybe later. Before I implement seeking to a specified time (ala libvorbisfile), can you answer me these questions: 1. Libvorbisfile does a vorbis_s...
2007 Apr 12
0
Seek problem 1 - can't find frame number
...*,ogg_int64_t). But what do I have to do while doing the jumps to find this? This is what the code currently does just after seeking to a new place in the file: // Clear the current ogg buffers, find a new page, and fill the buffers again int result; ogg_sync_reset(&sync); while ((result = ogg_sync_pageseek(&sync, &page)) <= 0) if (result == 0) bufferData(); // Find the next theora page while ((result = ogg_sync_pageout(&sync, &page)) == 0) bufferData(); while (ogg_page_serialno(&page) != tstream.serialno) if (ogg_sync_pageout(&sync, &page) <= 0) bufferData...
2006 Jan 04
0
Is it possible to compile libvorbis with mingw?
I have searched the net and I have found other people who are having problems compiling libvorbis, but I have not found a solution. My problem occurs when trying to create library libvorbisfile.dll.a I get multiple undefined references like undefined reference to `ogg_sync_pageseek' I was able to compile libogg without a problem. I am using msys with ./configure and make to build the library. Are there instructions somewhere I have missed? Thanks!
2006 May 09
0
libvorbis build errors when using configure
...-LC:/lib/ogg-vorbis/libogg-1.1.3/lib ./.libs/libvorbis.dll.a -o .libs/libvorbisfile-3.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libvorbisfile.dll.a where it told me Creating library file: .libs/libvorbisfile.dll.a .libs/vorbisfile.o(.text+0x73):vorbisfile.c: undefined reference to `ogg_sync_pageseek' .libs/vorbisfile.o(.text+0xb8):vorbisfile.c: undefined reference to `ogg_sync_buffer' .libs/vorbisfile.o(.text+0xec):vorbisfile.c: undefined reference to `ogg_sync_wrote' .libs/vorbisfile.o(.text+0x237):vorbisfile.c: undefined reference to `ogg_page_serialno' and this goes on fo...
2010 Jan 06
1
Initializing vorbis using ov_open_callbacks fail with OV_ENOTVORBIS. But why?
...a and vorbis) and play the audio part using vorbisfile. I hope that one of you can give me a hint or point me to additional documentation. I used ogg.h and vorbisfile.h. The way so far: - initializing an ogg_sync_state - inserting data to sync_state using ogg_sync_buffer - when whole page found (ogg_sync_pageseek(&sync, &page) > 0) I initialize a ogg_stream_state and add page using ogg_stream_packetin. (in the case the first packet is vorbis - ogg_stream_packetout and check for first some bytes) - next pages with same serial number are handled equivalently: stored in ogg_stream_state using...
2009 Aug 19
2
How to seek theora streams
I need to be exposed to a way of seeking theora streams. I have repeatedly found the same question asked on a different forums but could not find an answer. I'm working on a game and started integrating video with theora, the sound works just fine with ogg/vorbis(i find it easy to seek using ov_raw_seek for audio files). Could someone please point me to some example/code of how can i seek with
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...n ogg_sync_state *ogg_sync_create(void); extern int ogg_sync_destroy(ogg_sync_state *oy); extern int ogg_sync_reset(ogg_sync_state *oy); extern unsigned char *ogg_sync_bufferin(ogg_sync_state *oy, long size); extern int ogg_sync_wrote(ogg_sync_state *oy, long bytes); extern long ogg_sync_pageseek(ogg_sync_state *oy,ogg_page *og); extern int ogg_sync_pageout(ogg_sync_state *oy, ogg_page *og); extern int ogg_stream_pagein(ogg_stream_state *os, ogg_page *og); extern int ogg_stream_packetout(ogg_stream_state *os,ogg_packet *op); extern int ogg_stream_packetpeek(ogg_stream_st...