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

info at mbsoft.biz info at mbsoft.biz
Tue Oct 11 02:50:01 EEST 2022


It's a mess the way ffmpeg handle the paths on windows ... for inputs it use
the standard way drive:\folder\file but for filters it use that
drive:\\:/folder/file .... it's illogical to me!

At least documentation should be more specific for windows users that are
the majority

-----Messaggio originale-----
Da: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> Per conto di William C
Bonner
Inviato: martedì 11 ottobre 2022 00:05
A: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Oggetto: Re: [FFmpeg-user] Question: how i can overlay an input with current
date and time?

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:fontcol
or=white:fontsize=main_h/16:y=main_h-text_h-50:x=main_w-text_w-50:text=WimsW
orld,drawtext=fontfile=C\\:/WINDOWS/Fonts/consola.ttf:fontcolor=white:fontsi
ze=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.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org
with subject "unsubscribe".



More information about the ffmpeg-user mailing list