reading/writing googlefied mp4 GEO data ?

Started by gibman, April 14, 2020, 08:44:18 AM

Previous topic - Next topic

gibman

hi.

I have a bunch of mp4 video files on  my computer that I wish to GEO tag before uploading them to google photos as it's very limited within google photos to geotag the files after they have been uploaded.

Thus I want to be able to geo tag my mp4 home video collection before uploading.

In order to try and gain some  knowledge on where google puts these GEO location data I tried to download a mp4 from google photos which was recently captured with my android phone.
Obviously I verified that GPS location data was intact before downloading. All good here.

Opening the file (which has been googlefied by now) locally with a hex editor I see the LANG/LONG of the file here:

  f  i  `  c  c  u  m  "    Y  a  i  [  `  Ó  S   smhd           gudta   _meta       !hdlr        mdirappl            2ilst   *©xyz   "data       +56.1918+010.0831/šfmdat   2.ÜEé½æÙH·–,Ø Ù#îïx264 - core 155 r2901 7d0ff22 € ¿Éeˆ,,_èÄrÏÿšôQ¨Ñ^ZÞj7¯÷®òšñ¢×óHòÃ


seems the geo data (+56.1918+010.0831) is saved in the data tag of the file ?
Is there any way to read/write this tag with exiftool ?

next question would be read/write the "Title" info. I was unable to find this embedded in the mp4 file though.

Phil Harvey

Yes ExifTool writes this.

See the QuickTime tags documentation.

Also, search this forum for examples of commands to write this.

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

gibman

Thanks for the feedback.

Did look at the docs.

this cmd 'exiftool" -a -G cam.mov' gives me:
[QuickTime]     User Data xyz                   : +56.1918+010.0831/

How do I write this back with some new GPS value ?
And what about those videos files that do not already have this tag "User Data xyz" tag ?
In those cases, how do I add it ?

Phil Harvey

It looks like you are running a very old version of ExifTool.  Either that or something is weird about your file.  Update to the most recent version before proceeding.  This tag should be called GPSCoordinates.

To write it, use

exiftool -gpscoordinates="<some value>" FILE

where the value is in the same format as extracted by ExifTool.

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

gibman

#4
I'm using 11.93...

ran this:
exiftool.exe -QuickTime:GPSCoordinates#="50.372821 5.893702 0" -overwrite_original google.mp4
also tried:
exiftool.exe -gpscoordinates="+57.1918+010.0832" -overwrite_original google.mp4

(random GPs values)

then for verification:
exiftool.exe -a -G google.mp4


[ExifTool]      ExifTool Version Number         : 11.93
[File]          File Name                       : google.mp4
[File]          Directory                       : .
[File]          File Size                       : 26 MB
[File]          File Modification Date/Time     : 2020:04:15 13:29:33+02:00
[File]          File Access Date/Time           : 2020:04:15 13:29:33+02:00
[File]          File Creation Date/Time         : 2020:04:14 14:32:21+02:00
[File]          File Permissions                : rw-rw-rw-
[File]          File Type                       : MP4
[File]          File Type Extension             : mp4
[File]          MIME Type                       : video/mp4
[QuickTime]     Major Brand                     : MP4 v2 [ISO 14496-14]
[QuickTime]     Minor Version                   : 0.0.0
[QuickTime]     Compatible Brands               : isom, mp42
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 2020:04:10 13:49:04
[QuickTime]     Modify Date                     : 2020:04:10 23:38:24
[QuickTime]     Time Scale                      : 29787
[QuickTime]     Duration                        : 21.18 s
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 3
[QuickTime]     Track Header Version            : 0
[QuickTime]     Track Create Date               : 2020:04:10 23:38:24
[QuickTime]     Track Modify Date               : 2020:04:10 23:38:24
[QuickTime]     Track ID                        : 1
[QuickTime]     Track Duration                  : 21.05 s
[QuickTime]     Track Layer                     : 0
[QuickTime]     Track Volume                    : 0.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Image Width                     : 1920
[QuickTime]     Image Height                    : 1080
[QuickTime]     Media Header Version            : 0
[QuickTime]     Media Create Date               : 2020:04:10 23:38:24
[QuickTime]     Media Modify Date               : 2020:04:10 23:38:24
[QuickTime]     Media Time Scale                : 29787
[QuickTime]     Media Duration                  : 21.05 s
[QuickTime]     Media Language Code             : und
[QuickTime]     Handler Type                    : Video Track
[QuickTime]     Handler Description             : ISO Media file produced by Google Inc. Created on: 04/10/2020.
[QuickTime]     Compressor ID                   : avc1
[QuickTime]     Source Image Width              : 1920
[QuickTime]     Source Image Height             : 1080
[QuickTime]     X Resolution                    : 72
[QuickTime]     Y Resolution                    : 72
[QuickTime]     Bit Depth                       : 24
[QuickTime]     Video Frame Rate                : 29.787
[QuickTime]     Graphics Mode                   : srcCopy
[QuickTime]     Op Color                        : 0 0 0
[QuickTime]     Track Header Version            : 0
[QuickTime]     Track Create Date               : 2020:04:10 23:38:24
[QuickTime]     Track Modify Date               : 2020:04:10 23:38:24
[QuickTime]     Track ID                        : 2
[QuickTime]     Track Duration                  : 21.18 s
[QuickTime]     Track Layer                     : 0
[QuickTime]     Track Volume                    : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Media Header Version            : 0
[QuickTime]     Media Create Date               : 2020:04:10 23:38:24
[QuickTime]     Media Modify Date               : 2020:04:10 23:38:24
[QuickTime]     Media Time Scale                : 44100
[QuickTime]     Media Duration                  : 21.18 s
[QuickTime]     Media Language Code             : eng
[QuickTime]     Handler Type                    : Audio Track
[QuickTime]     Handler Description             : ISO Media file produced by Google Inc. Created on: 04/10/2020.
[QuickTime]     Audio Format                    : mp4a
[QuickTime]     Audio Channels                  : 2
[QuickTime]     Audio Bits Per Sample           : 16
[QuickTime]     Audio Sample Rate               : 44100
[QuickTime]     Balance                         : 0
[QuickTime]     Handler Type                    : Metadata
[QuickTime]     Handler Vendor ID               : Apple
[QuickTime]     User Data xyz                   : +56.1918+010.0831/
[QuickTime]     GPS Coordinates                 : 50 deg 22' 22.16" N, 5 deg 53' 37.33" E, 0 m Above Sea Level
[QuickTime]     Media Data Size                 : 26895886
[QuickTime]     Media Data Offset               : 7959
[Composite]     Image Size                      : 1920x1080
[Composite]     Megapixels                      : 2.1
[Composite]     Avg Bitrate                     : 10.2 Mbps
[Composite]     GPS Altitude                    : 0 m
[Composite]     GPS Altitude Ref                : Above Sea Level
[Composite]     GPS Latitude                    : 50 deg 22' 22.16" N
[Composite]     GPS Longitude                   : 5 deg 53' 37.33" E
[Composite]     Rotation                        : 0
[Composite]     GPS Position                    : 50 deg 22' 22.16" N, 5 deg 53' 37.33" E


it only seems to update the GPS position data tag, sadly google ignores this.
The "user data xyz" is apparently untouched. Ideally I wanted to update this tag :)
Or both in fact.

Phil Harvey

This is very odd.  Send me a (small if possible) file with the User Data xyz tag and I'll take a look.  (philharvey66 at gmail.com)

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


Phil Harvey

I see now.  I was thrown because of the "UserData" in the generated tag name.  But if you check the actual location (with the -G1 option) it is in the ItemList.  I hadn't seen a ©xyz tag in the ItemList before, but I'll add support for this and you will be able read/write this as ItemList:GPSCoordinates with ExifTool 11.94 when it is released.

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

gibman

Thanks for the new release.
It appears to work when using : exiftool.exe -gpscoordinates="+57.1918+010.0832" -overwrite_original google.mp4
google photos picks this up correctly now.. awesome.

Next problem is that I have a bunch of mov/mp4 files with XMP sidecar files that all have their GPS coordinates.
In fact these XML files are created using the geotagger (tool).

here's an exerpt from on of the XMP files:
<rdf:Description rdf:about=''
  xmlns:exif='http://ns.adobe.com/exif/1.0/'>
  <exif:GPSAltitude>46/1</exif:GPSAltitude>
  <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
  <exif:GPSImgDirection>0/1</exif:GPSImgDirection>
  <exif:GPSImgDirectionRef>M</exif:GPSImgDirectionRef>
  <exif:GPSLatitude>56,11.494524N</exif:GPSLatitude>
  <exif:GPSLongitude>10,5.013354E</exif:GPSLongitude>
  <exif:GPSMapDatum>WGS-84</exif:GPSMapDatum>
  <exif:GPSTimeStamp>1899-12-30T01:00:00Z</exif:GPSTimeStamp>
  <exif:GPSVersionID>2.2.0.0</exif:GPSVersionID>
</rdf:Description>


Is there a builtin method to extract the XMP exif tags here for Lat/Long coords and convert those to the format '+57.1918+010.0832' and then finally write it back to the mov/mp4 file (embedded quicktime tag)?

I tried:
exiftool.exe" -tagsfromfile "google.xmp" -all:all -overwrite_original google.mov
But it doesnt seem to write the quicktime GPS coordinates.

