Main Menu

Recent posts

#1
I just found a solution:
https://exiftool.org/faq.html#Q27
which was mentioned in this post:
https://stackoverflow.com/a/72407154/17058700

Now I'm using the doubled percents in the date expression
exiftool "-FileName<FileModifyDate" "-FileName<CreateDate" -d "%%Y-%%m-%%d_%%%%f.%%%%e" .in a batch file which generates the filename "2017-10-03_ram_1.jpg" which is exactly what I wanted.

So far I'm contented ;)
#2
Hi,

when I print the data of my ram_1.jpg - file I got all the values, see attached log.txt.
The date is printed as (german layout):

Create Date                     : 2017:10:03 11:27:27.069474
Date/Time Original              : 2017:10:03 11:27:27.069474
Modify Date                     : 2017:10:03 11:27:27.069474

I'm searching for hours now in this forum and in Google how to prefix the Exif-date into the filename and it still doesn't work.

E.g. trying
exiftool -d "%Y%m%d-%H%M%%-03.c.%%e" "-filename<CreateDate" .results in
Warning: [minor] Unrecognized MakerNotes - ./ram_1.jpg
    1 directories scanned
    1 image files updated
and creates a file "mHe" (without extension).

Or
exiftool -fileOrder DateTimeOriginal -recurse -extension jpg -extension jpeg -ignoreMinorErrors "-FileName<CreateDate" -d "%Y-%m-%d%%-.3nc.%%e" .results in
Warning: Error rebuilding maker notes (may be corrupt) - ./ram_1.jpg
    1 directories scanned
    1 image files updated
and creates a file "m-e" without extension.

Trying to set the colons in our german date FMT string
exiftool -d "%Y:%m:%d %H:%M%g" "-filename<CreateDate" .reports
Warning: New file name not allowed in Windows (contains ':') - ./ram_1.jpg
    1 directories scanned
    0 image files updated
    1 files weren't updated due to errors

Could you help me how to manage this date prefix into the jpg filename?

I've got so many images and this would help me a lot.  :)

Thanks in advance.
#3
Newbies / Re: Help wih renaming files
Last post by MnM - Today at 01:24:01 AM
I have tried to make this work but I am encountering issues.

Below are the commands that I using to rename and move files:

Prepare files for correct suffix 001, 002 etc
exiftool "-FileName<Datetimeoriginal" -d "%Y-%m-%%.3nc.%%e" -fileorder datetimeoriginal -ext jpg -r Z:/Uploads/PhotosAndVideos/Photos

Rename and move to correct folders
exiftool "-FileName<Datetimeoriginal" -d "Z:/Photos/%Y/%m-%b-%Y/%d-%m-%Y-%H-%M-%S-%%-3f.%%e" -ext jpg Z:/Uploads/PhotosAndVideos/Photos
Next I am trying to run a second pass on the folders created above (so i can rename the suffixes correctly) but I have no idea how to make it scan only the folders (year/months) that were created above.
I need help with this part please.
#4
Newbies / Re: Help wih renaming files
Last post by MnM - May 23, 2024, 07:32:11 PM
Thank you - I guess is not too bad and I can run a second pass to get the numbering correct.
#5
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

#6
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
#7
The "exiftool" Application / Re: Add timezone to MOV video ...
Last post by StarGeek - May 23, 2024, 04:45:38 PM
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.
#8
The "exiftool" Application / Re: Add timezone to MOV video ...
Last post by wywh - May 23, 2024, 04:01:02 PM
Quote from: StarGeek on May 23, 2024, 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
#9
Bug Reports / Feature Requests / Re: exiftool semi-corrupts som...
Last post by wywh - May 23, 2024, 11:56:20 AM
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
#10
Newbies / Re: Help wih renaming files
Last post by StarGeek - May 23, 2024, 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.