Does Azure Media Services have a list of supported video encoding MIME Types?

244 Views Asked by At

Azure media services supports the following:

Input container/file formats

Input video codecs

I have a need to guard Video Uploads based on MIME Type.

Is there a direct conversion from the above [Container and Codec] to MIME Type and or is there documentation or a library for such?

Thanks

1

There are 1 best solutions below

3
On

There's a list at https://www.iana.org/assignments/media-types/media-types.xhtml#video for different video MIME types, but a lot of applications will simply use video/mp4 for any sort of H.264 or H.265 encoded video for example. This means that often there is no direct mapping between file extension or MIME to container or codec. To be more accurate you'd have to read the file header and then determine the actual file type. Additionally, keep in mind that when you are uploading content to Media Services that you are actually uploading that content to Azure Storage which will accept just about anything.