{"success":true,"data":{"ext":"mpd","name":"MPD","description":"Media Presentation Description (MPD) is an XML-based manifest file defined by the MPEG-DASH standard and maintained by ISO/IEC Moving Picture Experts Group. It describes media segments, timing, representations, and adaptation sets for adaptive bitrate streaming in web players, streaming services, and media clients. MPD files are generally safe, though they may reference external resources and should be obtained from trusted sources to avoid misleading playback configurations.","mime":["application/dash+xml"],"risk_level":"Safe","signatures":[{"hex":"3C 4D 50 44","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":[],"usage":{"python":"def is_mpd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MPD by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x4D, 0x50, 0x44])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isMPD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x4D, 0x50, 0x44]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsMPD(data []byte) bool {\n    signature := []byte{0x3C, 0x4D, 0x50, 0x44}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}