search for: oggz_seek_unit

Displaying 12 results from an estimated 12 matches for "oggz_seek_unit".

Did you mean: oggz_seek_units
2012 May 16
2
Problems seeking with liboggz
...pen a Ogg Speex-encoded audio file with oggz_open("MyFile.spx", OGGZ_READ | OGGZ_AUTO); - I have a loop of invocations of oggz_read() that triggers in the due time the page and packet callbacks defined by me. - But when I randomly do seeking by means of ogg_int64_t rseek = oggz_seek_units(pOGGZ, posMsecs, SEEK_SET); I get erratic results: Many times rseek does not match posMsecs. The first page callback after the seek invocation refers to a page that is sometimes previous and sometimes after the page that contains posMsecs. What rules are to...
2013 Sep 06
0
Multi-track Seeking with oggz
Hopefully, this is the correct list for liboggz questions - if not please let me know. If I have multiple logical streams in an ogg file, and I invoke the oggz_seek_units() function, how does it know on which logical stream to seek? Or does it matter? For example, assume: 1. I've opened an ogg file with the correct flags: OGGZ_READ | OGGZ_AUTO 2. My ogg file contains 4 logical streams. 3. Each logical stream is identical in terms of codec (Speex), sample-ra...
2012 May 21
1
Problems seeking with liboggz
...OGGZ, 0, SEEK_END); printf("\n Audio file size in bytes = %8lld", ofs); ofs = oggz_seek(pOGGZ, 0, SEEK_SET); ret = oggz_read(pOGGZ, 28779); for(int i=0; i<3; i++) { ogg_int64_t seektime = (i==0 ? 5000 : i==1 ? 10000 : 13000); ogg_int64_t rseek = oggz_seek_units(pOGGZ, seektime, SEEK_SET); ogg_int64_t tellseek = oggz_tell_units(pOGGZ); printf("\n Requested seek time = %8lld, return of time seek function = %8lld, return of time tell function = %8lld", seektime, rseek, tellseek); } oggz_close(pOGGZ); return 0; } //------...
2009 May 13
2
Speex seek with high precision
...rybody, 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 the playback and the moment where it should start. Only when I seek to position 0 I get the desired result. I've also used ogg_page_granulepos for seeking but it seems more difficult to use. I use something like this:...
2009 May 04
1
[PATCH] oggz: inefficient seeking
I have a 1.1G Ogg file with vorbis and theora. oggz_seek_units() takes 14 seconds to find a position in the file towards the end. Now, the function guess() in oggz_seek() guesses a position at about 1.5G and then slowly searches back until it finds the end of the file (continously seeking beyond the end of the file and then calling read which returns 0). Th...
2012 May 21
0
Problems seeking with liboggz
...es = %8lld", ofs); > > ofs = oggz_seek(pOGGZ, 0, SEEK_SET); > > ret = oggz_read(pOGGZ, 28779); > > > > for(int i=0; i<3; i++) > > { > > ogg_int64_t seektime = (i==0 ? 5000 : i==1 ? 10000 : 13000); > > ogg_int64_t rseek = oggz_seek_units(pOGGZ, seektime, > SEEK_SET); > > ogg_int64_t tellseek = oggz_tell_units(pOGGZ); > > printf("\n Requested seek time = %8lld, return of time seek > function = %8lld, return of time tell function = %8lld", seektime, > rseek, tellseek); > > } >...
2012 May 23
0
Problems seeking with liboggz
...es = %8lld", ofs); > > ofs = oggz_seek(pOGGZ, 0, SEEK_SET); > > ret = oggz_read(pOGGZ, 28779); > > > > for(int i=0; i<3; i++) > > { > > ogg_int64_t seektime = (i==0 ? 5000 : i==1 ? 10000 : 13000); > > ogg_int64_t rseek = oggz_seek_units(pOGGZ, seektime, > SEEK_SET); > > ogg_int64_t tellseek = oggz_tell_units(pOGGZ); > > printf("\n Requested seek time = %8lld, return of time seek > function = %8lld, return of time tell function = %8lld", seektime, > rseek, tellseek); > > } >...
2012 May 17
0
Problems seeking with liboggz
...("MyFile.spx", > OGGZ_READ | OGGZ_AUTO); **** > > - I have a loop of invocations of oggz_read() that triggers in the due > time the page and packet callbacks defined by me.**** > > - But when I randomly do seeking by means of **** > > ogg_int64_t rseek = oggz_seek_units(pOGGZ, posMsecs, SEEK_SET);**** > > I get erratic results: **** > > Many times rseek does not match posMsecs. **** > > The first page callback after the seek invocation refers to a page > that is sometimes previous and sometimes after the page that contain...
2009 May 13
0
Speex seek with high precision
...his 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 the playback > and the moment where it should start. Only when I seek to position 0 I get > the desired result. ok, first up I'll mention that I'm rewriting the seeking part of liboggz atm, so this is goo...
2004 Aug 06
3
seeking
Hi, I need to know if it is possible to seek the Speex stream. I want to have an ability to seek in time, just like Vorbis does. Vorbis has function "ov_time_seek" and I want something like this from Speex. Is this possible? Thanks for any reply. Rado --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this
2009 Sep 14
0
Oggz 1.0.0 Release
...ified byte range. Adds oggz_bounded_seek_set() public API call. * Updated shared version info to 7:0:6 Internal -------- * Handle Theora version > 3.2.0 initial granulepos 1|0 * Fix data alignment on ARM (Erik de Castro Lopo, Chris Double, Vladimir Vukicevic) * Fix for inefficient oggz_seek_units() (Sean Young) * oggz_read: always set the internal offset to the start of the current page. This is returned by oggz_tell() and can be queried within a ReadPage callback. * oggz_read: Fix packetno check for holes in headers. The packetno has not yet been incremented, so the value to c...
2009 May 15
0
[PATCH] oggz: limit seeking to specified range
...granulepos); #endif - return oggz_seek_set (oggz, unit_end + unit_offset); + return oggz_bounded_seek_set (oggz, unit_end + unit_offset, 0, -1); } off_t oggz_seek (OGGZ * oggz, oggz_off_t offset, int whence) { OggzReader * reader; ogg_int64_t units = -1; @@ -884,21 +861,21 @@ oggz_seek_units (OGGZ * oggz, ogg_int64_t units, int whence) #endif return -1; } reader = &oggz->x.reader; switch (whence) { case SEEK_SET: - r = oggz_seek_set (oggz, units); + r = oggz_bounded_seek_set (oggz, units, 0, -1); break; case SEEK_CUR: units += rea...