{"success":true,"data":{"ext":"wmv","name":"Microsoft Windows Media Audio/Video File","description":"Microsoft Windows Media Audio/Video File (WMV) is a digital media container format developed by Microsoft and maintained as part of the Windows Media family. It is used for storing and streaming compressed audio and video, and is commonly supported by Windows Media Player, media servers, and many conversion tools. The format is legacy in many workflows, but it is generally safe to open when obtained from trusted sources.","mime":["video/x-ms-wmv"],"risk_level":"Safe","signatures":[{"hex":"30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"},{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Wmv.cs"}]},{"hex":"30 26 B2 75 8E 66 CF 11","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"A6 D9 00 AA 00 62 CE 6C","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["asf","avi","mp4","3g2","3gp","flv"],"usage":{"python":"def is_wmv(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WMV by magic bytes.\"\"\"\n    signature = bytes([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isWMV(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsWMV(data []byte) bool {\n    signature := []byte{0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"},"category":"Video"}}