ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: gverhoev on October 11, 2012, 02:19:01 PM

Title: Exif subseconds
Post by: gverhoev on October 11, 2012, 02:19:01 PM
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
Title: Re: Exif subseconds
Post by: Phil Harvey on October 11, 2012, 04:21:26 PM
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
Title: Re: Exif subseconds
Post by: gverhoev on October 15, 2012, 11:34:00 AM
thanks Phil!
Title: Re: Exif subseconds
Post by: gverhoev on October 17, 2012, 10:04:23 AM
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
Title: Re: Exif subseconds
Post by: Phil Harvey on October 17, 2012, 09:15:30 PM
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