[Django]-Why .WMV files have mime type 'video/x-ms-asf' instead of 'video/x-ms-wmv'?

4👍

video/x-ms-asf is the correct MIME type as it is a catch-all for Windows Media files containing audio and video under the “Advanced System Format” family name.

Within the ‘family’, Audio only files (.wma) can use audio/x-ms-wma and Video/Audio files (.wmv) can use video/x-ms-wmv, but for content optimized for streaming it is common to reference the container family rather than the file extension in the MIME type.

0👍

If python-magic wraps well-known libmagic library, the reason is in that libmagic actually can’t determine the content of ASF files: https://bugs.astron.com/view.php?id=84

Leave a comment