View Issue Details

IDProjectCategoryView StatusLast Update
0000495fileGeneralpublic2023-12-13 05:44
Reportervadcx Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.45 
Summary0000495: MP3 with zero padding not recognized
DescriptionI have encountered an MP3 file that has \0 NULL padding before the data part starts (you can see the LAME version there too). This breaks detection but apparently it's totally normal for this file format.

If you follow the links, apparently the zero-padding is *dynamic* in size, it depends on the sample rate and the encoder application (different implementations possible).

I am opening this issue merely to make it known, I do not expect this to be tackled with current approach of file.

Related:
- https://stackoverflow.com/questions/36286390/why-does-libmp3lame-add-zeros-to-the-start-of-the-mp3
- https://stackoverflow.com/questions/65128976/how-can-i-remove-the-zero-padding-at-the-start-of-a-mp3-file-generated-by-ffmpe
Additional InformationIn the sample I have ALL files are padded the same amount of bytes. It appears encoder-specific.

ffprobe has this to say about the file:

[mp3 @ 0x56440dc2e1c0] Skipping 313 bytes of junk at 0.
[mp3 @ 0x56440dc2e1c0] Estimating duration from bitrate, this may be inaccurate

xxd FILENAME | head -n 50 # output looks like this:

00000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000110: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000130: 0000 0000 0000 0000 00ff fb70 c000 0000 ...........p....
00000140: 0001 a418 0000 0000 0034 8380 0000 4c41 .........4....LA
00000150: 4d45 332e 3933 5555 5555 5555 5555 5555 ME3.93UUUUUUUUUU
00000160: 5555 5555 5555 5555 5555 5555 5555 5555 UUUUUUUUUUUUUUUU
00000170: 5555 5555 5555 5555 5555 5555 5555 5555 UUUUUUUUUUUUUUUU
00000180: 5555 5555 5555 5555 5555 5555 5555 5555 UUUUUUUUUUUUUUUU
00000190: 5555 5555 5555 5555 4c41 4d45 332e 3933 UUUUUUUULAME3.93
000001a0: 5555 5555 5555 5555 5555 5555 5555 5555 UUUUUUUUUUUUUUUU
000001b0: 5555 5555 5555 5555 5555 5555 5555 5555 UUUUUUUUUUUUUUUU
000001c0: 5555 5555 5555 5555 5555 5555 5555 5555 UUUUUUUUUUUUUUUU
000001d0: 5555 5555 5555 5555 5555 5555 5555 5555 UUUUUUUUUUUUUUUU
Tagsmagic

Activities

vadcx

2023-12-13 05:44

reporter  

Issue History

Date Modified Username Field Change
2023-12-13 05:44 vadcx New Issue
2023-12-13 05:44 vadcx Tag Attached: magic
2023-12-13 05:44 vadcx File Added: mp3-file-with-zero-padding.bin