{"success":true,"data":{"ext":"m2v","name":"M2V","description":"M2V is a video-only MPEG-2 elementary stream format standardized by ISO/IEC and maintained through the Moving Picture Experts Group (MPEG). It is used for storing standalone video streams in DVD authoring, broadcast workflows, and video editing applications, often alongside separate audio files. The format is a legacy containerless stream and is generally safe, though playback typically depends on software that supports MPEG-2 decoding.","mime":["video/mpeg"],"risk_level":"Safe","signatures":[{"hex":"00 00 01 B3","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"00 00 01 BA","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["mpe","mpeg","mpg","3g2","3gp","asf"],"usage":{"python":"def is_m2v(file_path: str) -> bool:\n    \"\"\"Check if file is a valid M2V by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x01, 0xB3])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isM2V(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x01, 0xB3]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsM2V(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x01, 0xB3}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Video"}}