search for: ov_raw_seek

Displaying 17 results from an estimated 17 matches for "ov_raw_seek".

2002 Aug 01
1
ov_raw_seek doesn't work ?
I found a problem with ov_raw_seek function in oggvorbis win32sdk 1.0. When i called this function it returned OV_EINVAL immediatelly. I solved the issue by replacing the ov_raw_seek by ov_pcm_seek, which worked perfectly, but i would like to use the raw variant due to performace reason . Is anybody aware of this strange behavi...
2006 Aug 29
3
How can I seek in Ogg Vorbis file, but not using Vorbisfile library?
...o, All. I am making an Ogg Vorbis decoder based on Tremor. The Vorbisfile library provides a high-level API which enables us to seek in the file, but it needs to declare a pointer to OggVorbis_File structure. Because I am supposed not to use file, so I can't use the ov_pcm_seek() or ov_raw_seek() functions to seek in the file. For decoding an Ogg Vorbis file, I first put it in a buffer, then use API provided by libogg and libvorbis to decode it, and put the PCM in ouput buffer. Now I have a problem, how to seek in the Ogg Vorbis file not using Vorbisfile library? That means, I can o...
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 theora? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora/attachments/20090819/45c552f7/attachment.htm
2018 Nov 03
2
Decode ogg file while downloading: what are the good practices?
...download an audio file whose length is 300 seconds. When, for example, 15 seconds of the file were downloaded, I called OggPlayer::open(). After that moment, even if the file was fully downloaded, I was able to seek in the file, but only between 0 and 15 seconds (whether I use ov_pcm_seek() or even ov_raw_seek()). So yes, that makes sence if libvorbisfile builds a seek table only when opening the file. That said, isn't there any function that allows to rebuild that seek table? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/vorbis-d...
2005 Aug 16
1
ov_raw_tell() not working properly!
I'm working on an application where I need to record the current playing position and return to it later. and I need this to be done the most efficient way, so I used ov_raw_tell() and ov_raw_seek() because the documentation says they are the best when speed is a concern. but the problem is that sometimes ov_raw_tell returns the same value before and after calling ov_read; here's an example: prevPos = ov_raw_tell(&vf); const long ret = ov_read(&vf, temp_buffer, 4096, 0, bytesPer...
2003 Dec 11
1
Another vorbisfile question
Is there a straight forward method for seeking straight to a particular logical stream using vorbisfile? I'm guessing I'll have to look the offset for a given link up in vf->offsets, and use that in ov_raw_seek? Thanks, John --- >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. Unsub...
2004 May 10
1
re: Seek problems with vorbis_file
...cm_seek in vorbis_file:- Any seeks to a sample within the first second of the stream (i.e. < 44100 samples) fail. Seeks to samples beyond this 44100 limit are fine. It appears to be associated with vorbis_file trying to read the preceding page (odd for the beginning of the file), attempting an ov_raw_seek, then bombing out with an OV_EINVAL. Before diving any further into the code I thought I would ask if this was a known (and hopefully resolved) issue? - or if I'm missing something:) Many thanks, Paul <p><p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ O...
2018 Nov 03
3
Decode ogg file while downloading: what are the good practices?
Thanks for your answer. But as I said, I don't have any problem seeking in a local file. Also, I have full control on the ogg file I play, since I encode it by myself. I first would like to know if the code I provided ( https://gist.github.com/mregnauld/3f7cdc43b02ec3bbd91641b9333ba072) is good practice when it comes to extracting and seeking in a file that is being downloaded. Thanks.
2006 Mar 04
3
file io and reading ogg vorbis files
Hi, I am trying to find the specs for ogg vorbis but cannot find a complete spec online, I need to know the format of the headers and what to look for in order to sync, read, write, and manipulate the format easily with some functions. I know there are some examples of the code within the ogg vorbis dev tools and there is a fileogg library that is mentioned but I have not seen this elsewhere. I
2001 May 26
2
merging monty's branch
...hat's what the codebook model wants to do. Vorbisfile optimizations; I took HB's optimization patch, fixed a few infinite loop problems in it, and then decided to go a little nuts eliminating unneeded machine initializations and decoding work. The end result is that ov_open (and friends), ov_raw_seek and ov_pcm_seek_page are more than 100x faster (and even faster than that on a network file system), and the other seek functions (that do actually require some internal background PCM decode to get sample boundaries right) are a shade under 2x faster (again, much larger margin on distributed file...
2018 Nov 03
0
Decode ogg file while downloading: what are the good practices?
...it work if you call OggPlayer::release; OggPlayer::open; before OggPlayer::seek? The library uses bisection to efficiently find the target data, so it needs to be able to read the beginning and end of the file to get bracketing timestamps. If you don't need accurate seeking, you could use ov_raw_seek instead, which goes by byte offset in the compressed data. Pass in your own seek/tell callback functions to inform the library about the true file length known from the HTTP header. If you need accurate seeking, I think you're stuck with re-opening the file, or implementing your own seeking...
2018 Nov 03
0
Decode ogg file while downloading: what are the good practices?
...tthieu Regnauld wrote: . > When, for example, 15 seconds of the file were downloaded, I called > OggPlayer::open(). > After that moment, even if the file was fully downloaded, I was able to > seek in the file, but only between 0 and 15 seconds (whether I > useov_pcm_seek() or even ov_raw_seek()). That all seems consistent. Glad the work-around was helpful. > That said, isn't there any function that allows to rebuild that seek table? Nope. I don't recall anyone with this particular usecase in the past. Players have tended to assume the resource is non-seekable, or impleme...
2000 Jul 17
2
possible bug in _f0_fit_clear
...clear: +002a ea3039c6: * 103b cmpl (%eax), %edx Fader:sc frame retaddr fd042014 ea303e52 free_look + 0000005a fd04202c ea30627b free_look + 0000009f fd042048 ea2f3196 vorbis_dsp_clear + 0000033e fd042074 ea2eed99 _decode_clear + 0000002d fd042084 ea2efc8f ov_raw_seek + 0000007f fd04209c ea2eff6d ov_pcm_seek + 00000221 fd042100 ea2f022e ov_time_seek + 0000013a fd042144 ea2ede85 MyPlugin::JumpTo(long) + 00000031 fd04215c 800473d7 #File CL-Amp text + 000473d7 fd042278 80048d24 #File CL-Amp text + 00048d24 I'll try and fingure out more details l...
2004 May 11
0
re: Seek problems with vorbis_file
...; Any seeks to a sample within the first second of the stream (i.e. < > 44100 samples) fail. Seeks to samples beyond this 44100 limit are fine. > > It appears to be associated with vorbis_file trying to read the > preceding page (odd for the beginning of the file), attempting an > ov_raw_seek, then bombing out with an OV_EINVAL. > > Before diving any further into the code I thought I would ask if this > was a known (and hopefully resolved) issue? - or if I'm missing > something:) > This should work fine (seeking is well-tested). Could you send us a) your code, and/o...
2006 May 11
1
Speed up?
...udio, &vf, NULL, 0 ) < 0 ){ std::cout << "ov_open problem" << std::endl; } int read = 0; float** ovdata; int current_section = 0; do{ read = ov_read_float(&vf , &ovdata, 64, &current_section); if ( read == 0 ){ ov_pcm_seek( &vf, 0 ); // ov_raw_seek() won't help read = ov_read_float(&vf, &ovdata, 64, &current_section); } } while (read != 0); return 0; } ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
2006 Aug 30
2
Continued:How can I seek in Ogg Vorbis file, but not using Vorbisfile library?
Hello, All. First, I want to thank Ian Malone and Ralph Giles, thanks for your kind replies. But I still have problems about seek. As you suggested, I could use ov_open_callbacks() 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
2004 Sep 06
1
Fixing libvorbisfile to handle largefiles
...and no chance of playing a large size file on a 32-bit system. (The rest of the hack is another attempt to work around an overflow in bisect that I posted earlier, and which I'll post and possibly re-do sometime later.) Glancing for the first time ;-) at the doc directory, it also seems like ov_raw_seek() and seek_lap are possible candidates for a change from long to 64-bit as well, but I'm not sure how/where those are used. As the return from ov_raw_total() is already 64-bit, it seems one would want to change the seek functions to match for consistency. As noted, the doc, possibly examples...