Hi all,
for an application in which I need to synchronize my GPS with my camera, I need sub-second precision. Is there any way that I can shift the time of creation in ExifTool using subseconds?
Sincerely,
Geert
Hi Geert,
ExifTool supports shifting by sub-seconds if the tag already contains sub-seconds. Currently, I think this limits you to XMP date/time tags, so you would have to use XMP:
> exiftool a.jpg -xmp:createdate="2012:10:11 16:16:52.00-04:00"
1 image files updated
> exiftool a.jpg -xmp:createdate
Create Date : 2012:10:11 16:16:52.00-04:00
> exiftool a.jpg -xmp:createdate+=0:0:1.43
1 image files updated
> exiftool a.jpg -xmp:createdate
Create Date : 2012:10:11 16:16:53.43-04:00
- Phil
thanks Phil!
Hi Phil,
I was now testing this but I never got it to work. I have image files for which I generated XMP metadata. Shifting the time with sub-seconds did not work because - I suppose - the time written in the XMP data is not expressed using sub-seconds. Is there a command I could use to convert all DateCreated fields to the same value it already has but just adding.00 to indicate sub-seconds? (Or get the DateCreated filed automatically from the Exif and write it in the XMP using sub-seconds?)
After this step, I then could shift with sub-seconds.
Cheers,
Geert
Hi Geert,
Try something like this:
exiftool "-xmp:createdate<${xmp:createdate}.00" FILE
(use single instead of double quotes if you are on Mac or Linux)
- Phil