.wmv MIME type
Windows Media videovideo
video/x-ms-wmvWindows Media Video in Microsoft's ASF container.
| MIME type | video/x-ms-wmv |
|---|---|
| Extensions | .wmv |
| Content-Type | video/x-ms-wmv |
| Compress in transit? | No — already compressed |
| File signature | 30 26 B2 75 8E 66 CF 11 the ASF header GUID, shared with .wma audio and .asf files |
Good to know
- No browser plays WMV. Transcode to H.264 MP4 for the web.
Serve .wmv files with the right type
The response header to send:
Content-Type: video/x-ms-wmv
Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:
nginx (inside the types block in mime.types)
video/x-ms-wmv wmv;
Apache (.htaccess or server config)
AddType video/x-ms-wmv .wmv
Express
res.set("Content-Type", "video/x-ms-wmv");Python
import mimetypes
mimetypes.add_type("video/x-ms-wmv", ".wmv")HTML file input
<input type="file" accept=".wmv,video/x-ms-wmv">
Check it
See what a server sends for a file, and what type a local file really is by its contents:
curl -sI https://example.com/file.wmv | grep -i '^content-type:' file --mime-type file.wmv
Frequently asked questions
What is the MIME type for .wmv files?
video/x-ms-wmv.
What Content-Type header should a .wmv file be served with?
Content-Type: video/x-ms-wmv. It's already compressed, so servers shouldn't gzip it.
How can I tell if a file is really a .wmv?
Check its bytes rather than the extension: WMV files start with 30 26 B2 75 8E 66 CF 11 — the ASF header GUID, shared with .wma audio and .asf files. On the command line, file --mime-type name.wmv does this for you.
Related types
Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options