ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Gruebel on January 10, 2022, 06:12:55 PM

Title: Strange GPS Format
Post by: Gruebel on January 10, 2022, 06:12:55 PM
Good evening,

I would like to add GPS information to videos in .mp4 format. Unfortunately, Windows Photos app and my Android Gallery does not recognize it.

I looked up how videos that already have working GPS information look. I did that with the help of the "-v" parameter:

...
  | UserData (SubDirectory) -->
  | + [UserData directory]
  | | GPSCoordinates = ...+58.9086+6.5558/
  | Meta (SubDirectory) -->
  | + [Meta directory]
...


Without "-v":
GPS Coordinates                 : 58 deg 54' 30.96" N, 6 deg 33' 20.88" E

If I now use the command
exiftool -UserData:GPSCoordinates="+27.6640,-81.5751" file
it looks like this:

| UserData (SubDirectory) -->
  | + [UserData directory]
  | | GPSCoordinates = .+27.664-081.5751/
  | Meta (SubDirectory) -->
  | + [Meta directory]


Without "-v":
GPS Coordinates                 : 27 deg 39' 50.40" N, 81 deg 34' 30.36" W

And unfortunately this is not recognized by the mentioned programs. What can I do?
By the way, everything works smoothly with images.
Title: Re: Strange GPS Format
Post by: StarGeek on January 10, 2022, 06:24:10 PM
Quote from: Gruebel on January 10, 2022, 06:12:55 PM
And unfortunately this is not recognized by the mentioned programs. What can I do?

Probably nothing.  Unless you can find a file that does show GPS coordinates in those files, it's quite likely that they don't read such information in video files.
Title: Re: Strange GPS Format
Post by: Gruebel on January 11, 2022, 02:51:15 AM
I think I was a little unclear. The top part works and is a video that my phone camera took. The programs mentioned work fine here.
But when I change the GPS information using exiftool on the working video or other videos, it suddenly stops working.

I think this is because it seems to be saved in a different format, since the outputs with the "-v" argument look different:

From camera: GPSCoordinates = ...+58.9086+6.5558/
From exiftool: GPSCoordinates = .+27.664-081.5751/

Is there a way to adjust the formatting? Or could it be something else?

Thanks in advance
Title: Re: Strange GPS Format
Post by: Phil Harvey on January 11, 2022, 07:41:11 AM
What is the -v3 output for the GPSCoordinates tag in the working version?  I need to see the binary data for this tag.

- Phil

Edit:  I'll take a guess here:  The "eng" language version of the tag would do this.  Try writing it like this:

exiftool -UserData:GPSCoordinates-eng="+27.6640,-81.5751" file

Read the 3rd paragraph here (http://exiftool.org/TagNames/QuickTime.html) for an explanation.
Title: Re: Strange GPS Format
Post by: Gruebel on January 11, 2022, 08:37:44 AM
Thank you so much.

I had tried that too I think, but apparently always the combination of both. Or I had done something else wrong.

In any case, it works now. Thanks again
Title: Re: Strange GPS Format
Post by: Phil Harvey on January 11, 2022, 08:34:48 PM
P.S. Those other softwares are garbage if they ignore GPS coordinates just because they have an unexpected language code.

It seems that good metadata programmers are hard to come by... ;)

- Phil