ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: kmlevy on June 18, 2019, 01:16:44 AM

Title: Invalid atom size error on MacOS High Sierra
Post by: kmlevy on June 18, 2019, 01:16:44 AM
I have been using your tool for a number of years now and love it.  Thank you for producing and maintaining this wonderful tool!

Recently, I have run into a problem when trying to update metadata for MP4 videos from a csv file  I get the message "Error: Invalid atom size" for each video processed.  However, this occurs only when running the command on a machine with MacOS High Sierra installed.  When I copy the same MP4 files and csv file to a machine running MacOS Sierra, the same command runs fine.  Any ideas as to what the issue may be?

Here is my workflow.  It's a bit convoluted, but works for what I am trying to do.  Steps 1-7 are run from MacOS High Sierra machine.

I have tried this with versions 10.78, 11.28, and 11.52.  Same results for all.

Any help would be appreciated.
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: Phil Harvey on June 18, 2019, 07:16:00 AM
Can you post the output of exiftool -v3 on High Sierra for a file that gives this error?

I'm running High Sierra 10.13.6 here, so if you could upload the files somewhere I could try to reproduce this.  My email is philharvey66 at gmail.com

BTW, 10.78 and 11.28 will give vastly different results than 11.52 for this command since the ability to create QuickTime tags was added in 11.39.  Before this, only XMP was writable in QuickTime-based formats like MP4.

- Phil
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: kmlevy on June 20, 2019, 06:00:06 PM
Phil,

I have sent you an e-mail with the location of where you can download the information you requested.

Keith
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: Phil Harvey on June 22, 2019, 06:37:24 AM
Sorry, I can't find your email.  Could you please re-send with "ExifTool" in the subject and a link to this topic in the body?

Thanks.
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: kmlevy on June 22, 2019, 01:16:57 PM
Sent again as requested.
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: Phil Harvey on June 22, 2019, 02:21:47 PM
OK, your mails just aren't getting through for some reason.  I have seen similar problems before.   Our server employs a greylist strategy, which rejects the first mail from any new server.  If your server isn't configured properly to resend the mail, then it won't get delivered.

Try this address instead:  philharvey66 at gmail.com

- Phil
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: kmlevy on June 23, 2019, 12:10:20 AM
Sent again.
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: Phil Harvey on June 24, 2019, 10:22:55 AM
I got the file, thanks.

There is a problem that gives this warning in the -v3 output you sent:

  | | | [Terminator found in Meta with 20 bytes remaining]

It is the same problem, but the warning message is different when writing.  I will change the writer to give this warning:

Error: [minor] Terminator found in Meta with 20 bytes remaining - IMG_7179_1.MP4

which will allow you to write this file with the -m option.  Doing so will truncate the last 20 bytes of the Meta box, but in this case it contains only an invalid Author entry.

However, I don't understand why this works for you on other systems.  I tried it on Linux and it gave the same error as High Sierra.  I don't have a Sierra machine to test this on.

- Phil
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: kmlevy on June 24, 2019, 03:19:53 PM
Does this mean I can use the -m option now or would I have to wait for a patched version?
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: Phil Harvey on June 24, 2019, 04:55:40 PM
Quote from: kmlevy on June 24, 2019, 03:19:53 PM
Does this mean I can use the -m option now or would I have to wait for a patched version?

Neither.

You need to use the new version, but you don't have to wait.  I released 11.53 earlier today.

- Phil
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: kmlevy on June 26, 2019, 07:29:24 PM
That seemed to do the trick. :D

One other question, would the bypass impact the writing of the GPS data?  When I import the modified file into Photos, the video clip  doesn't show the GPS info which the original full video contained, and which information was in the csv file.
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: Phil Harvey on June 26, 2019, 09:27:21 PM
Did you use this command on both files to see where the GPS was stored?:

exiftool "-gps*" -G1 FILE

It could be the problem if the output of this command differs between the files.

- Phil
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: kmlevy on June 27, 2019, 12:18:08 AM
The clip returns no results while the original returns results.  I was assuming that the CSV data assignment to the clip would include the GPS info.  Is that not the case?
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: Phil Harvey on June 27, 2019, 07:06:09 AM
Could you show me the output of this command on the original video?  You can change the numbers for privacy if you want.

- Phil
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: kmlevy on July 07, 2019, 11:33:02 AM

MacBook-Pro:exif_orig$ exiftool "-gps*" -G1 IMG_7179.MOV
[Keys]          GPS Coordinates                 : 32 deg 10' 4.08" N, 78 deg 36' 99.00" E, 777.82 m Above Sea Level
[Composite]     GPS Altitude                    : 777.82 m
[Composite]     GPS Altitude Ref                : Above Sea Level
[Composite]     GPS Latitude                    : 32 deg 10' 4.08" N
[Composite]     GPS Longitude                   : 78 deg 36' 99.00" E
[Composite]     GPS Position                    : 32 deg 10' 4.08" N, 78 deg 36' 99.00" E
Title: Re: Invalid atom size error on MacOS High Sierra
Post by: Phil Harvey on July 08, 2019, 08:40:36 AM
Hmmm.  OK, thanks.  So I don't understand why writing Keys:GPSCoordinates doesn't work.  If I get a chance I'll try running some tests in Apple Photos myself.

- Phil