[vorbis] how to cut a vorbis file?

Michael Smith msmith at labyrinth.net.au
Tue Mar 26 03:59:59 PST 2002



At 12:20 PM 3/26/02 +0100, you wrote:
>Michael Smith wrote:
>> vorbis-tools. And though it does related things to what you want, it's
>> NOT a directly useful tool, unless you're just testing things - it has
>> too many limitations and bugs, since I haven't really got time to iron
>> out issues like that in a program which I've only ever used to test it
>
>I see. Well, I'd need some production-grade tool that can cut out parts 
>of vorbis files based on time-boundaries on a regular basis. Any ideas 
>for such a tool? Of ideas on how to write one?

Yes, of course I have some idea of how to write one. That's why I suggested
that you could write one based on how vcut works. 

You can always just hack it together by cutting the raw file at any 
arbitrary point (you'd need to look at ogg page granulepos values for that),
and then prepending the headers, but there are major drawbacks to that. Not
recommended.

vcut works accurately (unless you hit the buggy cases, which you might not),
and can do sample-precise editing. It's kinda ugly code, though. You may want
to ignore it and just read the vorbis stream boundary definition 
documentation (vorbis/doc/vorbis-clip.txt)

Michael

<p>--- >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