Error: GPX without temporal references

Started by koomot, December 29, 2023, 12:54:16 PM

Previous topic - Next topic

koomot

Hello, I would like to create a GPX track from a series of photos that are already geolocated (taken with my iPhone) and then use this track on Lightroom to geolocate other photos taken with a DSLR camera.

I followed this procedure:

- In the command line, I navigated to the folder where I placed the photos and copied the gpx.fmt file.
- I executed this command:exiftool -fileOrder DateTimeOriginal -p gpx.fmt -d %Y-%m-%dT%H:%M:%SZ . > out.gpxThe generated file does not contain date information, so I can see the track but without temporal references.

In fact, for all files, I received this error:
QuoteWarning: [Minor] Tag 'gpsdatetime' not defined - ./IMG_3078.jpeg

What can I do? Am I doing something wrong?

Thank you!

StarGeek

The gpx.fmt requres the GPSDateTime tag in the image files. You can copy the time stamp from DateTimeOriginal but you also need a time zone so the adjustment to UTC can be made.

Run this command on one of the files and see if the time zone is included
exiftool -SubSecDateTimeOriginal file.jpg

If the time zone is included, then you can use this command to create the GPSDateTime tags, changing the double quotes to single quotes if you are on Mac/Linux
exiftool "-GPS*Stamp<SubSecDateTimeOriginal" /path/to/files/

If the time zone isn't inlucded, then you would have to add it either by including it in the command (changing ±00:00 to the actual time zone where the image was taken)
exiftool "-GPS*Stamp<${SubSecDateTimeOriginal}±00:00" /path/to/files/

Or you could add the time zone to the files first, then use the first command.
exiftool "-OffsetTime*=±00:00" /path/to/files/

The -d %Y-%m-%dT%H:%M:%SZ of your original command can be dropped, as the gpx.fmt will ignore it and correctly format without it.
"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

koomot

#2
Thank you very much, it works perfectly.
I added the time zone, and then I created the GPSDateTime tags.

How can I do the same with videos in MOV format? Is there a way for those too?

Phil Harvey

The "Usage" line in gpx.fmt shows how to do this for video files (assuming they contain timed GPS information):

exiftool -p gpx.fmt -ee3 FILE [...] > out.gpx

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

koomot

Thank you for the reply, but I'm afraid I didn't understand.

My MOV files have the same issue as the photos; the same warning appears:
QuoteWarning: [Minor] Tag 'gpsdatetime' not defined - ./IMG_3838.mov.

While StarGeek's solution resolved the issue for photos, it didn't work for videos.
How can I add the time zone and create the GPSDateTime tags to the MOV files?

koomot

I add that when I run command exiftool -SubSecDateTimeOriginal ./IMG_3838.mov
I receive this as a response: Warning: [minor] The ExtractEmbedded option may find more tags in the media data  ./IMG_3838.mov

StarGeek

SubSecDateTimeOriginal doesn't apply to videos.  Make sure you have the original unedited gpx.fmt file for them.

Copy/paste the entire command and output from when you try to extract the data from a video so we can see everything that is happening.
"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

koomot

Quote from: StarGeek on December 29, 2023, 09:51:57 PMCopy/paste the entire command and output from when you try to extract the data from a video so we can see everything that is happening.

When I use this command: exiftool -fileOrder DateTimeOriginal -p gpx.fmt  . > out.gpx

I receive this result:
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_12 IMG_2791.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_13 IMG_2794.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_13 IMG_2795.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_14 IMG_2797.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_14 IMG_2798.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_14 IMG_2799.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_15 IMG_2807.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_15 IMG_2811.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_16 IMG_2813.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_16 IMG_2814.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_16 IMG_2815.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_16 IMG_2816.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_16 IMG_2817.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_16 IMG_2818.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_16 IMG_2819.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_18 IMG_2828.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_18 IMG_2829.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_18 IMG_2831.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_18 IMG_2834.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_18 IMG_2835.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2857 (1).mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2857.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2859 (1).mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2859.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2860 (1).mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2860.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2863.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2864.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_21 IMG_2865.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_22 IMG_2878.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_24 IMG_2893.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_24 IMG_2894.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_24 IMG_2897.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_26 IMG_2906.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_26 IMG_2911.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_27 IMG_2914.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_28 IMG_2924.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_28 IMG_2927.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_28 IMG_2932.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_29 IMG_2941.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_30 IMG_2948.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_30 IMG_2951.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_30 IMG_2952.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_30 IMG_2954.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_30 IMG_2956.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./06_30 IMG_2963.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_01 IMG_2965.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_01 IMG_2967.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_01 IMG_2995.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_01 IMG_2996.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_01 IMG_2998.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_02 IMG_3003.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_02 IMG_3004.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_02 IMG_3005.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_02 IMG_3008.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_02 IMG_3010.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_02 IMG_3015.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./07_03 IMG_3016.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_12 IMG_3838.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_12 IMG_3839.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_12 IMG_3840.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_13 IMG_3848.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_13 IMG_3854.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_14 IMG_3861.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_14 IMG_3862.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_16 IMG_3883.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_16 IMG_3884.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_16 IMG_3885.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_16 IMG_3886.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_16 IMG_3887.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_16 IMG_3888.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_17 IMG_2389.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_17 IMG_3951.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_18 IMG_3973.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_20 IMG_3997.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_20 IMG_3998.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_20 IMG_3999.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_21 IMG_4006.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_21 IMG_4017.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_22 IMG_4069.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_24 IMG_4085.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_24 IMG_4099.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_24 IMG_4100.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_24 IMG_4101.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_25 IMG_4109.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_25 IMG_4110.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_25 IMG_4130.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./08_26 IMG_4141.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_27 IMG_4172.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_27 IMG_4177.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./08_31 IMG_4191.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./09_07 IMG_4203.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./09_07 IMG_4212.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./09_07 IMG_4213.mov
Warning: [minor] The ExtractEmbedded option may find more tags in the media data - ./09_08 IMG_4222.mov
Warning: [Minor] Tag 'gpsdatetime' not defined - ./09_08 IMG_4241.mov
    1 directories scanned
   96 image files read

The generated file does not contain date information, so I can see the track but without temporal references. Why does this happen?

Phil Harvey

Maybe try adding the -extractEmbedded option.

Quote from: koomot on December 30, 2023, 04:22:59 AMI can see the track but without temporal references.

How do you see this?  Use ExifTool with the -extractEmbedded option and no other options to see what this file contains.

- 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: koomot on December 30, 2023, 04:22:59 AMWhen I use this command:
exiftool -fileOrder DateTimeOriginal -p gpx.fmt  . > out.gpx

You dropped the -ee3 (-extractEmbedded3) option that is listed in the gpx.fmt and in Phil's first post in this thread.
"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

wywh

Quote from: koomot on December 29, 2023, 12:54:16 PMiPhone

Yes, it seems iOS ~13.2.2 and later do not have GPSTimeStamp anymore, only GPSDateStamp, and the GPSTimeStamp offset is moved to OffsetTimeOriginal, OffsetTime, and OffsetTimeDigitized tags.

So you have to copy and add GPSDateStamp to the images using those OffsetTime* tags.

I guess OffsetTimeOriginal is most important because apps like Photos.app ignore the rest.

So maybe the config .fmt files could be updated to read also the OffsetTimeOriginal tag in addition to GPSTimeStamp?

- Matti

koomot

Quote from: Phil Harvey on December 30, 2023, 07:15:26 AMUse ExifTool with the -extractEmbedded option and no other options to see what this file contains.
With that command I get this result:
ExifTool Version Number         : 12.71
File Name                       : out.gpx
Directory                       : .
File Size                       : 6.4 kB
File Modification Date/Time     : 2023:12:30 18:36:38+01:00
File Access Date/Time           : 2023:12:30 18:36:40+01:00
File Inode Change Date/Time     : 2023:12:30 18:36:38+01:00
File Permissions                : -rw-r--r--
File Type                       : XML
File Type Extension             : xml
MIME Type                       : application/xml
Gpx Version                     : 1.0
Gpx Creator                     : ExifTool 12.71
Gpx Xmlns                       : http://www.topografix.com/GPX/1/0
Gpx Schema Location             : http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd
Gpx Trk Number                  : 1
Gpx Trk Trkseg Trkpt Lat        : -16.3982
Gpx Trk Trkseg Trkpt Lon        : -71.5372
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -16.4034
Gpx Trk Trkseg Trkpt Lon        : -71.5351
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6776
Gpx Trk Trkseg Trkpt Lon        : -71.5865
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6221
Gpx Trk Trkseg Trkpt Lon        : -71.9788
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.5952
Gpx Trk Trkseg Trkpt Lon        : -71.9996
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.5952
Gpx Trk Trkseg Trkpt Lon        : -71.9996
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.5931
Gpx Trk Trkseg Trkpt Lon        : -71.9483
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.593
Gpx Trk Trkseg Trkpt Lon        : -71.9484
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6023
Gpx Trk Trkseg Trkpt Lon        : -71.9437
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6222
Gpx Trk Trkseg Trkpt Lon        : -71.9786
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6221
Gpx Trk Trkseg Trkpt Lon        : -71.9787
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6223
Gpx Trk Trkseg Trkpt Lon        : -71.9783
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6219
Gpx Trk Trkseg Trkpt Lon        : -71.9801
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6218
Gpx Trk Trkseg Trkpt Lon        : -71.9806
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6219
Gpx Trk Trkseg Trkpt Lon        : -71.9806
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.5181
Gpx Trk Trkseg Trkpt Lon        : -71.9812
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.5168
Gpx Trk Trkseg Trkpt Lon        : -71.9793
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.5191
Gpx Trk Trkseg Trkpt Lon        : -71.9777
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.5166
Gpx Trk Trkseg Trkpt Lon        : -71.9783
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.5166
Gpx Trk Trkseg Trkpt Lon        : -71.9784
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.2506
Gpx Trk Trkseg Trkpt Lon        : -72.6365
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.2506
Gpx Trk Trkseg Trkpt Lon        : -72.6365
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.2338
Gpx Trk Trkseg Trkpt Lon        : -72.6321
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.2338
Gpx Trk Trkseg Trkpt Lon        : -72.6321
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.2282
Gpx Trk Trkseg Trkpt Lon        : -72.6286
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.2282
Gpx Trk Trkseg Trkpt Lon        : -72.6286
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.2282
Gpx Trk Trkseg Trkpt Lon        : -72.6286
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.2268
Gpx Trk Trkseg Trkpt Lon        : -72.627
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.223
Gpx Trk Trkseg Trkpt Lon        : -72.6236
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.149
Gpx Trk Trkseg Trkpt Lon        : -72.5401
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.5169
Gpx Trk Trkseg Trkpt Lon        : -71.9781
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.5169
Gpx Trk Trkseg Trkpt Lon        : -71.978
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.507
Gpx Trk Trkseg Trkpt Lon        : -71.9828
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.4215
Gpx Trk Trkseg Trkpt Lon        : -71.8499
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.3115
Gpx Trk Trkseg Trkpt Lon        : -72.1461
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.3015
Gpx Trk Trkseg Trkpt Lon        : -72.1253
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.8691
Gpx Trk Trkseg Trkpt Lon        : -71.303
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.8753
Gpx Trk Trkseg Trkpt Lon        : -71.3134
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -13.8758
Gpx Trk Trkseg Trkpt Lon        : -71.3122
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.8405
Gpx Trk Trkseg Trkpt Lon        : -70.0194
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.8407
Gpx Trk Trkseg Trkpt Lon        : -70.0282
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.8322
Gpx Trk Trkseg Trkpt Lon        : -70.0194
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.7766
Gpx Trk Trkseg Trkpt Lon        : -70.0349
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.7201
Gpx Trk Trkseg Trkpt Lon        : -69.784
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.7289
Gpx Trk Trkseg Trkpt Lon        : -69.7694
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.7245
Gpx Trk Trkseg Trkpt Lon        : -69.7656
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.7343
Gpx Trk Trkseg Trkpt Lon        : -69.8181
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.7387
Gpx Trk Trkseg Trkpt Lon        : -69.8515
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.7284
Gpx Trk Trkseg Trkpt Lon        : -69.7635
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.73
Gpx Trk Trkseg Trkpt Lon        : -69.7535
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.7264
Gpx Trk Trkseg Trkpt Lon        : -69.7552
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6544
Gpx Trk Trkseg Trkpt Lon        : -69.7203
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6563
Gpx Trk Trkseg Trkpt Lon        : -69.7214
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6568
Gpx Trk Trkseg Trkpt Lon        : -69.7203
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6578
Gpx Trk Trkseg Trkpt Lon        : -69.7212
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.665
Gpx Trk Trkseg Trkpt Lon        : -69.7122
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6726
Gpx Trk Trkseg Trkpt Lon        : -69.7175
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -15.6612
Gpx Trk Trkseg Trkpt Lon        : -69.7243
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -9.0118
Gpx Trk Trkseg Trkpt Lon        : -77.6111
Gpx Trk Trkseg Trkpt Ele        : 4602.136
Gpx Trk Trkseg Trkpt Lat        : -9.0118
Gpx Trk Trkseg Trkpt Lon        : -77.611
Gpx Trk Trkseg Trkpt Ele        : 4600.921
Gpx Trk Trkseg Trkpt Lat        : -9.0118
Gpx Trk Trkseg Trkpt Lon        : -77.611
Gpx Trk Trkseg Trkpt Ele        : 4603.348
Gpx Trk Trkseg Trkpt Lat        : -9.5232
Gpx Trk Trkseg Trkpt Lon        : -77.5315
Gpx Trk Trkseg Trkpt Ele        : 3054.205
Gpx Trk Trkseg Trkpt Lat        : -9.5233
Gpx Trk Trkseg Trkpt Lon        : -77.5315
Gpx Trk Trkseg Trkpt Ele        : 3041.921
Gpx Trk Trkseg Trkpt Lat        : -10.1568
Gpx Trk Trkseg Trkpt Lon        : -76.9117
Gpx Trk Trkseg Trkpt Ele        : 4676.776
Gpx Trk Trkseg Trkpt Lat        : -10.1568
Gpx Trk Trkseg Trkpt Lon        : -76.9117
Gpx Trk Trkseg Trkpt Ele        : 4676.776
Gpx Trk Trkseg Trkpt Lat        : -10.2697
Gpx Trk Trkseg Trkpt Lon        : -76.8726
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.2697
Gpx Trk Trkseg Trkpt Lon        : -76.8725
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.2698
Gpx Trk Trkseg Trkpt Lon        : -76.8714
Gpx Trk Trkseg Trkpt Ele        : 4282.501
Gpx Trk Trkseg Trkpt Lat        : -10.2698
Gpx Trk Trkseg Trkpt Lon        : -76.8714
Gpx Trk Trkseg Trkpt Ele        : 4282.968
Gpx Trk Trkseg Trkpt Lat        : -10.2698
Gpx Trk Trkseg Trkpt Lon        : -76.8714
Gpx Trk Trkseg Trkpt Ele        : 4282.968
Gpx Trk Trkseg Trkpt Lat        : -10.2698
Gpx Trk Trkseg Trkpt Lon        : -76.8714
Gpx Trk Trkseg Trkpt Ele        : 4283.168
Gpx Trk Trkseg Trkpt Lat        : -10.3479
Gpx Trk Trkseg Trkpt Lon        : -76.8743
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.365
Gpx Trk Trkseg Trkpt Lon        : -76.8787
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.3528
Gpx Trk Trkseg Trkpt Lon        : -76.8941
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.3346
Gpx Trk Trkseg Trkpt Lon        : -77.0017
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.3346
Gpx Trk Trkseg Trkpt Lon        : -77.0017
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.3204
Gpx Trk Trkseg Trkpt Lon        : -76.9942
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.2604
Gpx Trk Trkseg Trkpt Lon        : -76.9761
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.2363
Gpx Trk Trkseg Trkpt Lon        : -76.9658
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : -10.2214
Gpx Trk Trkseg Trkpt Lon        : -76.9391
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 4.5971
Gpx Trk Trkseg Trkpt Lon        : -74.0691
Gpx Trk Trkseg Trkpt Ele        : 2642.61
Gpx Trk Trkseg Trkpt Lat        : 4.5967
Gpx Trk Trkseg Trkpt Lon        : -74.0731
Gpx Trk Trkseg Trkpt Ele        : 2630.011
Gpx Trk Trkseg Trkpt Lat        : 4.5967
Gpx Trk Trkseg Trkpt Lon        : -74.0731
Gpx Trk Trkseg Trkpt Ele        : 2630.011
Gpx Trk Trkseg Trkpt Lat        : 4.5967
Gpx Trk Trkseg Trkpt Lon        : -74.0731
Gpx Trk Trkseg Trkpt Ele        : 2630.02
Gpx Trk Trkseg Trkpt Lat        : 4.596
Gpx Trk Trkseg Trkpt Lon        : -74.0719
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 4.5961
Gpx Trk Trkseg Trkpt Lon        : -74.0719
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 4.6032
Gpx Trk Trkseg Trkpt Lon        : -74.0606
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 4.5972
Gpx Trk Trkseg Trkpt Lon        : -74.0691
Gpx Trk Trkseg Trkpt Ele        : 2639.243
Gpx Trk Trkseg Trkpt Lat        : 1.0253
Gpx Trk Trkseg Trkpt Lon        : -76.5362
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 1.0611
Gpx Trk Trkseg Trkpt Lon        : -76.5544
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 1.0609
Gpx Trk Trkseg Trkpt Lon        : -76.5545
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 1.0452
Gpx Trk Trkseg Trkpt Lon        : -76.5481
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 1.0839
Gpx Trk Trkseg Trkpt Lon        : -76.6318
Gpx Trk Trkseg Trkpt Ele        : 575.616
Gpx Trk Trkseg Trkpt Lat        : 1.0839
Gpx Trk Trkseg Trkpt Lon        : -76.6318
Gpx Trk Trkseg Trkpt Ele        : 575.745
Gpx Trk Trkseg Trkpt Lat        : 1.0331
Gpx Trk Trkseg Trkpt Lon        : -76.6175
Gpx Trk Trkseg Trkpt Ele        : 0
Gpx Trk Trkseg Trkpt Lat        : 1.1035
Gpx Trk Trkseg Trkpt Lon        : -76.6158
Gpx Trk Trkseg Trkpt Ele        : 791.288

Quote from: StarGeek on December 30, 2023, 10:59:30 AMYou dropped the -ee3 (-extractEmbedded3) option that is listed in the gpx.fmt and in Phil's first post in this thread.
Unfortunately, even with this option the result is the same


Quote from: wywh on December 30, 2023, 12:28:11 PMSo you have to copy and add GPSDateStamp to the images using those OffsetTime* tags.
"How can I do this? What command do I need to give?"

Quote from: wywh on December 30, 2023, 12:28:11 PMSo maybe the config .fmt files could be updated to read also the OffsetTimeOriginal tag in addition to GPSTimeStamp?
How is it possible to do it?

wywh

Quote from: koomot on December 30, 2023, 12:46:24 PM"How can I do this? What command do I need to give?"
"How is it possible to do it?"

"How can I do this? What command do I need to give?"
See the comments above.

"How is it possible to do it?"
That was just an update request. Sorry for hijacking the thread  :'(

StarGeek

Quote from: Phil Harvey on December 29, 2023, 03:23:32 PMThe "Usage" line in gpx.fmt shows how to do this for video files (assuming they contain timed GPS information):

exiftool -p gpx.fmt -ee3 FILE [...] > out.gpx

- Phil

This is the command you dropped -ee3 from in this post of yours.

We already know you don't have GPSDateTime values in your GPX file.  We need to see if they are actually in your 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

