Silvia Pfeiffer
2008-Jun-12 23:21 UTC
[ogg-dev] How Ogg mappings translate into the codecs parameter in Ogg media types
I think it would be helpful. Being able to say that the magic resides in the first 8 bytes for all our codecs is a plus when it comes to parsing and consistency. We could go for 9 instead, but that's somewhat of an odd number... I don't think the \x80 is too much of an issue, but I don't know what that packet type field is really used for. Cheers, Silvia. On Fri, Jun 13, 2008 at 1:51 AM, ogg.k.ogg.k at googlemail.com <ogg.k.ogg.k at googlemail.com> wrote:> >>> Also, it would be good if we can keep >>> our magic numbers to the first 8 bytes. >> >> So Kate and Yuv4mpeg both need to be trimmed. >> ... >>>>> char[9]: '\x80kate\0\0\0\0' | kate > > After thinking about it, if deemed to be helpful, I can switch > the signature to "\x80kate\0\0\0" and mandate a reserved > 0 byte field following it. The actual bitstream format would > not change, only the interpretation of the magic. > > I'd then do a similar hack in other headers, which also have > the magic (with a different packet type byte). > > _______________________________________________ > ogg-dev mailing list > ogg-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/ogg-dev >
ogg.k.ogg.k at googlemail.com
2008-Jun-13 08:37 UTC
[ogg-dev] How Ogg mappings translate into the codecs parameter in Ogg media types
> I think it would be helpful. Being able to say that the magic resides > in the first 8 bytes for all our codecs is a plus when it comes toAlright, I'll do that for 0.1.4.> I don't think the \x80 is too much of an issue, but I don't know what > that packet type field is really used for.Same as Theora, as you said earlier. \x80 marks the BOS packet.
Silvia Pfeiffer
2008-Jun-13 08:55 UTC
[ogg-dev] How Ogg mappings translate into the codecs parameter in Ogg media types
On Fri, Jun 13, 2008 at 6:37 PM, ogg.k.ogg.k at googlemail.com <ogg.k.ogg.k at googlemail.com> wrote:>> I don't think the \x80 is too much of an issue, but I don't know what >> that packet type field is really used for. > > Same as Theora, as you said earlier. \x80 marks the BOS packet.It's not required as a marker from an Ogg perspectice, since the Ogg framing already marks this as the BOS page. Most of the other media mappings do without a packet type field. If it's required from a codec POV (i.e. for kate), then that's fair enough. Cheers, Silvia.