{"success":true,"data":{"ext":"mp4a","name":"MP4A","description":"MP4A is an audio file format associated with the MPEG-4 family, standardized and maintained by ISO/IEC through the Moving Picture Experts Group (MPEG). It is commonly used for digital music, streamed audio, podcasts, and audio tracks within multimedia applications and mobile devices. The format is generally safe to handle, although any media file should be opened with up-to-date software; it is not considered a legacy or obsolete format.","mime":["audio/mp4"],"risk_level":"Safe","signatures":[{"hex":"66 74 79 70 4D 34 41 20","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 4D 34 42 20","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 46 34 41 20","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 46 34 42 20","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":["m4a","m4b"],"usage":{"python":"def is_mp4a(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MP4A by magic bytes at offset 4.\"\"\"\n    signature = bytes([0x66, 0x74, 0x79, 0x70, 0x4D, 0x34, 0x41, 0x20])\n    with open(file_path, \"rb\") as f:\n        f.seek(4)\n        return f.read(8) == signature","node":"function isMP4A(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x66, 0x74, 0x79, 0x70, 0x4D, 0x34, 0x41, 0x20]);\n  if (buffer.length < 12) return false;\n  return buffer.subarray(4, 12).equals(signature);\n}","go":"func IsMP4A(data []byte) bool {\n    signature := []byte{0x66, 0x74, 0x79, 0x70, 0x4D, 0x34, 0x41, 0x20}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[4:12], signature)\n}"},"category":"Audio"}}