Microsoft Windows Media Audio/Video File

application/octet-stream

Safe

Magic Bytes

Offset: 0
30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C

The Microsoft Windows Media Audio/Video File (WMV) is a proprietary series of video compression codecs and containers developed by Microsoft for the Windows Media framework. It is primarily utilized for online video streaming and local media playback, maintaining compatibility with Windows Media Player and various third-party multimedia applications. While largely considered a legacy format today, it remains relevant for maintaining backward compatibility within older Windows operating environments and dedicated digital media devices.

Extension

.wmv

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .wmv files in Python

Python
def is_wmv(file_path: str) -> bool:
    """Check if file is a valid WMV by magic bytes."""
    signature = bytes([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C])
    with open(file_path, "rb") as f:
        return f.read(16) == signature

How to validate .wmv files in Node.js

Node.js
function isWMV(buffer: Buffer): boolean {
  const signature = Buffer.from([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C]);
  return buffer.subarray(0, 16).equals(signature);
}
Go
func IsWMV(data []byte) bool {
    signature := []byte{0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C}
    if len(data) < 16 {
        return false
    }
    return bytes.Equal(data[:16], signature)
}

API Endpoint

GET /api/v1/wmv
curl https://filesignature.org/api/v1/wmv

Related Formats