I use Kdenlive to create timelapse videos captured by cameras recording at normal speed.
I’m struggling to add real-world date/time overlays to my projects so my audience knows what time it was, at the time of recording, when they see something of interest.
For example, I combine 2 video files spanning 3 hours each. I know exactly what time each video starts and stops at. I want to increase the playback speed by of each clip by 2500x and I want to display the time of day, at the time of recording, in the corner, also at 2500x speed.
e.g.
File 1 Start: July 7, 2023 6:00am File 1 Stop: July 7, 2023 9:00am
File 2 Start: July 7, 2023 9:00am File 2 Stop: July 7, 2023 12:00pm
I’m striking-out with both dynamic text and counters.
Does anyone have any suggestions for achieving this effect?
Was hoping for a stamp format something like this: m/d/yyyy h:mm:ss
I added the timer effect, then changed the clip speed, but I’m afraid the timer values didn’t scale with speed.
I also don’t see a formatting option for date, either, just these:
HH:MM:SS
HH;MM:SS.S
MM:SS
MM:SS.SS
MM:SS.SSS
SS
SS.S
SS.SS
SS.SSS
I’m open to FFMPEG command-line suggestions, too. The drawtext functions seem as powerful as they are cryptic. Might need to marinate those in alcohol before they sink in.
Still hope the Kdenlive gui can bail me out.
For clarity, this is the effect I’m aiming to achieve:
localtime: use local time zone instead of GMT time
1689362040: this is my begining overlay timestamp converted into Unix epoch format; in my case I wanted the text overlay to start at Friday, July 14, 2023 12:14:00 PM, which is 1689362040; use a Unix epoch converter to switch from human to Unix timestamps.
%d: day of month
%B: spelled-out month
%Y: 4-digit year
%I: hour (12hr clock)
%M: minute
%S: second
%p: AM/PM stamp
setpts=PTS/10: increases speed of video, in this case 10x
scale=1920x1080: resizes output video resolution
-vcodec libx264: encode using the libx264 library
-crf 28: sets output quality (23 is defauly, 0 is lossless, 51 is lowest quality)
From the “awful hacks, but entirely within kdenlive” dept:
You should be able to create a ‘dummy clip’, like a colour clip or similar, of the duration you want to run the timer for, then apply the timer to that and render it (at normal speed). You can then overlay that rendered clip, and speed it up, slow it down, or time remap it in the same way you do for the video of interest.