Keeping in mind that I don't know that much about ogg's tagging system
or how you select a specific time in an ogg file, this seems like could
probably be added pretty easily, but an even easier method would be too
write it into the comments tag or something like that. In the comments
tag, since it holds a string, you could put something in it like
"part1.1-00:00:00; part1.2-00:33:25;", basically
"part#.#-minutes:seconds:milliseconds;" You could then in your
project
write something to parse this, which would be pretty easy. But that's
just assuming you can retrieve minutes, seconds and milliseconds from a
playing file and tell it to jump to a time using those units, I
honestly don't know and don't have the time to find out right now, if
ogg uses a single value for this it would probably be even easier,
something like "part1.1-0; part1.2-455;" or if you don't care how
it
looks you use something like integer:integer-time; or float-time; so it
would look like "1.2-1233;" and you could easily parse or write this
kind of thing. Come to think of it, if your really crazy about making
this incredibly efficient, regardless of wether you make your own new
tag or do it as I was suggesting, in the comments tag, you could just
use two integers (or an integer and whatever vorbis returns the time
in), so it might look like 8-442;13-1322 which would make two
bookmarks, part0.8 at the point 442 and part1.3 at the point 1322. I
suppose if you make your own tag, the best way to do it would be to
make it an array of numbers for the times, then just assume they go in
order, so it would be {0,354,565,765,1200) which would be setting
part1.1 to 0, part 1.2 to 354, etc. I have to get ready to leave, so
when I have some free time I'll look at how ogg handles tags and be
able to give a more accurate response to this.
> Is it possible to add "bookmarks" to an ogg file? I've got a
project
> we're I'd
> like to be able to set bookmarks at specific times in a file and
> identify
> them by id's like "part 1.1" etc. Anyone know if it's
possible? Also
> would it
> be possible with Ogg speex? Thanks,
--- >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@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.