codedread/bitjs

MIME type for Matroska Video/Audio

Closed this issue · 1 comments

WebM videos support VP8, VP9 and Vorbis, Opus. WebM is based on the Matroska container.

I have seen some Matroska video/audio files out there (.mkv) that have different audio and video codecs in their streams (for example: h264, dts).

  1. What should the MIME type look like for Matroska (not WebM) files? I have seen video/x-matroska and audio/x-matroska
  2. Should the codecs information be include in the full MIME type (RFC6381)? I have seen examples of this: "video/x-matroska;codecs=avc1"

video/webm files are any that have video streams with codecs: { vp8, vp9, av1 }
audio/webm files are any that have only audio streams with codecs: { opus, vorbis }

Anything else that ffprobe identifies with format_name='matroska,webm' is considered video/x-matroska or audio/x-matroska