Introduction
A .wmv file is Windows Media video: video in one of Microsoft’s Windows
Media Video codecs, usually with Windows Media Audio, stored in Microsoft’s Advanced
Systems Format (ASF) container. It was the usual video file on Windows in the late
1990s and 2000s and was played by Windows Media Player.
The container is the same whatever the content. Files are named .wmv
for video, .wma for audio only and .asf for anything else,
such as other codecs.
Structure
An ASF file is a sequence of objects.
Each starts with a 16-byte GUID that gives its type and a 64-bit little-endian size. The
file begins with the Header Object, GUID
30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C as stored on disk, which
holds further objects: the file
properties, one stream properties object per stream, and optional metadata such as the
title. The Data Object follows with
the media cut into fixed-size packets, and optional index objects at the end help
seeking.
0Header Object file properties, stream properties, metadatavaries…Data Object the media in fixed-size packetsvaries…Index objects optional seek pointsvaries
Not described
Known, not yet covered
- Reference: the final ASF 1.20 specification, a PDF, was not opened; the pages use the getID3 tables and a mirror of the 1998 ASF draft. Not yet written from it: the field layouts of the Content Branding, Content Encryption, Extended Content Encryption and Digital Signature objects, most object GUIDs, and the extended objects inside the Header Extension Object.
- Viewer: there is no ASF or WMV viewer plugin yet; the explorer shows the file as bytes.
Links
Software
- Windows Media Player – Microsoft’s player, built into Windows (Windows)
- VLC media player – free media player that plays WMV and ASF files (Windows, macOS, Linux, mobile)
- mpv – free, minimal media player (Windows, macOS, Linux)
- HandBrake – free video converter that turns WMV into MP4 (Windows, macOS, Linux)
- FFmpeg – command-line tools that read, write and convert WMV (Windows, macOS, Linux)
Developers
- libavformat – FFmpeg’s container library, which reads ASF, with the WMV decoders in libavcodec (C)