Geotagging issue

Started by fricco1983, June 05, 2023, 06:54:10 PM

Previous topic - Next topic

fricco1983

Dear Phil/all
first of all, thank you for your exif tool, very helpful!
I have one issue. Windows 11. I have some pics w/ & some others w/o geotagging infos.
1- I divided pics in 2 separate folders (YES & MANCANTI);
2- I created out.gpx file from pics w/ info w/ this script (file gpx in attach):

exiftool -fileOrder gpsdatetime -p gpx.fmt /Users/Windows/Desktop/TEST_GEO/YES > out.gpx

3- I copied the file in missing info folder & tried to associate geotagging info to pics w/o info: it doesnt works, here below the error:

PS C:\Users\Windows\Desktop\TEST_GEO\YES> exiftool -geotag out.gpx /Users/Windows/Desktop/TEST_GEO/MANCANTI
Warning: No track points found in GPS file 'out.gpx' in File:Geotag (ValueConvInv)
Warning: GPS track is empty in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_075802184.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_075802184.jpg

what can I do? Please, can you help me? Thanks a lot,
Vit

Phil Harvey

Are you sure the files contain GPSDateTime?

What is the output of exiftool "-gps*" FILE for one of the files?

- 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 just checked my mail and I think I found the sample track log (passed on my Oliver Betz).  The problem with this file is that it is UTF16-encoded.  Change this to UTF8 and it should work.

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

fricco1983

Thank you for your kind replay! How can I change out.gpx file to UTF8?

StarGeek

If you use Notepad++, there's a menu to change the encoding



I also found this Superuser answer which uses PowerShell.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

fricco1983

#5
Thank you all!!!!
it almost works!
...almost because 30/40 pics didn't accepted gps information...how could I do? here the output:


PS C:\Users\Windows\Desktop\TEST_GEO\MANCANTI> Get-Content .\out.gpx | Set-Content -Encoding utf8 out-utf8.gpx
PS C:\Users\Windows\Desktop\TEST_GEO\MANCANTI> exiftool -geotag out8.gpx /Users/Windows/Desktop/TEST_GEO/MANCANTI
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_075802184.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_075802184.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_144924804~2.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_144924804~2.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_151733912.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_151733912.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_151805829.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_151805829.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_152211653.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_152211653.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_004056275.NIGHT.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_004056275.NIGHT.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_115533957.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_115533957.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_115924264.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_115924264.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_120005455.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_120005455.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_121149948.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_121149948.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_125209973.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_125209973.jpg
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_174248309.PANO.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_105410954.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_105410954.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_110122566.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_110122566.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_125946213.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_125946213.jpg
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_001511752.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_115814903.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_115814903.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_115902922.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_115902922.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230426_111520849.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230426_111520849.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230427_110454828.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230427_110454828.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230428_004903038.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230428_004903038.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230428_115338237~2.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230428_115338237~2.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_000039811.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_000039811.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_104537044.PORTRAIT.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_104537044.PORTRAIT.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_191403183.PORTRAIT.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_191403183.PORTRAIT.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_192317108.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_192317108.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_112316050.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_112316050.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_144820017.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_144820017.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_150036943.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_150036943.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_151315469.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_151315469.jpg
Warning: Time is too far beyond track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230501_122700479.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230501_122700479.jpg
Warning: Time is too far beyond track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230501_160350436.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230501_160350436.jpg
    1 directories scanned
  10 image files updated
  30 image files unchanged

StarGeek

QuoteTime is too far from nearest GPS fix

Check the time stamps for these files.  Exiftool is telling you that the time stamps in the files are too far away from the time stamps in the GPX file.  This could be a time zone issue or it could be that the GPX file doesn't have data for that time.

See this troubleshooting tip on how to read the results when you add the -v2 (-verbose2) option  to your command.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).