date info via exiftool and exiv2

Started by SteveDill, July 29, 2015, 01:29:13 PM

Previous topic - Next topic

SteveDill

I am trying to reconcile the date info given by exiftool and exiv2 (see example output below).
There seem to be things in exiv2 that are absent in exiftool, such as DateUTC and ModificationDate, and
vice versa, such as DateTimeOriginal and CreateDate.

Could someone shed some light on this for me?

$ exiv2 -g Date MVI_1377.MOV
Xmp.video.PreviewDate                        XmpText     1  0
Xmp.video.DateUTC                            XmpText    10  3518815669
Xmp.video.ModificationDate                   XmpText    10  3518815669
Xmp.video.TrackCreateDate                    XmpText    10  3518815669
Xmp.video.TrackModifyDate                    XmpText    10  3518815669
Xmp.video.MediaCreateDate                    XmpText    10  3518815669
Xmp.video.MediaModifyDate                    XmpText    10  3518815669
Xmp.audio.TrackCreateDate                    XmpText    10  3518815669
Xmp.audio.TrackModifyDate                    XmpText    10  3518815669
Xmp.audio.MediaCreateDate                    XmpText    10  3518815669
Xmp.audio.MediaModifyDate                    XmpText    10  3518815669

$ exiftool -s -a -G1 MVI_1377.MOV | grep Date
[System]        FileModifyDate                  : 2015:07:03 19:47:48+01:00
[System]        FileAccessDate                  : 2015:07:29 11:45:03+01:00
[System]        FileInodeChangeDate             : 2015:07:26 21:38:29+01:00
[QuickTime]     CreateDate                      : 2015:07:04 00:47:49
[QuickTime]     ModifyDate                      : 2015:07:04 00:47:49
[IFD0]          ModifyDate                      : 2015:07:03 18:47:49
[ExifIFD]       DateTimeOriginal                : 2015:07:03 18:47:49
[ExifIFD]       CreateDate                      : 2015:07:03 18:47:49
[Canon]         DateStampMode                   : Off
[Track1]        TrackCreateDate                 : 2015:07:04 00:47:49
[Track1]        TrackModifyDate                 : 2015:07:04 00:47:49
[Track1]        MediaCreateDate                 : 2015:07:04 00:47:49
[Track1]        MediaModifyDate                 : 2015:07:04 00:47:49
[Track2]        TrackCreateDate                 : 2015:07:04 00:47:49
[Track2]        TrackModifyDate                 : 2015:07:04 00:47:49
[Track2]        MediaCreateDate                 : 2015:07:04 00:47:49
[Track2]        MediaModifyDate                 : 2015:07:04 00:47:49

Phil Harvey

If you use the exiftool -v3 option, you will see exactly where ExifTool is reading these values from.

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

SteveDill

 $ exiftool -v3 -s -a -G1 MVI_1377.MOV | grep Date
  FileModifyDate = 1435949268
  FileAccessDate = 1438166703
  FileInodeChangeDate = 1437943109
  | | | | 7)  ModifyDate = 2015:07:03 18:47:49
  | | | | | 4)  DateTimeOriginal = 2015:07:03 18:47:49
  | | | | | 5)  CreateDate = 2015:07:03 18:47:49
  | | | | | | 11) DateStampMode = 0
  | | CreateDate = 3518815669
  | | ModifyDate = 3518815669
  | | | TrackCreateDate = 3518815669
  | | | TrackModifyDate = 3518815669
  | | | | MediaCreateDate = 3518815669
  | | | | MediaModifyDate = 3518815669
  | | | TrackCreateDate = 3518815669
  | | | TrackModifyDate = 3518815669
  | | | | MediaCreateDate = 3518815669
  | | | | MediaModifyDate = 3518815669

This looks similar to what I already saw, but with different indentation.

I am hoping to find out why exiv2 reports a value for "DateUTC" and "ModificationDate" which exiftool does not report.

Phil Harvey

You grepped for "Date" so you missed all of the file offsets and binary data in the -v3 output.  If Exiv2 will tell you where it extracts each tag from, you could compare the file offsets.  Or if it doesn't, you could use a hex editor to edit the values at these offsets so the date/time values would all be different -- this would at least allow you to associate the tags extracted by Exiv2 with the ExifTool tags by their values.

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