Exiftool unable to identify mp3 without extension

Started by abdel@transloadit.com, September 18, 2020, 12:38:56 AM

Previous topic - Next topic

abdel@transloadit.com

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

StarGeek

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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).