ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: abdel@transloadit.com on September 18, 2020, 12:38:56 AM

Title: Exiftool unable to identify mp3 without extension
Post by: abdel@transloadit.com on September 18, 2020, 12:38:56 AM
Hey,

We have ran into this issue where removing the extension from the file causes it to fail on `Unknown file type`.

Noticed from doing a hexdump on the file that it has a lot of leading zeros which is probably messing with ExifTool.

Any ideas on how to fix this?


hexdump -n512 MyFile
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0000200
Title: Re: Exiftool unable to identify mp3 without extension
Post by: StarGeek on September 18, 2020, 01:33:04 AM
A quick check shows a bit over 800 bytes of zeroes at the start.  But it still played in Foobar 2000, which sorta surprised me.  Once past all those zeros, it has the FF FB byte start of an mp3.
Title: Re: Exiftool unable to identify mp3 without extension
Post by: Phil Harvey on September 18, 2020, 06:51:56 AM
If the file has a .mp3 extension then ExifTool parses the first 8 kB looking for the start frame.  Otherwise it only parses the first 256 bytes for performance reasons.

- Phil