-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should have a wiki page containing recommended file structures for common use-cases #165
Comments
My reading of BMFF (ISO/IEC 14496-12:2020) § 4.3.1 is that
I would also suggest Or perhaps always It's probably also worth mentioning that it's mandatory to include a I'd also include something about the mandatory properties
This doesn't really matter, at least to my implementation, but I don't have any objection to this guideline if it helps others.
What sort of metadata are you referring to here? Exif? Presumably not the
Along the same lines it's probably worth noting that the Additionally, in the rare case of a ICC profile being necessary, authors need to be confident the matrix coefficients used to map YCbCr → RGB are (6) BT.601, or else specify them in the AV1 bitstream or with an additional
Potentially
|
@leo-barnes you raise interesting points but with all these 'should', this looks like the spec needs to be updated rather than having a wiki. Or maybe we use the wiki as a way to iterate over the next changes to the spec. Just adding some more points:
|
It's not always clear from the spec exactly (or even in general) how AVIF files should be structured. One solution that has been proposed is to have a wiki page with recommendations and examples. Some things it should probably contain:
ftyp
,meta
,moov
(if an image sequence),mdat
. This allows for efficient parsing and decoding in most use-cases.mdat
, the data for thumbnail(s) should precede the data for the main image(s) so that it's faster for a decoder to display something quickly on screen.mdat
. If both the alpha plane and the main image is agrid
, the alpha and main image tiles should be interleaved.mdat
should be thumbnail, main image, metadata. If the main use-case is as a camera capture format, the order of the data in themdat
should be thumbnail, metadata, main image.grid
, thegrid
item data should be stored in theidat
so that the full layout of the file is contained within themeta
.grid
, the tiles it consists of should be marked as hidden.colr
box with typenclx
, that is preferable to using an ICC profile.Common use-cases that could have an example file/file-structure description:
All of these should probably have an
irot
andcolr
to make it clear how that fits into the structure.The text was updated successfully, but these errors were encountered: