OpenTimelineIO icon indicating copy to clipboard operation
OpenTimelineIO copied to clipboard

MIME Type and UTI?

Open jminor opened this issue 4 years ago • 5 comments

We should clarify the MIME Type and UTI that are appropriate for OTIO files.

Currently our documentation says:

TODO: Should we specify a MIME Type `application/vnd.pixar.opentimelineio+json` and UTI `com.pixar.opentimelineio` for OTIO, or just use MIME: `application/json` and UTI: `public.json`?

What is the right MIME / UTI to use? Is this something we need to register with a standards body?

jminor avatar Jan 08 '21 19:01 jminor

It makes sense to register a mime type, although a generic binding to json is confusing, in the same way the binding to xml or txt might be. I'd recommend adopting .otio instead, in order that applications can filter directory views, and desktop environments like Apple's Finder can display an OTIO icon. As to the UTI, com.pixar.opentimelineio makes sense as these are usually bound to the originator. The alternative is com.aswf.opentimelineio.

For comparison, here is OpenEXR's MIME entry: https://www.digipres.org/formats/sources/pronom/formats/#fmt/1001 and UTI: https://escapetech.eu/manuals/qdrop/uti.html

The process for registration is documented here: http://www.iana.org/assignments/media-types/media-types.xhtml

meshula avatar Jan 08 '21 21:01 meshula

If we someday change the internal format of .otio files to something other than JSON, should/would the MIME type or UTI change?

jminor avatar Apr 20 '22 22:04 jminor

The mime/uti tell a compliant parser that it should be able to consume the file ~ so a change from json to binary wouldn't necessarily require new signatures. The extension isn't important either; an extension to mime-type mapping can be set, but it's not exclusive, one could declare the mime-type of foo.bar is image/x-exr and an exr parser would be expected to load and parse it. If you wanted to preserve and abandon old-otio files to old-otio-parsers such that new parsers would never see old-otio, that's the circumstance under which you'd introduce a new mime/uti signature, to avoid crossing the streams.

meshula avatar Apr 21 '22 04:04 meshula

at first blush, txt/otio would seem to be mime type. Other suggestions welcome. another suggestion is, application/vnd.aswf.opentimelineio

meshula avatar Aug 10 '22 19:08 meshula

See also discussion here: https://github.com/AcademySoftwareFoundation/tac/issues/541#issuecomment-1887735866

jminor avatar Jan 12 '24 01:01 jminor