[vorbis] Speed of ov_open (Vorbisfile)

Andy Robinson andy at seventhstring.com
Tue Oct 21 02:14:16 PDT 2003



In message <200310211113.41122.msmith at xiph.org>, Michael Smith
<msmith at xiph.org> writes
>On Tuesday 21 October 2003 00:05, Andy Robinson wrote:
>> The documentation for ov_open warns us that this func can be fairly time
>> consuming.
>>
>> My app collects info about the file once (how many channels, total
>> length etc) but may then open it for reading several times, even
>> simultaneously from different threads.
>>
>> It seems to me it would be very useful to be able to open a file a
>> second time without scanning it all over again, by having a variant form
>> of ov_open (& ov_open_callbacks) which would take an additional
>> parameter - a pointer to an already-open OggVorbis_File - and "clone"
>> this info to open very quickly.
>>
>> Is this a reasonable idea? Is there already a way of doing it? I'll be
>> grateful for suggestions.
>
>This sounds like a somewhat reasonable idea. There's no current way of doing 
>it. We'd be happy to take a look at a patch (and incorporate it if it's 'good 
>enough') if you're interested in giving this a try.
>
>Mike
>
>p.s. This is more appropriate for vorbis-dev, some of the 
>developer-type-people aren't on this list.

I'd be happy to try it (though I don't have a varied collection of big
Vorbis files for thorough testing). I'll keep an eye on this list. Or
let me know, if such a thing is implemented.

Andy Robinson, Seventh String Software, www.seventhstring.demon.co.uk
--- >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-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list