简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM