ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dpcran0119 on November 20, 2024, 09:55:03 AM

Title: Problems setting Windows "Date" to DateCreated for MP4 files
Post by: dpcran0119 on November 20, 2024, 09:55:03 AM
Not sure how to embed the photos into this body area..

I am running into problems with modifying the CreateDate and ModifyDate and setting them to the FileCreateDate on MP4 files that have been run through Handbrake or XMediaRecode.  They are not straight out of a camera, but still reflect timezone info when I run

Goal is for create date, modifydate to equal filecreatedate as those drive the Windows field called "Date"/
In this test, Date = 11/19/2024 5:11PM

exiftool -time:all -api QuicktimeUTC -g1 -a -s M:\_Temp
This yields the difference in times for the file.

exiftool "-CreateDate<FileCreateDate" "-ModifyDate<FileCreateDate" "-filemodifydate<FileCreateDate" -timezone="-04:00" -apiQuickTimeUTC -ext .mp4 -r M:\_Temp

And I would expect the results to reflect the updated time to equal the FileCreateDate value for CreateDate and ModifyDate.  But it is not.

also attempted were the following.  First had same effect as above.  Last, failed and no records were changed.
exiftool "-quicktime:CreateDate<FileCreateDate" "-quicktime:ModifyDate<FileCreateDate" "-filemodifydate<FileCreateDate" -apiQuickTimeUTC -ext .mp4 -r M:\_Temp

exiftool -P -wm w "-quicktime:time:all#<$FileCreateDate" -apiQuickTimeUTC -ext .mp4 -r M:\_Temp

I am not sure where these are going wrong.  I am on Win11.

20241120 _092637AM - SNAG-0000.jpg
Original.jpg
After Windows.jpg
After.jpg
Title: Re: Problems setting Windows "Date" to DateCreated for MP4 files
Post by: dpcran0119 on November 20, 2024, 11:09:49 AM
I solved this.  Syntax.  Rookie mistake... 

exiftool "-quicktime:CreateDate<FileCreateDate" "-quicktime:ModifyDate<FileCreateDate" "-filemodifydate<FileCreateDate" -api QuickTimeUTC -ext .mp4 -r

problem was with -apiQuickTimeUTC

had to change it to -api QuickTimeUTC
Title: Re: Problems setting Windows "Date" to DateCreated for MP4 files
Post by: StarGeek on November 20, 2024, 11:25:42 AM
And here I was busy typing up a long response involving the intricacies of video UTC time vs local time.

If I had just looked a little closer I would have seen that problem.

Glad you figured it out.
Title: Re: Problems setting Windows "Date" to DateCreated for MP4 files
Post by: StarGeek on November 20, 2024, 12:26:57 PM
Oh, forgot to mention. The -timezone="-04:00" part does nothing. It attempts to set the TimeZone tag but since TimeZone is a MakerNotes tag (proprietary camera manufacturer specific tags), it cannot be written.