koomot

Quote from: StarGeek on December 30, 2023, 02:42:10 PMWe already know you don't have GPSDateTime values in your GPX file.  We need to see if they are actually in your video files

This is one of the video files:
ExifTool Version Number         : 12.71
File Name                       : 06_21 IMG_2859.mov
Directory                       : .
File Size                       : 8.6 MB
File Modification Date/Time     : 2023:12:30 00:28:09+01:00
File Access Date/Time           : 2023:12:30 20:51:19+01:00
File Inode Change Date/Time     : 2023:12:30 00:49:31+01:00
File Permissions                : -rw-r--r--
File Type                       : MOV
File Type Extension             : mov
MIME Type                       : video/quicktime
Major Brand                     : Apple QuickTime (.MOV/QT)
Minor Version                   : 0.0.0
Compatible Brands               : qt
Media Data Size                 : 8628146
Media Data Offset               : 36
Movie Header Version            : 0
Create Date                     : 2023:12:29 23:28:08
Modify Date                     : 2023:12:29 23:28:09
Time Scale                      : 600
Duration                        : 6.38 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 5
Track Header Version            : 0
Track Create Date               : 2023:12:29 23:28:08
Track Modify Date               : 2023:12:29 23:28:09
Track ID                        : 1
Track Duration                  : 6.38 s
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 640
Image Height                    : 360
Clean Aperture Dimensions       : 640x360
Production Aperture Dimensions  : 640x360
Encoded Pixels Dimensions       : 640x360
Media Header Version            : 0
Media Create Date               : 2023:12:29 23:28:08
Media Modify Date               : 2023:12:29 23:28:09
Media Time Scale                : 600
Media Duration                  : 6.38 s
Media Language Code             : und
Handler Class                   : Media Handler
Handler Type                    : Video Track
Handler Vendor ID               : Apple
Handler Description             : Core Media Video
Graphics Mode                   : ditherCopy
Op Color                        : 32768 32768 32768
Handler Class                   : Data Handler
Handler Type                    : Alias Data
Handler Vendor ID               : Apple
Handler Description             : Core Media Data Handler
Compressor ID                   : hvc1
Source Image Width              : 640
Source Image Height             : 360
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : HEVC
Bit Depth                       : 24
Video Frame Rate                : 30.118
Track Header Version            : 0
Track Create Date               : 2023:12:29 23:28:08
Track Modify Date               : 2023:12:29 23:28:09
Track ID                        : 2
Track Duration                  : 6.37 s
Track Layer                     : 0
Track Volume                    : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2023:12:29 23:28:08
Media Modify Date               : 2023:12:29 23:28:09
Media Time Scale                : 44100
Media Duration                  : 6.43 s
Media Language Code             : und
Handler Class                   : Media Handler
Handler Type                    : Audio Track
Handler Vendor ID               : Apple
Handler Description             : Core Media Audio
Balance                         : 0
Handler Class                   : Data Handler
Handler Type                    : Alias Data
Handler Vendor ID               : Apple
Handler Description             : Core Media Data Handler
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Purchase File Format            : mp4a
Track Header Version            : 0
Track Create Date               : 2023:12:29 23:28:08
Track Modify Date               : 2023:12:29 23:28:09
Track ID                        : 3
Track Duration                  : 6.37 s
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2023:12:29 23:28:08
Media Modify Date               : 2023:12:29 23:28:09
Media Time Scale                : 600
Media Duration                  : 25.20 s
Media Language Code             : und
Handler Class                   : Media Handler
Handler Type                    : NRT Metadata
Handler Vendor ID               : Apple
Handler Description             : Core Media Metadata
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : ditherCopy
Gen Op Color                    : 32768 32768 32768
Gen Balance                     : 0
Handler Class                   : Data Handler
Handler Type                    : Alias Data
Handler Vendor ID               : Apple
Handler Description             : Core Media Data Handler
Meta Format                     : mebx
Sample Time                     : 0 s
Sample Duration                 : 25.20 s
Video Orientation               : Rotate 180
Track Header Version            : 0
Track Create Date               : 2023:12:29 23:28:08
Track Modify Date               : 2023:12:29 23:28:09
Track ID                        : 4
Track Duration                  : 6.37 s
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2023:12:29 23:28:08
Media Modify Date               : 2023:12:29 23:28:09
Media Time Scale                : 600
Media Duration                  : 25.20 s
Media Language Code             : und
Handler Class                   : Media Handler
Handler Type                    : NRT Metadata
Handler Vendor ID               : Apple
Handler Description             : Core Media Metadata
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : ditherCopy
Gen Op Color                    : 32768 32768 32768
Gen Balance                     : 0
Handler Class                   : Data Handler
Handler Type                    : Alias Data
Handler Vendor ID               : Apple
Handler Description             : Core Media Data Handler
Meta Format                     : mebx
Sample Time                     : 0 s
Sample Duration                 : 25.20 s
Handler Type                    : Metadata Tags
Location Accuracy Horizontal    : 3.535534
Make                            : Apple
Model                           : iPhone 13 mini
Software                        : 16.5
GPS Coordinates                 : 13 deg 14' 1.68" S, 72 deg 37' 55.56" W, 0 m Above Sea Level
Creation Date                   : 2023:06:21 12:19:55-05:00
Image Size                      : 640x360
Megapixels                      : 0.230
Avg Bitrate                     : 10.8 Mbps
GPS Altitude                    : 0 m
GPS Altitude Ref                : Above Sea Level
GPS Latitude                    : 13 deg 14' 1.68" S
GPS Longitude                   : 72 deg 37' 55.56" W
Rotation                        : 0
GPS Position                    : 13 deg 14' 1.68" S, 72 deg 37' 55.56" W