How to edit IFD0 and ExifIFD video fields?

Started by Tonio, September 18, 2022, 03:36:16 PM

Previous topic - Next topic

Tonio

#15
Hello Phil,

Thank you for your answer
Sorry I totally forgot a part in my last sentence, I meant I was trying to find a way to set the ExifIFD/IFD0 dates by filename (or a timezoned tag?)
(Matti's post command doesn't work for that type of metadata)

I tried
exiftool -m -P -overwrite_original_in_place -wm w '-Canon:ThumbnailImage<UserData:DateTimeOriginal' movie.movbut it didn't work, it deleted the ExifIFD/IFD0 to add a
---- File ----
Type de fichier:
TXT
File Type Extension:
txt
Type MIME:
text/plain
MIME Encoding:
us-ascii
Newlines:
(none)

Maybe I have to use the 2 other commands to extract the thumbnail before and then put it back in the video's metadata? (it's not even clear in my head) so I tried:
exiftool -ThumbnailImage -b movie.MOV | exiftool -m -P -overwrite_original_in_place '-Canon:ThumbnailImage<UserData:DateTimeOriginal' movie.MOV -wm w - | exiftool -ThumbnailImage'<=-' movie.MOV 
Warning: No writable tags set from -
Error erasing original -
Warning: Error setting file time - -
    1 image files updated
It didn't work

Thank you for your help and sorry for that mistake!


Tonio

Tonio

Quote from: wywh on September 19, 2022, 04:25:50 PMexiftool -ThumbnailImage -b movie.mov | exiftool -time:all='2020:01:01 12:00:00' -timezone='+02:00' -wm w - | exiftool -ThumbnailImage'<=-' movie.mov

Hello Mati, I hope you are well,

I am still trying to insert the real date/time with time zone in ExifIFD and IFD0 into this thumbnail data, would you know a way of doing it without setting it manually? With something like:

exiftool -ThumbnailImage -b movie.MOV | exiftool -m -P -overwrite_original_in_place -time:all='-Canon:ThumbnailImage<UserData:DateTimeOriginal' movie.MOV -wm w - | exiftool -ThumbnailImage'<=-' movie.MOV(it doesn't work)

Thank you very much!

Tonio

wywh

I just ignore that Canon thumbnail image movie date tag because currently none of my apps use it anyway.

- Matti

Tonio

Hello,

Quote from: wywh on September 19, 2022, 04:25:50 PMexiftool -ThumbnailImage -b movie.mov | exiftool -time:all='2020:01:01 12:00:00' -timezone='+02:00' -wm w - | exiftool -ThumbnailImage'<=-' movie.mov

This commands works fine to edit IFD0, IFDExif and UserData dates in videos one by one by setting the dates manually so I'll do this now. However, it adds "Unknown Thumbnail: (Binary data 24812 bytes, use -b option to extract)" to the metadata video. I guess it causes no problem so I'll just ignore it but if you guys have an idea to delete this, please tell me!

Thank you all,
Have a good day

wywh

Quote from: Tonio on October 01, 2022, 10:21:12 AMit adds "Unknown Thumbnail

I get the same extra UnknownThumbnail with my Canon .mov. These seem to be an identical duplicates with the same updated dates.

[Canon]         ThumbnailImage                  : (Binary data 16337 bytes, use -b option to extract)
[UserData]      UnknownThumbnail                : (Binary data 16337 bytes, use -b option to extract)

exiftool -a -G1 -s -api QuickTimeUTC=1 -Time:All ThumbnailImage.jpg
[System]        FileModifyDate                  : 2022:10:01 18:09:05+03:00
[System]        FileAccessDate                  : 2022:10:01 18:11:22+03:00
[System]        FileInodeChangeDate             : 2022:10:01 18:09:05+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                        : +02:00
[Canon]         TimeZoneCity                    : Cairo
[Canon]         DaylightSavings                 : On

I would either ignore or remove those Canon ThumbnailImages rather than introduce more clutter.

- Matti