MPEGGroup / FileFormat

MPEG file format discussions
20 stars 0 forks source link

MIAF should clarify behaviour of multiple EXIFs and XMPs #60

Closed leo-barnes closed 10 months ago

leo-barnes commented 1 year ago

It's possible for an image item to reference multiple EXIF and XMP items. There are multiple closed-ecosystem use-cases where this might make sense:

But unless the parser has some kind of side information it's impossible for a parser to know what to do with them. XMP blobs can potentially be merged if they have different namespaces, but how do you merge two EXIF MakerNotes?

After discussing this a bit, I think it would make sense to add wording to MIAF that is similar to what WebP does:

There SHOULD be at most one chunk of each type ('EXIF' and 'XMP '). If there are more such chunks, readers MAY ignore all except the first one. Also, a file may possibly contain both 'EXIF' and 'XMP ' chunks.

Here's a relevant issue: https://github.com/AOMediaCodec/av1-avif/issues/193

cconcolato commented 1 year ago

I wonder if relying on order of items is reliable. Maybe using item references is more appropriate? or adding a property to the old items?

leo-barnes commented 1 year ago

Maybe using item references is more appropriate?

Right, that's what I had in mind, but I realize now upon re-reading that it's not at all clear it's what I meant.

leo-barnes commented 10 months ago

Accepted into AMD2