Strange GPS Format

Started by Gruebel, January 10, 2022, 06:12:55 PM

Previous topic - Next topic

Gruebel

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.

StarGeek

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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Gruebel

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

Phil Harvey

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

Gruebel

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

Phil Harvey

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