{"success":true,"data":{"ext":"mjp2","name":"MJP2","description":"MJP2 is a Motion JPEG 2000 video format defined by the Joint Photographic Experts Group and standardized by ISO/IEC for storing moving images as JPEG 2000 codestreams. It is used for digital cinema, archival video, broadcast workflows, and other applications that require frame-based compression and image fidelity. The format is generally considered safe, though support is limited in some players and older implementations may be less common than more widely adopted video containers.","mime":["video/mj2"],"risk_level":"Safe","signatures":[{"hex":"00 00 00 0C 6A 50 20 20 0D 0A 87 0A","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":["mj2","j2k","jp2","jpc","jpf","jpg2"],"usage":{"python":"def is_mjp2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MJP2 by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x00, 0x0C, 0x6A, 0x50, 0x20, 0x20, 0x0D, 0x0A, 0x87, 0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(12) == signature","node":"function isMJP2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x00, 0x0C, 0x6A, 0x50, 0x20, 0x20, 0x0D, 0x0A, 0x87, 0x0A]);\n  return buffer.subarray(0, 12).equals(signature);\n}","go":"func IsMJP2(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x00, 0x0C, 0x6A, 0x50, 0x20, 0x20, 0x0D, 0x0A, 0x87, 0x0A}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[:12], signature)\n}"},"category":"Video"}}