Or do I need to handle this using some scripting language?
something along the lines that reads the XMP coords, converts the GPS coords, then calls exiftool with -gpscoordinates


again thanks for your work.

Phil Harvey

Just do this:

exiftool -tagsfromfile %d%f.xmp "-gpscoordinates<gpsposition" -ext mov -ext mp4 DIR

Converting the coordinates isn't necessary.  ExifTool will handle that.  In fact, it handled the conversion for your previous command as well, since you didn't format it as expected (see FAQ 14).

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

gibman

Hi Phil

To my great surprise I have discovered that some of the MOV files uploaded to google photos are not properly parsed in terms of reading the GEO location tags.
They come up as unknown location :(

recorded using a "Canon EOS 7D" camera


exiftool -a -G "MVI_2371.MOV"
=>

[ExifTool]      ExifTool Version Number         : 12.09
[File]          File Name                       : MVI_2371.MOV
[File]          Directory                       : .
[File]          File Size                       : 61 MB
[File]          File Modification Date/Time     : 2020:05:14 20:41:52+02:00
[File]          File Access Date/Time           : 2020:11:03 09:42:40+01:00
[File]          File Creation Date/Time         : 2020:11:03 09:11:24+01:00
[File]          File Permissions                : rw-rw-rw-
[File]          File Type                       : MOV
[File]          File Type Extension             : mov
[File]          MIME Type                       : video/quicktime
[QuickTime]     Major Brand                     : Apple QuickTime (.MOV/QT)
[QuickTime]     Minor Version                   : 2007.9.0
[QuickTime]     Compatible Brands               : qt  , CAEP
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 2015:07:12 14:27:54
[QuickTime]     Modify Date                     : 2015:07:12 14:27:54
[QuickTime]     Time Scale                      : 25000
[QuickTime]     Duration                        : 11.04 s
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 3
[QuickTime]     Track Header Version            : 0
[QuickTime]     Track Create Date               : 2015:07:12 14:27:54
[QuickTime]     Track Modify Date               : 2015:07:12 14:27:54
[QuickTime]     Track ID                        : 1
[QuickTime]     Track Duration                  : 11.04 s
[QuickTime]     Track Layer                     : 0
[QuickTime]     Track Volume                    : 0.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Image Width                     : 1920
[QuickTime]     Image Height                    : 1080
[QuickTime]     Media Header Version            : 0
[QuickTime]     Media Create Date               : 2015:07:12 14:27:54
[QuickTime]     Media Modify Date               : 2015:07:12 14:27:54
[QuickTime]     Media Time Scale                : 25000
[QuickTime]     Media Duration                  : 11.04 s
[QuickTime]     Handler Class                   : Media Handler
[QuickTime]     Handler Type                    : Video Track
[QuickTime]     Graphics Mode                   : srcCopy
[QuickTime]     Op Color                        : 0 0 0
[QuickTime]     Handler Class                   : Data Handler
[QuickTime]     Handler Type                    : Alias Data
[QuickTime]     Compressor ID                   : avc1
[QuickTime]     Source Image Width              : 1920
[QuickTime]     Source Image Height             : 1080
[QuickTime]     X Resolution                    : 72
[QuickTime]     Y Resolution                    : 72
[QuickTime]     Bit Depth                       : 24
[QuickTime]     Video Frame Rate                : 25
[QuickTime]     Track Header Version            : 0
[QuickTime]     Track Create Date               : 2015:07:12 14:27:54
[QuickTime]     Track Modify Date               : 2015:07:12 14:27:54
[QuickTime]     Track ID                        : 2
[QuickTime]     Track Duration                  : 11.04 s
[QuickTime]     Track Layer                     : 0
[QuickTime]     Track Volume                    : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Media Header Version            : 0
[QuickTime]     Media Create Date               : 2015:07:12 14:27:54
[QuickTime]     Media Modify Date               : 2015:07:12 14:27:54
[QuickTime]     Media Time Scale                : 48000
[QuickTime]     Media Duration                  : 11.04 s
[QuickTime]     Handler Class                   : Media Handler
[QuickTime]     Handler Type                    : Audio Track
[QuickTime]     Balance                         : 0
[QuickTime]     Handler Class                   : Data Handler
[QuickTime]     Handler Type                    : Alias Data
[QuickTime]     Audio Format                    : sowt
[QuickTime]     Audio Channels                  : 2
[QuickTime]     Audio Bits Per Sample           : 16
[QuickTime]     Audio Sample Rate               : 48000
[QuickTime]     Layout Flags                    : Stereo
[QuickTime]     Audio Channels                  : 2
[QuickTime]     Compressor Version              : CanonAVC0002
[QuickTime]     Camera Model Name               : Canon EOS 7D
[QuickTime]     Firmware Version                : Firmware Version 1.2.2
[QuickTime]     GPS Coordinates                 : 43 deg 24' 8.20" N, 2 deg 26' 25.48" E
[QuickTime]     Media Data Size                 : 64417092
[QuickTime]     Media Data Offset               : 5981
[Composite]     Image Size                      : 1920x1080
[Composite]     Megapixels                      : 2.1
[Composite]     Avg Bitrate                     : 46.7 Mbps
[Composite]     GPS Latitude                    : 43 deg 24' 8.20" N
[Composite]     GPS Longitude                   : 2 deg 26' 25.48" E
[Composite]     Rotation                        : 0
[Composite]     GPS Position                    : 43 deg 24' 8.20" N, 2 deg 26' 25.48" E



I tried applying geodata tags by doing either of these:

exiftool -tagsfromfile %d%f.xmp "-gpscoordinates<gpsposition" -ext mov -ext mp4 .
exiftool.exe -QuickTime:GPSCoordinates#="50.372821 5.893702 0" -overwrite_original mvi_2371.mov


uploading the photo to google photos and it does not pick up the geo location at all.

Ive attached screenshot of the problematic mov file "mvi_2371.mov" .- how it looks like in the hxd hex editor.
I have an example of a mov file which has working GEO data tags, atleast from a google standpoint :)
This one is called mvi_6061.mov. also shown in the HXD editor attachment

