[FFmpeg-user] Question: how i can overlay an input with current date and time?

William C Bonner wbonner at wimsworld.com
Tue Oct 11 01:04:59 EEST 2022


On Sun, Oct 9, 2022 at 12:59 PM <info at mbsoft.biz> wrote:

> how i can overlay an input with current date and time?
>
>
I use drawtext when I create videos from time lapse photos using this
command:

ffmpeg.exe -hide_banner -r 30 -i
C:\Users\Wim\Videos\20221009-PSSC\Wim%05d.JPG -vf
crop=in_w:9/16*in_w,drawtext=fontfile=C\\:/WINDOWS/Fonts/consola.ttf:fontcolor=white:fontsize=main_h/16:y=main_h-text_h-50:x=main_w-text_w-50:text=WimsWorld,drawtext=fontfile=C\\:/WINDOWS/Fonts/consola.ttf:fontcolor=white:fontsize=main_h/16:y=main_h-text_h-50:x=50:text=%{metadata\\:DateTimeOriginal}
-c:v libx265 -crf 23 -preset veryfast -s 3840x2160 -movflags +faststart -bf
2 -g 15 -pix_fmt yuv420p -n
C:\Users\Wim\Videos\20221009-PSSC-2160p30-cropped.mp4

It puts the date of the original photo in the bottom left of the video as a
running time code.


More information about the ffmpeg-user mailing list