- Media types are used by the OAMI to determine how to process the media files.
- Wikimedia Commons only accepts audio or video files encoded in open formats
- Two attributes: mimetype and mime-subtype. But, sometimes both parts are put into the former, and sometimes they are split.
Tagging and delivery problems
edit
- Mismatches between declared type and actual. (See graphic) Often there were differences among all three: publisher XML, PMC XML, and actual Media type.
- Mismatches between filename extension and media type (see discussion). For example, movie files that end in ".doc".
- Media types missing altogether.
Recent efforts at PMC
edit
- Until October 2013, PMC was writing @mimetype and @mime-subtype attributes to newly received XML files based on actual filename extensions. Realizing that filename extensions are not reliable, they have stopped.
- Around the same time, PMC implemented a new feature in its renderer, using libmagic, to accurately determine media type at render time, and use it to set the HTTP "Content-type" header.
- Also now supports HEAD requests (facilitating easier discovery of media types in bulk)
- But they will not retroactively fix the values in any source XML.
Standardization efforts
edit
|