JPG and CR3 get different time on rename

Started by the_neki, November 03, 2021, 12:22:53 PM

Previous topic - Next topic

the_neki

I'm running this command on my RAW+JPG pairs:

exiftool -d '%y-%m-%d_%H-%M_%S' '-filename<${DateTimeOriginal}${subsectimeoriginal;$_.=0 x(3-length)}%+3c.%e'  -r -v .

The problem is, my JPEGs do not get the same name as CR3 files:
21-08-25_10-19_39020.JPG
21-08-25_11-19_39020.CR3

I can't figure out what I need to do to have the same names.

This is JPG exif (extract):
[EXIF]          DateTimeOriginal                : 2021:08:25 10:19:39
[EXIF]          CreateDate                      : 2021:08:25 10:19:39
[EXIF]          OffsetTime                      : +01:00
[EXIF]          OffsetTimeOriginal              : +01:00
[EXIF]          OffsetTimeDigitized             : +01:00



And CR3:
[EXIF]          DateTimeOriginal                : 2021:08:25 10:19:39
[EXIF]          OffsetTime                      : +01:00
[EXIF]          OffsetTimeOriginal              : +01:00
[EXIF]          OffsetTimeDigitized             : +01:00


Any ideas?

StarGeek

What is the full output of this command on both of the files
exiftool -time:all -G1 -a -s file.jpg file.cr3
"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

the_neki

JPG:
[System]        FileModifyDate                  : 2021:08:25 12:19:40+02:00
[System]        FileAccessDate                  : 2021:11:03 17:10:35+01:00
[System]        FileInodeChangeDate             : 2021:11:03 17:00:16+01:00
[IFD0]          ModifyDate                      : 2021:08:25 10:19:39
[ExifIFD]       DateTimeOriginal                : 2021:08:25 10:19:39
[ExifIFD]       CreateDate                      : 2021:08:25 10:19:39
[ExifIFD]       OffsetTime                      : +01:00
[ExifIFD]       OffsetTimeOriginal              : +01:00
[ExifIFD]       OffsetTimeDigitized             : +01:00
[Canon]         TimeZone                        : +01:00
[Canon]         TimeZoneCity                    : Paris
[Canon]         DaylightSavings                 : Off
[ExifIFD]       SubSecTime                      : 02
[ExifIFD]       SubSecTimeOriginal              : 02
[ExifIFD]       SubSecTimeDigitized             : 02
[Composite]     SubSecCreateDate                : 2021:08:25 10:19:39.02+01:00
[Composite]     SubSecDateTimeOriginal          : 2021:08:25 10:19:39.02+01:00
[Composite]     SubSecModifyDate                : 2021:08:25 10:19:39.02+01:00



CR3:
[System]        FileModifyDate                  : 2021:08:25 12:19:40+02:00
[System]        FileAccessDate                  : 2021:11:03 16:28:59+01:00
[System]        FileInodeChangeDate             : 2021:11:03 16:28:53+01:00
[IFD0]          ModifyDate                      : 2021:08:25 10:19:39
[ExifIFD]       DateTimeOriginal                : 2021:08:25 10:19:39
[ExifIFD]       CreateDate                      : 2021:08:25 10:19:39
[ExifIFD]       OffsetTime                      : +01:00
[ExifIFD]       OffsetTimeOriginal              : +01:00
[ExifIFD]       OffsetTimeDigitized             : +01:00
[ExifIFD]       SubSecTime                      : 02
[ExifIFD]       SubSecTimeOriginal              : 02
[ExifIFD]       SubSecTimeDigitized             : 02
[Canon]         TimeZone                        : +01:00
[Canon]         TimeZoneCity                    : Paris
[Canon]         DaylightSavings                 : Off
[QuickTime]     CreateDate                      : 2021:08:25 11:19:39+02:00
[QuickTime]     ModifyDate                      : 2021:08:25 11:19:39+02:00
[Track1]        TrackCreateDate                 : 2021:08:25 11:19:39+02:00
[Track1]        TrackModifyDate                 : 2021:08:25 11:19:39+02:00
[Track1]        MediaCreateDate                 : 2021:08:25 11:19:39+02:00
[Track1]        MediaModifyDate                 : 2021:08:25 11:19:39+02:00
[Track2]        TrackCreateDate                 : 2021:08:25 11:19:39+02:00
[Track2]        TrackModifyDate                 : 2021:08:25 11:19:39+02:00
[Track2]        MediaCreateDate                 : 2021:08:25 11:19:39+02:00
[Track2]        MediaModifyDate                 : 2021:08:25 11:19:39+02:00
[Track3]        TrackCreateDate                 : 2021:08:25 11:19:39+02:00
[Track3]        TrackModifyDate                 : 2021:08:25 11:19:39+02:00
[Track3]        MediaCreateDate                 : 2021:08:25 11:19:39+02:00
[Track3]        MediaModifyDate                 : 2021:08:25 11:19:39+02:00
[Track4]        TrackCreateDate                 : 2021:08:25 11:19:39+02:00
[Track4]        TrackModifyDate                 : 2021:08:25 11:19:39+02:00
[Track4]        MediaCreateDate                 : 2021:08:25 11:19:39+02:00
[Track4]        MediaModifyDate                 : 2021:08:25 11:19:39+02:00
[Track4]        TimeStamp                       : 2021:08:25 10:19:39.02
[Composite]     SubSecCreateDate                : 2021:08:25 10:19:39.02+01:00
[Composite]     SubSecDateTimeOriginal          : 2021:08:25 10:19:39.02+01:00
[Composite]     SubSecModifyDate                : 2021:08:25 10:19:39.02+01:00

the_neki

exiftool -d '%y-%m-%d_%I-%M_%S' '-filename<${ExifIFD:CreateDate}${subsectimeoriginal;$_.=0 x(3-length)}%+3c.%e'  -v .

seems to work! I guess just CreateDate pulled the latest tag regardless of the group, which is different for CR3

StarGeek

Are you in a different time zone than where the picture was taken?  The file system time stamp indicates a +02:00 time zone, while the embedded data, OffsetTime indicate a +01:00 time zone.

Also, what version of exiftool are you using
exiftool -ver
"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