{"success":true,"data":{"ext":"3g2","name":"3G2","description":"3G2 is a multimedia container format defined by 3GPP2, the Third Generation Partnership Project 2, for storing audio, video, and timed text in mobile media files. It is used for 3G mobile recordings, video clips, ringtones, and content distributed to compatible phones and players. The format is generally safe, though like other media containers it may be used to carry malformed data; it is largely a legacy mobile format today.","mime":["video/3gpp2"],"risk_level":"Safe","signatures":[{"hex":"66 74 79 70 33 67 32 61","offset":4,"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":"66 74 79 70 33 67 32 62","offset":4,"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":"66 74 79 70 33 67 32 63","offset":4,"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":["3gp","m4v","mp4","asf","avi","flv"],"usage":{"python":"def is_3g2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid 3G2 by magic bytes at offset 4.\"\"\"\n    signature = bytes([0x66, 0x74, 0x79, 0x70, 0x33, 0x67, 0x32, 0x61])\n    with open(file_path, \"rb\") as f:\n        f.seek(4)\n        return f.read(8) == signature","node":"function is3G2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x66, 0x74, 0x79, 0x70, 0x33, 0x67, 0x32, 0x61]);\n  if (buffer.length < 12) return false;\n  return buffer.subarray(4, 12).equals(signature);\n}","go":"func Is3G2(data []byte) bool {\n    signature := []byte{0x66, 0x74, 0x79, 0x70, 0x33, 0x67, 0x32, 0x61}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[4:12], signature)\n}"},"category":"Video"}}