Problem with "Set Created Date to EXIF"

Things you’d like to miss in the future...
admin
Site Admin
Posts: 63609
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problem with "Set Created Date to EXIF"

Post by admin »

Your CR2 file does not have 0x9003 ("DateTimeOriginal"), it only has 0x0132 ("DateTime"). So this should work:

Code: Select all

echo get("exif", 0x0132);
"Set Created Date to EXIF" ... Yes, I forgot to convert the Exif date format (2023:08:01) to something that be processed by the time stamper (2023-08-01). It will work in the next beta.

SL09
Posts: 48
Joined: 13 Jun 2009 13:54

Re: Problem with "Set Created Date to EXIF"

Post by SL09 »

> our CR2 file does not have 0x9003 ("DateTimeOriginal"), it only has 0x0132 ("DateTime")
... but ExifToolGUI 5 shows me both: [EXIF Info CR2.jpg]
(this is a very outdated app, but a nice interface for exiftool)
Attachments
EXIF Info CR2.jpg
EXIF Info CR2.jpg (98.45 KiB) Viewed 1323 times

admin
Site Admin
Posts: 63609
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problem with "Set Created Date to EXIF"

Post by admin »

For Barbaraberg10.CR2? Strange.

admin
Site Admin
Posts: 63609
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problem with "Set Created Date to EXIF"

Post by admin »

Got it. My parser still had some complications to work out. Next beta...

SL09
Posts: 48
Joined: 13 Jun 2009 13:54

Re: Problem with "Set Created Date to EXIF"

Post by SL09 »

> Still did not work for some files. Fixed.
YESSS ! "Ende gut, alles gut" :party: :lol:

With 25.00.0001 both commands
echo get("exif", 0x0132);
echo get("exif", 0x9003);
show a nice Echo for .CR2 & .dng & .jpg
telling the date and time the image was taken - not when Windows made a copy of the file or whatever ...

... AND ...

both
'Set Created date to EXIF' and 'Set Modified date to EXIF' now work perfectly ! I triple-checked it (is there no one else around ?). Ready for V. 30 :biggrin: - or 26 ;-) - or 25.00.0100

btw: your 'custom copy' function I discovered not long ago (and activated 'Alle Objektdatumsangaben beibehalten') is also wonderful; also the logic for the duplicates in this process (append -01, -02 etc.) is excellent and saves much time (for searching wrongly deleted versions etc. ...). Not to mention the quick filtering options, the favorites, the catalog, the paper folders, ... A highly complex program that does 'nearly' every trick :D

admin
Site Admin
Posts: 63609
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problem with "Set Created Date to EXIF"

Post by admin »

Yes, tell everyone about it! :beer:

SL09
Posts: 48
Joined: 13 Jun 2009 13:54

Re: Problem with "Set Created Date to EXIF" - and now: MP4 ??

Post by SL09 »

I don't want to appear greedy, but ... what about .MP4 files ? I get the error message
"Could not retrieve EXIF date."
echo get("exif", 0x0132);
gives no reaction, so does
echo get("exif", 0x9003);

Those are .MP4 files that are taken by my Canon EOS 6D Mark II.
According to ExifToolGUI 6, they contain both "DateTimeOriginal" AND "CreateDate" - including the time.

admin
Site Admin
Posts: 63609
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problem with "Set Created Date to EXIF"

Post by admin »

I would need one of them for testing.

SL09
Posts: 48
Joined: 13 Jun 2009 13:54

Re: Problem with "Set Created Date to EXIF"

Post by SL09 »

https://1drv.ms/f/s!AvCWnHRSWpkGjyHeL-m ... H?e=8ve8Jp

... the smallest one I could find.
I hope MS Drive still works

admin
Site Admin
Posts: 63609
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problem with "Set Created Date to EXIF"

Post by admin »

Thanks, got it. :tup: Yes, there is EXIF data in it, but I can't extract it at the moment, the usual methods don't seem to work. Need to think....

SL09
Posts: 48
Joined: 13 Jun 2009 13:54

Re: Problem with "Set Created Date to EXIF"

Post by SL09 »

Maybe this could help ?? but I have no idea about programming ...
In
https://exiftool.org/forum/index.php?topic=14509.0
Phil Harvey writes: "There is no standard for EXIF in video files, and there are many different ways it can be stored. ExifTool is able to read most of it, but only able to write some of it. Canon specifically writes metadata to the thumbnailimage." ...
Doesn't sound very optimistic; fortunately, in this situation there is no need to WRITE the data, only to READ them. And I see discussions in the Exiftool forum about 'how to write / change etc. EXIF data' - they never discuss 'how to read them'.
Another drastic remark I found there:
"The problem is that there is no standard for embedding EXIF data in a video file. Not that that has stopped a lot of camera makers from forcing it into the file. Because of this, exiftool is currently unable to edit these time stamps. I'm not even sure that any of the camera companies have made a way to edit these tags."

admin
Site Admin
Posts: 63609
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problem with "Set Created Date to EXIF"

Post by admin »

Interesting that even the specialized developers have a hard time with this. I think I could do it with some effort (it is easily visible in the raw view, and deciphering formats is a passion of mine), but frankly it is low prio. There are other things in the pipeline as well...

SL09
Posts: 48
Joined: 13 Jun 2009 13:54

Re: Problem with "Set Created Date to EXIF"

Post by SL09 »

> frankly it is low prio. There are other things in the pipeline as well...
... and I shall enjoy them also - if I am able to find them ...

I didn't realize how stupidly (un-)organized the management of data formats is. So there are .MP4 formats for every company's files ? same as in Raw files where they make changes all the time: .CRW, many different .CR2s etc. A gigantic waste of workforce and also of disk space, for all those decoding sofware programs.

admin
Site Admin
Posts: 63609
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problem with "Set Created Date to EXIF"

Post by admin »

I don't want to sound too pessimistic, I find it rather cute, but you can easily extend this observation to anything managed by humans, not just data formats :)

Post Reply