My Camera wasnt set up correctly and time was on 2000 Jan 01. How can i offset each file and have the time stored correctly on the video files timestamps? So lets say i calculate the time diference and i find its 26 years + some months + some day etc. How do i go about adding this differential to each file with one click
+ Reply to Thread
Results 1 to 5 of 5
-
-
I did a search for this & exiftool & ffmpeg were suggested.
I'm not sure if they can be used as batch for this.
It also depends on which type timestamp.
The ones that come up in Windows properties ?
Or burned in visible timestamps on the video itself.
I do not know a program that can do this with the second kind of timestamps. -
If you want to change both use ffmpeg first.
If you want to change the metadata that MediaInfo detects with ffmpeg then:
I'm not good with script to do batch files but with this ffmpeg code you or someone should be able to.Code:ffmpeg -i input.mp4 -c copy -metadata creation_time=2012-12-17T21:30:00Z output.mp4
This tool should do what you want:
https://www.nirsoft.net/utils/bulk_file_changer.html
The above program is supposed to do batch or bulk but I only tested with one video file.Last edited by cholla; 21st Oct 2026 at 17:05.
-
exiftool can do the whole batch with a fixed offset in one command, so you don't need to set each file's date by hand. The shift syntax is "+=Y:M
h:m
". For example, to add 26 years, 3 months and 14 days to every MP4/MOV in a folder:
exiftool -api QuickTimeUTC "-QuickTime:CreateDate+=26:3:14 0:0:0" "-QuickTime:ModifyDate+=26:3:14 0:0:0" "-QuickTime:TrackCreateDate+=26:3:14 0:0:0" "-QuickTime:TrackModifyDate+=26:3:14 0:0:0" "-QuickTime:MediaCreateDate+=26:3:14 0:0:0" "-QuickTime:MediaModifyDate+=26:3:14 0:0:0" -ext mp4 -ext mov "D:\Videos\Camera"
Then copy the corrected date into the Windows file dates, which is what Explorer's "Date created" and "Date modified" columns show:
exiftool -api QuickTimeUTC "-FileCreateDate<QuickTime:CreateDate" "-FileModifyDate<QuickTime:CreateDate" -ext mp4 -ext mov "D:\Videos\Camera"
A few things to watch:
- Work out the exact offset from one clip whose real date and time you know, and put the hours and minutes in too if they're off.
- QuickTime dates are supposed to be stored in UTC. -api QuickTimeUTC makes exiftool convert to your local time. If the result is off by your time-zone offset, run it again without that option.
- exiftool keeps a backup of each file as *_original. Check a few clips first, then delete the backups or add -overwrite_original next time.
- If the camera wrote AVCHD .MTS files, exiftool can't write those. Remux them to MP4 first, or just fix the file dates with Bulk File Changer as cholla suggested.
Similar Threads
-
.mp4 files with different metadata
By awbowden in forum Newbie / General discussionsReplies: 6Last Post: 28th Feb 2025, 08:35 -
How do I get split video files to be renamed based on time length?
By Dolphine in forum Newbie / General discussionsReplies: 22Last Post: 6th Mar 2024, 12:57 -
Metadata for MKV files does not appear in Windows Explorer
By naoto89 in forum Software PlayingReplies: 6Last Post: 27th Oct 2023, 16:12 -
YouTube Channel Bulk Video Download
By takistexas in forum Video Streaming DownloadingReplies: 2Last Post: 13th Aug 2023, 08:21 -
Edit Metadata tag to add "maximum bit rate" for MKV file
By kalemvar1 in forum Video ConversionReplies: 2Last Post: 14th Feb 2023, 17:12



Quote