Hi there,
The question has been asked a lot but somehow I fail to understand the answers.
My camera started with a wrong date time setting.
01-01-2017 00:00
Made some videos starting around for example 'Create Date' 01-01-2017 11:37:00
Real date and time is 14-01-2021 10:53:00
So I need to relatively change all dates and times with 4 years, 1 month and 13 days.
But the time needs to go back 44 minutes.
I was trying with this exiftool "AllDates+=0:0:0 0:0:0" but have no idea how to complete it
How do I do this for all dates in the video?
Kind regards
Or you need to add
4 years, 1 month, 12 days, 23 hours and 16 minutes.
This post (https://exiftool.org/forum/index.php?topic=8861.msg45606#msg45606) gives an example of how to shift all the time stamps in a video file.
To shift forward 13 days, but back 44 minutes, just subtract
13 days - 44 minutes = 12 days, 23 hours, 16 minutes
You would want to use
exiftool "-quicktime:time:all+=4:1:12 23:16:0" /path/to/files
Thanks already
Used a Jpeg instead of video for testing
I get this output.
======== DSCN0011.JPG
Rewriting DSCN0011.JPG...
Editing tags in: QuickTime
JPEG APP1 (33859 bytes):
JPEG APP1 (2044 bytes):
JPEG APP2 (4092 bytes):
JPEG DQT (195 bytes):
JPEG DHT (416 bytes):
JPEG SOF0:
JPEG SOS
Nothing changed in DSCN0011.JPG
0 image files updated
1 image files unchanged
It worked with the Î…AllDates" command
Also worked using this by the way:
exiftool "-AllDates+=0:0:0 36118:47:0" -verbose DSCN0011.JPG
Noticed that the File Create date is not being updated.
It is actually getting set on Current Day and time
Is there any way to avoid this?
I am now using this for MP4 files
exiftool "-quicktime:time:all+=0:0:0 36119:26:00" -verbose *.MP4
Video tags are different from image tags, so a command for one may not work or may produce unexpected results if used on the other. This can often be seen by using AllDates on a video file with an older version of exiftool and importing into Apple Photos. The date will be severely corrupted.
FileCreateDate should not be changed when editing on Windows (can't remember about Mac/Linux). FileModifyDate can be kept unchanged with the -P (-preserve) option (https://exiftool.org/exiftool_pod.html#P--preserve).
You don't need to include 0 year/month/day. By default, time shifts are treated as hours unless there's a number(space)number, i.e. "-quicktime:time:all+=36119:26:00" is fine.