Package: file Version: 1:5.46-5 Severity: normal I got some MP3 files which were apparently created by LAME that "file" detects only as "data".
I'm not completely sure if the files are valid, but apparently they are generated like this, and "ffprobe" and "mpv" do recognize them. I can't attach the full files because of copyright, but I'm attaching the header of one which should be enough. AFAICS, the issue is that the magic bytes are not at the start of the file, but at offset 0x1a1 after some NUL bytes. I don't know if this offset is fixed or variable, but it seems to be the same for all the files I've got. So the following entry (copied from the original with just the offsets changed) recognizes all of these files: 0x1a1 beshort&0xFFFE 0xFFFA # rates >0x1a3 byte&0xF0 !0 >>0x1a3 byte&0xF0 !0xF0 MPEG ADTS, layer III, v1 !:strength +20 !:mime audio/mpeg -- System Information: Debian Release: 12.10 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-30-amd64 (SMP w/24 CPU threads; PREEMPT) Kernel taint flags: TAINT_WARN Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages file depends on: ii libc6 2.36-9+deb12u10 ii libmagic1 1:5.44-3 file recommends no packages. file suggests no packages. -- no debconf information
lame.mp3
Description: audio/mpeg