Error messages with certain videos

Started by Happy Hobo, March 26, 2024, 11:03:47 PM

Previous topic - Next topic

Happy Hobo

I have a script which updates some metadata on images and videos, then creates GPX files and a metadata listing for them.  It takes four parameters:
$1 specifies a directory to work on
$2 determines output file names
$3 & $4 are written into the GPX files
Sometimes, it gets errors and warnings on video files.  Not all of them.
exiftool without switches does not find Make/Model of the camera, but I think it was an Android phone.
I've attached a zipfile containing three such files, a copy of the script, and a log of the messages output when running the script on that directory.
Are the videos malformed?  Is it a bug in exiftool? or something else?
If the videos are malformed, is there a way to fix them?  A laptop running MacOS is able to play them without complaint.

Phil Harvey

Here is a similar thread explaining the problem/solution.

I've got a patch for this that I plan to release in the next version (12.81).

- 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 ($).