it has the following tags:

[ExifTool]      ExifTool Version Number         : 12.09
[File]          File Name                       : MVI_6061.mov
[File]          Directory                       : .
[File]          File Size                       : 158 MB
[File]          File Modification Date/Time     : 2020:05:14 21:51:20+02:00
[File]          File Access Date/Time           : 2020:11:03 09:18:31+01:00
[File]          File Creation Date/Time         : 2020:11:03 09:18:29+01:00
[File]          File Permissions                : rw-rw-rw-
[File]          File Type                       : MOV
[File]          File Type Extension             : mov
[File]          MIME Type                       : video/quicktime
[QuickTime]     Major Brand                     : Apple QuickTime (.MOV/QT)
[QuickTime]     Minor Version                   : 0.2.0
[QuickTime]     Compatible Brands               : qt
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 2013:10:17 20:03:23
[QuickTime]     Modify Date                     : 2013:10:17 20:03:23
[QuickTime]     Time Scale                      : 1000
[QuickTime]     Duration                        : 29.32 s
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 3
[QuickTime]     Track Header Version            : 0
[QuickTime]     Track Create Date               : 2013:10:17 20:03:23
[QuickTime]     Track Modify Date               : 2013:10:17 20:03:23
[QuickTime]     Track ID                        : 1
[QuickTime]     Track Duration                  : 29.32 s
[QuickTime]     Track Layer                     : 0
[QuickTime]     Track Volume                    : 0.00%
[QuickTime]     Matrix Structure                : 0 -1 0 1 0 0 0 0 1
[QuickTime]     Image Width                     : 1920
[QuickTime]     Image Height                    : 1080
[QuickTime]     Media Header Version            : 0
[QuickTime]     Media Create Date               : 2013:10:17 20:03:23
[QuickTime]     Media Modify Date               : 2013:10:17 20:03:23
[QuickTime]     Media Time Scale                : 25000
[QuickTime]     Media Duration                  : 29.32 s
[QuickTime]     Handler Class                   : Media Handler
[QuickTime]     Handler Type                    : Video Track
[QuickTime]     Handler Description             : VideoHandler
[QuickTime]     Graphics Mode                   : srcCopy
[QuickTime]     Op Color                        : 0 0 0
[QuickTime]     Handler Class                   : Data Handler
[QuickTime]     Handler Type                    : URL
[QuickTime]     Handler Description             : DataHandler
[QuickTime]     Compressor ID                   : avc1
[QuickTime]     Vendor ID                       : FFmpeg
[QuickTime]     Source Image Width              : 1920
[QuickTime]     Source Image Height             : 1080
[QuickTime]     X Resolution                    : 72
[QuickTime]     Y Resolution                    : 72
[QuickTime]     Bit Depth                       : 24
[QuickTime]     Video Frame Rate                : 25
[QuickTime]     Track Header Version            : 0
[QuickTime]     Track Create Date               : 2013:10:17 20:03:23
[QuickTime]     Track Modify Date               : 2013:10:17 20:03:23
[QuickTime]     Track ID                        : 2
[QuickTime]     Track Duration                  : 29.32 s
[QuickTime]     Track Layer                     : 0
[QuickTime]     Track Volume                    : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Media Header Version            : 0
[QuickTime]     Media Create Date               : 2013:10:17 20:03:23
[QuickTime]     Media Modify Date               : 2013:10:17 20:03:23
[QuickTime]     Media Time Scale                : 48000
[QuickTime]     Media Duration                  : 29.32 s
[QuickTime]     Handler Class                   : Media Handler
[QuickTime]     Handler Type                    : Audio Track
[QuickTime]     Handler Description             : SoundHandler
[QuickTime]     Balance                         : 0
[QuickTime]     Handler Class                   : Data Handler
[QuickTime]     Handler Type                    : URL
[QuickTime]     Handler Description             : DataHandler
[QuickTime]     Audio Format                    : sowt
[QuickTime]     Audio Channels                  : 2
[QuickTime]     Audio Bits Per Sample           : 16
[QuickTime]     Audio Sample Rate               : 48000
[QuickTime]     Layout Flags                    : Stereo
[QuickTime]     Audio Channels                  : 2
[QuickTime]     Handler Type                    : Metadata Tags
[QuickTime]     Major Brand                     : qt
[QuickTime]     Minor Version                   : 537331968
[QuickTime]     Compatible Brands               : qt  CAEP
[QuickTime]     Creation Time                   : 2013-10-17T20:03:23.000000Z
[QuickTime]     Encoder                         : Lavf58.36.100
[QuickTime]     GPS Coordinates                 : 56 deg 11' 29.67" N, 10 deg 5' 0.80" E
[QuickTime]     Media Data Size                 : 165758832
[QuickTime]     Media Data Offset               : 12867
[Composite]     Image Size                      : 1920x1080
[Composite]     Megapixels                      : 2.1
[Composite]     Avg Bitrate                     : 45.2 Mbps
[Composite]     GPS Latitude                    : 56 deg 11' 29.67" N
[Composite]     GPS Longitude                   : 10 deg 5' 0.80" E
[Composite]     Rotation                        : 270
[Composite]     GPS Position                    : 56 deg 11' 29.67" N, 10 deg 5' 0.80" E




