Main Menu

Recent posts

#1
Newbies / Re: Help wih renaming files
Last post by MnM - Today at 07:32:11 PM
Thank you - I guess is not too bad and I can run a second pass to get the numbering correct.
#2
Canon_AFConfig_0x0018

https://cam.start.canon/hy/C003/manual/html/UG-04_AF-Drive_0050.html#AF-Drive_0050_5

Eye Detection
0 disable
1 enable

#3
Thanks for providing exiftool.
For me there is no urgency to this, but I was just curious.

Subject to Detect
https://cam.start.canon/hy/C003/manual/html/UG-04_AF-Drive_0050.html#AF-Drive_0050_4

exiftool -s -G0:2 -a -U -w out/%f_%e.txt /Volumes/EOS_DIGITAL/DCIM/100CANON/IMG_988[5-9].CR3 /Volumes/EOS_DIGITAL/DCIM/100CANON/IMG_9890.CR3
egrep Canon_AFConfig_0x0014 out/*
out/IMG_9887_CR3.txt:[MakerNotes:Camera] Canon_AFConfig_0x0014       : 1
out/IMG_9888_CR3.txt:[MakerNotes:Camera] Canon_AFConfig_0x0014       : 2
out/IMG_9889_CR3.txt:[MakerNotes:Camera] Canon_AFConfig_0x0014       : 3
out/IMG_9890_CR3.txt:[MakerNotes:Camera] Canon_AFConfig_0x0014       : 0

0 is None
1 is People
2 is Animals
3 is Vehicles

My camera does not have a separate setting for aircraft, but some cameras might
#4
I always feel that writing directly to Time:All is a bad idea because it writes so many tags. Using it with the -wm w is about the only reasonable exception.

And the reason I suggest writing the -OffsetTime* tags over the Canon (and Nikon) specific TimeZone is due to the interaction with the DaylightSavings tag. TimeZone is supposed to contain the base time zone without regards to any possible Daylight Savings time change. For example, for Eastern time zone, it should always remain set at -05:00.  The DaylightSavings is the indicator for when the camera is supposed to add an hour or not.
#5
The "exiftool" Application / Re: Add timezone to MOV video ...
Last post by wywh - Today at 04:01:02 PM
Quote from: StarGeek on Today at 11:21:25 AMI would suggest also including the OffsetTime* tags

That is a good point although there is already Canon:TimeZone tag.

...as I said, I ignore these Canon thumbnail tags but just for fun I experimented...

This nicely edits additional Canon movie thumbnail TimeZone, TimeZoneCity, and DaylightSavings tags as well as ExifIFD:DateTimeOriginal, CreateDate, and IFD0:ModifyDate:

exiftool -a -G1 -s -api QuickTimeUTC=1 -Time:All canon.mov
[QuickTime]     CreateDate                      : 2003:03:03 12:03:03+02:00
[QuickTime]     ModifyDate                      : 2003:03:03 12:03:03+02:00
[Track1]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track1]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track1]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track1]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Track2]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track2]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track2]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track2]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Track3]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track3]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track3]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track3]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Keys]          LocationDate                    : 2015:08:08 13:03:06+03:00
[IFD0]          ModifyDate                      : 2015:08:08 13:02:57
[ExifIFD]       DateTimeOriginal                : 2015:08:08 13:02:57
[ExifIFD]       CreateDate                      : 2015:08:08 13:02:57
[Canon]         TimeZone                        : +03:00
[Canon]         TimeZoneCity                    : Cairo
[Canon]         DaylightSavings                 : On
[ExifIFD]       SubSecTime                      : 55
[ExifIFD]       SubSecTimeOriginal              : 55
[ExifIFD]       SubSecTimeDigitized             : 55

exiftool -ThumbnailImage -b canon.mov | exiftool -Time:All='2020:01:01 12:00:00' -TimeZone='-05:00' -TimeZoneCity='New York' -DaylightSavings=Off -wm w - | exiftool -ThumbnailImage'<=-' canon.mov

exiftool -a -G1 -s -api QuickTimeUTC=1 -Time:All canon.mov
[QuickTime]     CreateDate                      : 2003:03:03 12:03:03+02:00
[QuickTime]     ModifyDate                      : 2003:03:03 12:03:03+02:00
[Track1]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track1]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track1]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track1]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Track2]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track2]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track2]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track2]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Track3]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track3]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track3]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track3]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Keys]          LocationDate                    : 2015:08:08 13:03:06+03:00
[IFD0]          ModifyDate                      : 2020:01:01 12:00:00
[ExifIFD]       DateTimeOriginal                : 2020:01:01 12:00:00
[ExifIFD]       CreateDate                      : 2020:01:01 12:00:00
[Canon]         TimeZone                        : -05:00
[Canon]         TimeZoneCity                    : New York
[Canon]         DaylightSavings                 : Off

But if I add OffsetTime* to the mix and leave '-wm w' off then lots of additional tags are written, huh  :o :

exiftool -ThumbnailImage -b canon.mov | exiftool -Time:All='2020:01:01 12:00:00' -TimeZone='-05:00' -TimeZoneCity='New York' -DaylightSavings=Off '-ExifIFD:OffsetTime*=-05:00' - | exiftool -ThumbnailImage'<=-' canon.mov

exiftool -a -G1 -s -api QuickTimeUTC=1 -Time:All canon.mov
[QuickTime]     CreateDate                      : 2003:03:03 12:03:03+02:00
[QuickTime]     ModifyDate                      : 2003:03:03 12:03:03+02:00
[Track1]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track1]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track1]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track1]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Track2]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track2]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track2]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track2]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Track3]        TrackCreateDate                 : 2003:03:03 12:03:03+02:00
[Track3]        TrackModifyDate                 : 2003:03:03 12:03:03+02:00
[Track3]        MediaCreateDate                 : 2003:03:03 12:03:03+02:00
[Track3]        MediaModifyDate                 : 2003:03:03 12:03:03+02:00
[Keys]          LocationDate                    : 2015:08:08 13:03:06+03:00
[IFD0]          ModifyDate                      : 2020:01:01 12:00:00
[ExifIFD]       DateTimeOriginal                : 2020:01:01 12:00:00
[ExifIFD]       CreateDate                      : 2020:01:01 12:00:00
[ExifIFD]       OffsetTime                      : -05:00
[ExifIFD]       OffsetTimeOriginal              : -05:00
[ExifIFD]       OffsetTimeDigitized             : -05:00
[Canon]         TimeZone                        : -05:00
[Canon]         TimeZoneCity                    : New York
[Canon]         DaylightSavings                 : Off
[GPS]           GPSTimeStamp                    : 12:00:00
[GPS]           GPSDateStamp                    : 2020:01:01
[IPTC]          DateSent                        : 2020:01:01
[IPTC]          TimeSent                        : 12:00:00+02:00
[IPTC]          ReleaseTime                     : 12:00:00+02:00
[IPTC]          ExpirationDate                  : 2020:01:01
[IPTC]          ExpirationTime                  : 12:00:00+02:00
[IPTC]          ReferenceDate                   : 2020:01:01
[IPTC]          DateCreated                     : 2020:01:01
[IPTC]          TimeCreated                     : 12:00:00+02:00
[IPTC]          DigitalCreationDate             : 2020:01:01
[IPTC]          DigitalCreationTime             : 12:00:00+02:00
[XMP-DICOM]     PatientBirthDate                : 2020:01:01 12:00:00
[XMP-DICOM]     SeriesDateTime                  : 2020:01:01 12:00:00
[XMP-DICOM]     StudyDateTime                   : 2020:01:01 12:00:00
[XMP-Device]    CameraPoseTimestamp             : 2020:01:01 12:00:00.000+02:00
[XMP-Device]    EarthPosTimestamp               : 2020:01:01 12:00:00.000+02:00
[XMP-Device]    PlanePoseTimestamp              : 2020:01:01 12:00:00.000+02:00
[XMP-Device]    PoseTimestamp                   : 2020:01:01 12:00:00.000+02:00
[XMP-GPano]     FirstPhotoDate                  : 2020:01:01 12:00:00
[XMP-GPano]     LastPhotoDate                   : 2020:01:01 12:00:00
[XMP-getty]     OriginalCreateDateTime          : 2020:01:01 12:00:00
[XMP-iptcExt]   ArtworkDateCreated              : 2020:01:01 12:00:00
[XMP-iptcExt]   CircaDateCreated                : 2020:01:01 12:00:00
[XMP-iptcExt]   IPTCLastEdited                  : 2020:01:01 12:00:00
[XMP-iptcExt]   PublicationEventDate            : 2020:01:01 12:00:00
[XMP-iptcExt]   TemporalCoverageFrom            : 2020:01:01 12:00:00
[XMP-iptcExt]   TemporalCoverageTo              : 2020:01:01 12:00:00
[XMP-iptcExt]   MetadataLastEdited              : 2020:01:01 12:00:00
[XMP-MP]        RegionInfoDateRegionsValid      : 2020:01:01 12:00:00
[XMP-microsoft] DateAcquired                    : 2020:01:01 12:00:00
[XMP-cc]        DeprecatedOn                    : 2020:01:01 12:00:00
[XMP-dc]        Date                            : 2020:01:01 12:00:00
[XMP-digiKam]   CaptionsDateTimeStamps          : 2020:01:01 12:00:00
[XMP-dwc]       EventEarliestDate               : 2020:01:01 12:00:00
[XMP-dwc]       EventDate                       : 2020:01:01 12:00:00
[XMP-dwc]       EventTime                       : 2020:01:01 12:00:00
[XMP-dwc]       EventLatestDate                 : 2020:01:01 12:00:00
[XMP-dwc]       EventVerbatimEventDate          : 2020:01:01 12:00:00
[XMP-dwc]       HumanObservationEarliestDate    : 2020:01:01 12:00:00
[XMP-dwc]       HumanObservationEventDate       : 2020:01:01 12:00:00
[XMP-dwc]       HumanObservationEventTime       : 2020:01:01 12:00:00
[XMP-dwc]       HumanObservationLatestDate      : 2020:01:01 12:00:00
[XMP-dwc]       HumanObservationVerbatimEventDate: 2020:01:01 12:00:00
[XMP-dwc]       DateIdentified                  : 2020:01:01 12:00:00
[XMP-dwc]       MachineObservationEarliestDate  : 2020:01:01 12:00:00
[XMP-dwc]       MachineObservationEventDate     : 2020:01:01 12:00:00
[XMP-dwc]       MachineObservationEventTime     : 2020:01:01 12:00:00
[XMP-dwc]       MachineObservationLatestDate    : 2020:01:01 12:00:00
[XMP-dwc]       MachineObservationVerbatimEventDate: 2020:01:01 12:00:00
[XMP-dwc]       MeasurementDeterminedDate       : 2020:01:01 12:00:00
[XMP-dwc]       RelationshipEstablishedDate     : 2020:01:01 12:00:00
[XMP-exif]      DateTimeDigitized               : 2020:01:01 12:00:00
[XMP-pdf]       CreationDate                    : 2020:01:01 12:00:00
[XMP-photoshop] DateCreated                     : 2020:01:01 12:00:00
[XMP-plus]      FirstPublicationDate            : 2020:01:01 12:00:00
[XMP-plus]      LicenseEndDate                  : 2020:01:01 12:00:00
[XMP-plus]      LicenseStartDate                : 2020:01:01 12:00:00
[XMP-plus]      LicenseTransactionDate          : 2020:01:01 12:00:00
[XMP-prism]     CoverDate                       : 2020:01:01 12:00:00
[XMP-prism]     DateRecieved                    : 2020:01:01 12:00:00
[XMP-prism]     KillDateDate                    : 2020:01:01 12:00:00
[XMP-prism]     ModificationDate                : 2020:01:01 12:00:00
[XMP-prism]     OffSaleDateDate                 : 2020:01:01 12:00:00
[XMP-prism]     OnSaleDateDate                  : 2020:01:01 12:00:00
[XMP-prism]     PublicationDateDate             : 2020:01:01 12:00:00
[XMP-prism]     PublicationDisplayDateDate      : 2020:01:01 12:00:00
[XMP-pur]       EmbargoDate                     : 2020:01:01 12:00:00
[XMP-pur]       ExclusivityEndDate              : 2020:01:01 12:00:00
[XMP-pur]       OptionEndDate                   : 2020:01:01 12:00:00
[XMP-tiff]      DateTime                        : 2020:01:01 12:00:00
[XMP-xmp]       MetadataDate                    : 2020:01:01 12:00:00
[XMP-xmpDM]     AudioModDate                    : 2020:01:01 12:00:00
[XMP-xmpDM]     MetadataModDate                 : 2020:01:01 12:00:00
[XMP-xmpDM]     ShotDate                        : 2020:01:01 12:00:00
[XMP-xmpDM]     VideoModDate                    : 2020:01:01 12:00:00
[XMP-xmpMM]     DerivedFromLastModifyDate       : 2020:01:01 12:00:00
[XMP-xmpMM]     HistoryWhen                     : 2020:01:01 12:00:00
[XMP-xmpMM]     IngredientsLastModifyDate       : 2020:01:01 12:00:00
[XMP-xmpMM]     ManagedFromLastModifyDate       : 2020:01:01 12:00:00
[XMP-xmpMM]     ManifestReferenceLastModifyDate : 2020:01:01 12:00:00
[XMP-xmpMM]     RenditionOfLastModifyDate       : 2020:01:01 12:00:00
[XMP-xmpMM]     VersionsEventWhen               : 2020:01:01 12:00:00
[XMP-xmpMM]     VersionsModifyDate              : 2020:01:01 12:00:00

- Matti
#6
Quote from: Phil Harvey on April 29, 2024, 03:12:24 PMI'll patch this in 12.85.  But you will still have to use the -m switch if the 'moov' atom is larger than 32 MB.

Thanks, it works OK in v12.85. When reading -m switch is needed to see full output with such movies. Without -m it reads as:

exiftool -a -G1 -s -api LargeFileSupport=1 movie.mov           
[ExifTool]      ExifToolVersion                 : 12.85
[ExifTool]      Warning                         : [Minor] Skipping 'moov' atom > 32 MiB
[System]        FileName                        : movie.mov
[System]        Directory                       : .
[System]        FileSize                        : 242 MB
[System]        FileModifyDate                  : 2022:06:12 19:23:17+03:00
[System]        FileAccessDate                  : 2024:05:23 18:26:35+03:00
[System]        FileInodeChangeDate             : 2024:05:23 18:51:05+03:00
[System]        FilePermissions                 : -rw-r--r--
[File]          FileType                        : MOV
[File]          FileTypeExtension               : mov
[File]          MIMEType                        : video/quicktime
[QuickTime]     MajorBrand                      : Apple QuickTime (.MOV/QT)
[QuickTime]     MinorVersion                    : 0.0.0
[QuickTime]     CompatibleBrands                : qt
[QuickTime]     MediaDataSize                   : 198475459
[QuickTime]     MediaDataOffset                 : 43093634

And it might be better to use .jpg instead .png for CoverArt anyway so the movies do not bloat.

- Matti
#7
Newbies / Re: Help wih renaming files
Last post by StarGeek - Today at 11:27:10 AM
No, I do not believe there is a way to automatically start the count based upon the counter of a previously existing file.  You would need a script to figure out what the highest number in the folder was and then pass that to exiftool, and this would need to be done separately for each folder.

The easiest thing to do would be to copy the new files normally and then run a second pass to rename to correct the count.
#8
Quote from: wywh on Today at 02:56:51 AMexiftool -ThumbnailImage -b movie.mov | exiftool -Time:All='2020:01:01 12:00:00' -timezone='+02:00' -wm w - | exiftool -ThumbnailImage'<=-' movie.mov

Good to know that ThumbnailImage is writable in this case, I hadn't paid much attention previously and my quick look over the Tags Names docs was inconclusive.

But I would suggest also including the OffsetTime* tags, e.g. '-OffsetTime*=+02:00'
#9
This was a fair bit of extra work because I had to hack the JPEG processor to read all JPEG-like segments from the RICO metadata, but I have it working now and 12.86 will have this feature:

> exiftool R0010007.MOV -app5:all
Barcode                         : Testdaten
Prozess                         : Technik
Phase                           : Demontage

- Phil
#10
The "exiftool" Application / Re: Add timezone to MOV video ...
Last post by wywh - Today at 02:56:51 AM
I'd advise you to just ignore timestamps in Canon ThumbnailImage tags. None of my apps read it (some old GraphicConverter version did but not anymore).

If it causes trouble, you might delete it:

exiftool -m -P -overwrite_original -Canon:ThumbnailImage= movie.mov
Or write time zone to the Keys tag which overrides other movie date tags in Apple's apps (other OSs might prefer UserData:DateTimeOriginal instead Keys: CreationDate):

exiftool -m -overwrite_original -api LargeFileSupport=1 -api QuickTimeUTC=1 '-QuickTime:CreateDate=2001:01:01 12:00:00' '-Keys:CreationDate=2001:01:01 12:00:00-05:00' movie.mov
Or write UTC time for that location also to QuickTime:CreateDate etc if it is different from the computer's time zone (you can omit Keys from the command below because QuickTime:Time:All takes care of it while also automatically adjusting DST):

exiftool -m -overwrite_original -api LargeFileSupport=1 -api QuickTimeUTC=1 -api TimeZone=America/New_York '-QuickTime:Time:All=2001:01:01 12:00:00' '-Keys:CreationDate=2001:01:01 12:00:00-05:00' movie.mov
If you insist, you can clumsily edit the Canon thumbnail date:

There is no standard for embedding EXIF data in a movie but that has not stopped a lot of camera makers from forcing it into the file. If that kind of EXIF is inside an embedded ThumbnailImage (like in some Canon models), it might be edited or deleted if some app erroneously grabs it. The maker notes in most Canon movies are stored inside the ThumbnailImage, which is writable, so you can do something like this (it is 3 commands: the first to extract the thumbnail, the second to add metadata to the thumbnail, and the third to write the thumbnail back into the video):

exiftool -ThumbnailImage -b movie.mov | exiftool -Time:All='2020:01:01 12:00:00' -timezone='+02:00' -wm w - | exiftool -ThumbnailImage'<=-' movie.mov
https://exiftool.org/forum/index.php?topic=11100.msg59507#msg59507

- Matti