Total newbie, so don't be rude :)
Currently, to add GPS data to my photos i use 2 exiftool direct commands:
1 - i call a file GPS.txt containing these lines
-n
-EXIF:GPSVersionID=2 3 0 0
-EXIF:GPSLatitudeRef=N
-EXIF:GPSLatitude=41.9019817
-EXIF:GPSLongitudeRef=E
-EXIF:GPSLongitude=12.4553653
-EXIF:GPSAltitudeRef=0
-EXIF:GPSAltitude=18.6 m
-EXIF:GPSTimeStamp=10:12:36.024
-EXIF:GPSStatus=V
-EXIF:GPSMeasureMode=3
-EXIF:GPSSpeedRef=K
-EXIF:GPSSpeed=1.3
-EXIF:GPSTrackRef=T
-EXIF:GPSTrack=149.79
-EXIF:GPSMapDatum=WGS-84
-EXIF:GPSDateStamp=2019:04:30
-EXIF:GPSDifferential=0
2- then, to make GPS time and date equal to the photo, i run this exiftool direct command:
"-gpstimestamp<datetimeoriginal" "-gpsdatestamp<datetimeoriginal"
How to merge the #2 command to the GPS.txt ???
Thanks in advance
Add these lines to GPS.txt
-gpstimestamp<datetimeoriginal
-gpsdatestamp<datetimeoriginal
But note that you are already setting GPSTimeStamp in GPS.txt, so you should either remove this or make sure it comes before these two lines.
- Phil
Thanks for reply Phil ... but i get these warnings:
Warning: Too many values specified (3 required) for GPS:GPSTimeStamp - ./DSC00868.JPG
Warning: No writable tags set from ./DSC00868.JPG
when calling the new GPS.txt
-n
-EXIF:GPSVersionID=2 3 0 0
-EXIF:GPSLatitudeRef=N
-EXIF:GPSLatitude=41.9019817
-EXIF:GPSLongitudeRef=E
-EXIF:GPSLongitude=12.4553653
-EXIF:GPSAltitudeRef=0
-EXIF:GPSAltitude=35.6 m
-EXIF:GPSTimeStamp=10:12:36.024
-EXIF:GPSStatus=V
-EXIF:GPSMeasureMode=3
-EXIF:GPSSpeedRef=K
-EXIF:GPSSpeed=1.3
-EXIF:GPSTrackRef=T
-EXIF:GPSTrack=149.79
-EXIF:GPSMapDatum=WGS-84
-EXIF:GPSDateStamp=2019:04:30
-EXIF:GPSDifferential=0
-gpstimestamp<datetimeoriginal
-gpsdatestamp<datetimeoriginal
Oh. I didn't notice the -n. Try this then:
-EXIF:GPSVersionID#=2 3 0 0
-EXIF:GPSLatitudeRef=N
-EXIF:GPSLatitude=41.9019817
-EXIF:GPSLongitudeRef=E
-EXIF:GPSLongitude=12.4553653
-EXIF:GPSAltitudeRef#=0
-EXIF:GPSAltitude=35.6 m
-EXIF:GPSStatus#=V
-EXIF:GPSMeasureMode#=3
-EXIF:GPSSpeedRef#=K
-EXIF:GPSSpeed=1.3
-EXIF:GPSTrackRef#=T
-EXIF:GPSTrack=149.79
-EXIF:GPSMapDatum=WGS-84
-gpstimestamp<datetimeoriginal
-gpsdatestamp<datetimeoriginal
- Phil
Works like a charm :)
Thank you