Adding GPS data to movie files.

Started by Gusman, September 29, 2019, 08:04:32 AM

Previous topic - Next topic

Gusman

Absolutely superb!!
Quote mark issue sorted which fixed issue with not being able to put more than one word in title & description.
Overwrite sorted and working!

Unfortunately neither iPhoto/Aperture or Photos is picking up the title or description. I've tried in both Quicktime & XMP.  I also tried in both but it didn't allow. Is that how it should work one or the other?
I wanted to do the same for keywords to try and cover all possible fields the different apps would use. Are there any hidden sections that might be used?

Thanks very much for your help!
I've now got a very labour intensive solution to embedding data onto movies files but its more than I had. Maybe I should look next to making my own app  ;D

Phil Harvey

Did you implement FAQ 3 to determine the tag to use for the title/description as StarGeek suggested?

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

Gusman

I did look at it but the only files with the info embedded is the iPhone .mov files. And they only have GPS data. Keywords,description, titles etc has no embedded info to glean from.
That is why I was asking if there a list of possible options? If there was I could at least eliminate by trial and error.

Out of curiosity, on the list produced using this feature. would you use the code in brackets i.e Track4,Keys,Composite  to change that field? The reason I asked is that on a iPhone .mov file I see Quicktime as an option in brackets but the GPS data isn't in any of the Quicktime fields, its in "[Keys]-GPSCoordinates"

Phil Harvey

But did you try adding the title/description with iPhoto or Aperture to see where it goes?

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

Gusman

Iphoto/Aperture doesn't write to the file it just writes its own file and links it to the image

Gusman

I can get it to embed to a photo file by 'exporting' the file with the data, but it won't do it to video files.

Phil Harvey

OK.

To answer your other question, you specify the location like this:  -keys:gpscoordinates="some value"

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

StarGeek

Quote from: Gusman on October 01, 2019, 11:59:45 AM
That is why I was asking if there a list of possible options? If there was I could at least eliminate by trial and error.

Take a look at the Quicktime Tags page.  The column marked "Tag Name" would be the name to use, though it might need a group name as well if there's a similarly named XMP tag.  You want to try tags that have an entry other than "no" in the writable column.  The most promising groups would be the ItemList, UserData, and Keys groups.
"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

Gusman

Yes I would have input as that, I was just wondering whether the bracketed text was viable for the instruction.
So I tested with the below and even better result. Both iPhoto/Aperture and Photos now show location.  8) :)

exiftool -Keys:GPSCoordinates=51.634597,0.606939 -Quicktime:GPSCoordinates=51.634597,0.606939 -overwrite_original_in_place

On a roll!! ;D

Gusman


Gusman

Hi Stargeek

got another query for as I noticed a note in your footnotes.

I am trying to the below location to read West but it continues to read East whether I make it negative or not.

-Keys:GPSCoordinates=51.393165,-0.422098

StarGeek

Phil, this appears to be something to look at, as an earlier version writes the E/W coordinate correctly.
C:\>exiftool -P -overwrite_original  -quicktime:GPSCoordinates="51.393165, -0.422098"  "Y:\!temp\Test1.mp4"
    1 image files updated

C:\>exiftool -g1 -a -s -gpscoordinates "Y:\!temp\Test1.mp4"
---- UserData ----
GPSCoordinates                  : 51 deg 23' 35.39" N, 0 deg 25' 19.55" E
---- Keys ----
GPSCoordinates                  : 51 deg 23' 35.39" N, 0 deg 25' 19.55" E

C:\>exiftool_11.60 -P -overwrite_original -MetadataDate=now -quicktime:GPSCoordinates="51.393165, -0.422098"  "Y:\!temp\Test1.mp4"
    1 image files updated

C:\>exiftool -g1 -a -s -gpscoordinates "Y:\!temp\Test1.mp4"
---- UserData ----
GPSCoordinates                  : 51 deg 23' 35.39" N, 0 deg 25' 19.55" W
---- Keys ----
GPSCoordinates                  : 51 deg 23' 35.39" N, 0 deg 25' 19.55" W
"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

Phil Harvey

I'll take a look at this when I get a chance, but generally I would say that if you want to write signed numerical values you should write GPSCoordinates# (and use only a space as a separator), not GPSCoordinates.

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

Gusman

Hi Phil

I think there is some bug. As said before I got a different value on one input earlier. I just re-tested and got the same result.

For this input i got the below. It change the 51 to 57.

exiftool -Quicktime:GPSCoordinates='51 deg 38'4.39"N,0 deg 36'24.98"E /Users/wayneegee/Desktop/Exiftool\ test/P1220568.MP4

[Composite]     AvgBitrate                      : 27.2 Mbps
[Composite]     GPSLatitude                     : 57 deg 24' 23.40" N
[Composite]     GPSLongitude                    : 0 deg 36' 24.98" E
[Composite]     Rotation                        : 0
[Composite]     CircleOfConfusion               : 0.010 mm
[Composite]     FOV                             : 65.5 deg
[Composite]     FocalLength35efl                : 9.1 mm (35 mm equivalent: 28.0 mm)
[Composite]     GPSPosition                     : 57 deg 24' 23.40" N, 0 deg 36' 24.98" E
[Composite]     HyperfocalDistance              : 3.04 m
[Composite]     LightValue                      : 6.3
Waynes-iMac:~ wayneegee$

Phil Harvey

As I said before, you need to watch your quotes.  The minutes indicator is a single quote, which messes up your quoting.

What you did was this:

'51 deg 38'4.39"N,0 deg 36'24.98"E
'---------'    "----------------"  <-- this is how the shell sees the quoting

Which gets interpreted by the shell as

51 deg 384.39N,0 deg 36'24.98E

And 384 minutes is a bit more than 6 degrees, which gets added to the 51 and you get 57.

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