Hi! I created a Delphi class that allows reading of information about an OggVorbis file and modification of the comment header. It works like this: When the file is read, the class saves information about how many pages the comment header uses, and where in the last page the setup header starts. When the file is written, the ID header is copied. The comment and the remainder of the setup header are written into a buffer. If the page, that both of them would take up, is larger than 8 kbytes, it is split up. If the number of pages used does not match the old file, the entire file is rewritten with new sequence numbers and new CRCs; otherwise the remaining file can just be copied. All that works fine with my test files, but I want it to be reliable working with all files with comment headers larger than 8 kbytes. Now, my question is: Can I just split up the comment and the setup header, whereever I want, or do I have to split them at a certain point? Thanks, Matthias --- >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. Unsubscribe messages sent to the list will be ignored/filtered.
Torsdag, 8 mai 2003, skrev du:>All that works fine with my test files, but I want it to be reliable >working with all files with comment headers larger than 8 kbytes. Now, >my question is: Can I just split up the comment and the setup header, >whereever I want, or do I have to split them at a certain point?The only requirement is that the identification header ends on a page boundary (meaning that the comment header must begin on a fresh page) and that the setup header ends on a page boundary (meaning that the first audio packet must begin on a fresh page). The headers must also be written in this order: identification, comment, setup. <p>You should also consider, that there is no limit on the length of the comment header, and that you may have to split it over more than two Ogg pages. Tor <p><p><p>==================================================================EASY and FREE access to your email anywhere: http://Mailreader.com/ ================================================================== <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-dev-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.