I even tried removing all QT tags from the mov file by using this:
ffmpeg.exe -i MVI_2371.MOV -map_metadata -1 -vcodec copy -acodec copy test.mov
then using exiftool to reapply geodata. then re-uploading to my google photos. ofcourse making sure prior to this that my other upload attemps were permanently deleted.
no effect :(

tried to convert the mov file to mp4 with handbrake with transcoding to smaller file then reapply the GEO tags on the mp4 file using the usual cmdline options as above.
no effect.


but changing the GEO data on the working file with exiftool and then re-uploading it to google and the new GEO location is picked up perfectly.
No idea what causes this. Why some of my mov files are simply ignored.

A problem with google maybe ?

I'd be happy to send you the files for further inspection.
version info : running exitftool 12.0.9.0 on windows 10 64 bit

Phil Harvey

Are you writing GPSCoordinates in the proper location?  Try using -G1 instead of -G when reading, and use the specific location when writing.

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

gibman

Thanks for the suggestions.

problematic file here with -G1 read

[ExifTool]      ExifTool Version Number         : 12.09
[System]        File Name                       : Mvi_2371.mov
[System]        Directory                       : .
[System]        File Size                       : 61 MB
[System]        File Modification Date/Time     : 2020:05:14 20:41:52+02:00
[System]        File Access Date/Time           : 2020:11:03 13:41:59+01:00
[System]        File Creation Date/Time         : 2020:11:03 09:11:24+01:00
[System]        File Permissions                : rw-rw-rw-
[File]          File Type                       : MOV
[File]          File Type Extension             : mov
[File]          MIME Type                       : video/quicktime
[QuickTime]     Major Brand                     : Apple QuickTime (.MOV/QT)
[QuickTime]     Minor Version                   : 2007.9.0
[QuickTime]     Compatible Brands               : qt  , CAEP
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 2015:07:12 14:27:54
[QuickTime]     Modify Date                     : 2015:07:12 14:27:54
[QuickTime]     Time Scale                      : 25000
[QuickTime]     Duration                        : 11.04 s
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 3
[QuickTime]     Media Data Size                 : 64417092
[QuickTime]     Media Data Offset               : 5981
[Track1]        Track Header Version            : 0
[Track1]        Track Create Date               : 2015:07:12 14:27:54
[Track1]        Track Modify Date               : 2015:07:12 14:27:54
[Track1]        Track ID                        : 1
[Track1]        Track Duration                  : 11.04 s
[Track1]        Track Layer                     : 0
[Track1]        Track Volume                    : 0.00%
[Track1]        Matrix Structure                : 1 0 0 0 1 0 0 0 1
[Track1]        Image Width                     : 1920
[Track1]        Image Height                    : 1080
[Track1]        Media Header Version            : 0
[Track1]        Media Create Date               : 2015:07:12 14:27:54
[Track1]        Media Modify Date               : 2015:07:12 14:27:54
[Track1]        Media Time Scale                : 25000
[Track1]        Media Duration                  : 11.04 s
[Track1]        Handler Class                   : Media Handler
[Track1]        Handler Type                    : Video Track
[Track1]        Graphics Mode                   : srcCopy
[Track1]        Op Color                        : 0 0 0
[Track1]        Handler Class                   : Data Handler
[Track1]        Handler Type                    : Alias Data
[Track1]        Compressor ID                   : avc1
[Track1]        Source Image Width              : 1920
[Track1]        Source Image Height             : 1080
[Track1]        X Resolution                    : 72
[Track1]        Y Resolution                    : 72
[Track1]        Bit Depth                       : 24
[Track1]        Video Frame Rate                : 25
[Track2]        Track Header Version            : 0
[Track2]        Track Create Date               : 2015:07:12 14:27:54
[Track2]        Track Modify Date               : 2015:07:12 14:27:54
[Track2]        Track ID                        : 2
[Track2]        Track Duration                  : 11.04 s
[Track2]        Track Layer                     : 0
[Track2]        Track Volume                    : 100.00%
[Track2]        Matrix Structure                : 1 0 0 0 1 0 0 0 1
[Track2]        Media Header Version            : 0
[Track2]        Media Create Date               : 2015:07:12 14:27:54
[Track2]        Media Modify Date               : 2015:07:12 14:27:54
[Track2]        Media Time Scale                : 48000
[Track2]        Media Duration                  : 11.04 s
[Track2]        Handler Class                   : Media Handler
[Track2]        Handler Type                    : Audio Track
[Track2]        Balance                         : 0
[Track2]        Handler Class                   : Data Handler
[Track2]        Handler Type                    : Alias Data
[Track2]        Audio Format                    : sowt
[Track2]        Audio Channels                  : 2
[Track2]        Audio Bits Per Sample           : 16
[Track2]        Audio Sample Rate               : 48000
[Track2]        Layout Flags                    : Stereo
[Track2]        Audio Channels                  : 2
[UserData]      Compressor Version              : CanonAVC0002
[UserData]      Camera Model Name               : Canon EOS 7D
[UserData]      Firmware Version                : Firmware Version 1.2.2
[ItemList]      GPS Coordinates                 : 43 deg 24' 8.20" N, 2 deg 26' 25.48" E
[Composite]     Image Size                      : 1920x1080
[Composite]     Megapixels                      : 2.1
[Composite]     Avg Bitrate                     : 46.7 Mbps
[Composite]     GPS Latitude                    : 43 deg 24' 8.20" N
[Composite]     GPS Longitude                   : 2 deg 26' 25.48" E
[Composite]     Rotation                        : 0
[Composite]     GPS Position                    : 43 deg 24' 8.20" N, 2 deg 26' 25.48" E


and the working file with G1 read:

[ExifTool]      ExifTool Version Number         : 12.09
[System]        File Name                       : MVI_6061.mov
[System]        Directory                       : .
[System]        File Size                       : 158 MB
[System]        File Modification Date/Time     : 2020:05:14 21:51:20+02:00
[System]        File Access Date/Time           : 2020:11:03 13:44:15+01:00
[System]        File Creation Date/Time         : 2020:11:03 09:18:29+01:00
[System]        File Permissions                : rw-rw-rw-
[File]          File Type                       : MOV
[File]          File Type Extension             : mov
[File]          MIME Type                       : video/quicktime
[QuickTime]     Major Brand                     : Apple QuickTime (.MOV/QT)
[QuickTime]     Minor Version                   : 0.2.0
[QuickTime]     Compatible Brands               : qt
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 2013:10:17 20:03:23
[QuickTime]     Modify Date                     : 2013:10:17 20:03:23
[QuickTime]     Time Scale                      : 1000
[QuickTime]     Duration                        : 29.32 s
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 3
[QuickTime]     Handler Type                    : Metadata Tags
[QuickTime]     Media Data Size                 : 165758832
[QuickTime]     Media Data Offset               : 12867
[Track1]        Track Header Version            : 0
[Track1]        Track Create Date               : 2013:10:17 20:03:23
[Track1]        Track Modify Date               : 2013:10:17 20:03:23
[Track1]        Track ID                        : 1
[Track1]        Track Duration                  : 29.32 s
[Track1]        Track Layer                     : 0
[Track1]        Track Volume                    : 0.00%
[Track1]        Matrix Structure                : 0 -1 0 1 0 0 0 0 1
[Track1]        Image Width                     : 1920
[Track1]        Image Height                    : 1080
[Track1]        Media Header Version            : 0
[Track1]        Media Create Date               : 2013:10:17 20:03:23
[Track1]        Media Modify Date               : 2013:10:17 20:03:23
[Track1]        Media Time Scale                : 25000
[Track1]        Media Duration                  : 29.32 s
[Track1]        Handler Class                   : Media Handler
[Track1]        Handler Type                    : Video Track
[Track1]        Handler Description             : VideoHandler
[Track1]        Graphics Mode                   : srcCopy
[Track1]        Op Color                        : 0 0 0
[Track1]        Handler Class                   : Data Handler
[Track1]        Handler Type                    : URL
[Track1]        Handler Description             : DataHandler
[Track1]        Compressor ID                   : avc1
[Track1]        Vendor ID                       : FFmpeg
[Track1]        Source Image Width              : 1920
[Track1]        Source Image Height             : 1080
[Track1]        X Resolution                    : 72
[Track1]        Y Resolution                    : 72
[Track1]        Bit Depth                       : 24
[Track1]        Video Frame Rate                : 25
[Track2]        Track Header Version            : 0
[Track2]        Track Create Date               : 2013:10:17 20:03:23
[Track2]        Track Modify Date               : 2013:10:17 20:03:23
[Track2]        Track ID                        : 2
[Track2]        Track Duration                  : 29.32 s
[Track2]        Track Layer                     : 0
[Track2]        Track Volume                    : 100.00%
[Track2]        Matrix Structure                : 1 0 0 0 1 0 0 0 1
[Track2]        Media Header Version            : 0
[Track2]        Media Create Date               : 2013:10:17 20:03:23
[Track2]        Media Modify Date               : 2013:10:17 20:03:23
[Track2]        Media Time Scale                : 48000
[Track2]        Media Duration                  : 29.32 s
[Track2]        Handler Class                   : Media Handler
[Track2]        Handler Type                    : Audio Track
[Track2]        Handler Description             : SoundHandler
[Track2]        Balance                         : 0
[Track2]        Handler Class                   : Data Handler
[Track2]        Handler Type                    : URL
[Track2]        Handler Description             : DataHandler
[Track2]        Audio Format                    : sowt
[Track2]        Audio Channels                  : 2
[Track2]        Audio Bits Per Sample           : 16
[Track2]        Audio Sample Rate               : 48000
[Track2]        Layout Flags                    : Stereo
[Track2]        Audio Channels                  : 2
[Keys]          Major Brand                     : qt
[Keys]          Minor Version                   : 537331968
[Keys]          Compatible Brands               : qt  CAEP
[Keys]          Creation Time                   : 2013-10-17T20:03:23.000000Z
[Keys]          Encoder                         : Lavf58.36.100
[ItemList]      GPS Coordinates                 : 56 deg 11' 29.67" N, 10 deg 5' 0.80" E
[Composite]     Image Size                      : 1920x1080
[Composite]     Megapixels                      : 2.1
[Composite]     Avg Bitrate                     : 45.2 Mbps
[Composite]     GPS Latitude                    : 56 deg 11' 29.67" N
[Composite]     GPS Longitude                   : 10 deg 5' 0.80" E
[Composite]     Rotation                        : 270
[Composite]     GPS Position                    : 56 deg 11' 29.67" N, 10 deg 5' 0.80" E


I shure hope I'm writing the GPS info in the correct places :)

Also, what do you mean by "using the specific location when writing" ?

regards
gibman

Phil Harvey

Hi Gibman,

Hmmm.  Both are written to the ItemList location, so I guess that wasn't the problem.

Did this work at one time for you?  The reason I ask is that ExifTool 12.09 added a patch to change the way GPSPosition is written for compatibility with Lightroom.  It would really suck if this broke things for Google.  Could you perhaps try a controlled tests and write GPSPosition with both 12.08 and 12.09?  12.08 is still available for download (just change the version number in the download link).

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

gibman

I tried 12.08 on the problematic file.

applied using:
exiftool.exe -QuickTime:GPSCoordinates#="50.372821 5.893702 0" mvi_2371.mov

exiftool -a -G1 "Mvi_2371.mov"

[ExifTool]      ExifTool Version Number         : 12.08
[System]        File Name                       : Mvi_2371.mov
[System]        Directory                       : .
[System]        File Size                       : 61 MB
[System]        File Modification Date/Time     : 2020:11:04 09:41:22+01:00
[System]        File Access Date/Time           : 2020:11:04 09:41:22+01:00
[System]        File Creation Date/Time         : 2020:11:03 09:11:24+01:00
[System]        File Permissions                : rw-rw-rw-
[File]          File Type                       : MOV
[File]          File Type Extension             : mov
[File]          MIME Type                       : video/quicktime
[QuickTime]     Major Brand                     : Apple QuickTime (.MOV/QT)
[QuickTime]     Minor Version                   : 2007.9.0
[QuickTime]     Compatible Brands               : qt  , CAEP
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 2015:07:12 14:27:54
[QuickTime]     Modify Date                     : 2015:07:12 14:27:54
[QuickTime]     Time Scale                      : 25000
[QuickTime]     Duration                        : 11.04 s
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 3
[QuickTime]     Media Data Size                 : 64417092
[QuickTime]     Media Data Offset               : 5984
[Track1]        Track Header Version            : 0
[Track1]        Track Create Date               : 2015:07:12 14:27:54
[Track1]        Track Modify Date               : 2015:07:12 14:27:54
[Track1]        Track ID                        : 1
[Track1]        Track Duration                  : 11.04 s
[Track1]        Track Layer                     : 0
[Track1]        Track Volume                    : 0.00%
[Track1]        Matrix Structure                : 1 0 0 0 1 0 0 0 1
[Track1]        Image Width                     : 1920
[Track1]        Image Height                    : 1080
[Track1]        Media Header Version            : 0
[Track1]        Media Create Date               : 2015:07:12 14:27:54
[Track1]        Media Modify Date               : 2015:07:12 14:27:54
[Track1]        Media Time Scale                : 25000
[Track1]        Media Duration                  : 11.04 s
[Track1]        Handler Class                   : Media Handler
[Track1]        Handler Type                    : Video Track
[Track1]        Graphics Mode                   : srcCopy
[Track1]        Op Color                        : 0 0 0
[Track1]        Handler Class                   : Data Handler
[Track1]        Handler Type                    : Alias Data
[Track1]        Compressor ID                   : avc1
[Track1]        Source Image Width              : 1920
[Track1]        Source Image Height             : 1080
[Track1]        X Resolution                    : 72
[Track1]        Y Resolution                    : 72
[Track1]        Bit Depth                       : 24
[Track1]        Video Frame Rate                : 25
[Track2]        Track Header Version            : 0
[Track2]        Track Create Date               : 2015:07:12 14:27:54
[Track2]        Track Modify Date               : 2015:07:12 14:27:54
[Track2]        Track ID                        : 2
[Track2]        Track Duration                  : 11.04 s
[Track2]        Track Layer                     : 0
[Track2]        Track Volume                    : 100.00%
[Track2]        Matrix Structure                : 1 0 0 0 1 0 0 0 1
[Track2]        Media Header Version            : 0
[Track2]        Media Create Date               : 2015:07:12 14:27:54
[Track2]        Media Modify Date               : 2015:07:12 14:27:54
[Track2]        Media Time Scale                : 48000
[Track2]        Media Duration                  : 11.04 s
[Track2]        Handler Class                   : Media Handler
[Track2]        Handler Type                    : Audio Track
[Track2]        Balance                         : 0
[Track2]        Handler Class                   : Data Handler
[Track2]        Handler Type                    : Alias Data
[Track2]        Audio Format                    : sowt
[Track2]        Audio Channels                  : 2
[Track2]        Audio Bits Per Sample           : 16
[Track2]        Audio Sample Rate               : 48000
[Track2]        Layout Flags                    : Stereo
[Track2]        Audio Channels                  : 2
[UserData]      Compressor Version              : CanonAVC0002
[UserData]      Camera Model Name               : Canon EOS 7D
[UserData]      Firmware Version                : Firmware Version 1.2.2
[ItemList]      GPS Coordinates                 : 50 deg 22' 22.16" N, 5 deg 53' 37.33" E, 0 m Above Sea Level
[Composite]     Image Size                      : 1920x1080
[Composite]     Megapixels                      : 2.1
[Composite]     Avg Bitrate                     : 46.7 Mbps
[Composite]     GPS Altitude                    : 0 m
[Composite]     GPS Altitude Ref                : Above Sea Level
[Composite]     GPS Latitude                    : 50 deg 22' 22.16" N
[Composite]     GPS Longitude                   : 5 deg 53' 37.33" E
[Composite]     Rotation                        : 0
[Composite]     GPS Position                    : 50 deg 22' 22.16" N, 5 deg 53' 37.33" E


google still does not pick up the coordinates :(

yeah it did work at some time.
in fact it still does. But only on some files.
Other files seem to be ignored by google.

I can take the working file (MVI_6061.mov) and I can use exiftool to reapply any random GPS coords, then reupload to google and the changes are seen immediately.
I can repeat this step for as long as I like to.

Then some files plain don't work :( like is the case with the Mvi_2371.mov file.