Add text to a video with FFmpeg

ffmpeg ^
-ss 00:00:15 -t 5 ^
-i input.mkv ^
-vf drawtext="fontfile=C\\:/Windows/Fonts/arial.ttf:^
fontsize=100:^
fontcolor=white:^
box=1:^
boxcolor=black@0.8:^
x=(w-text_w)/2:^
y=(h-text_h)/2:^
text='This is some text right here...'" ^
output.mkv

This command has been made simpler to read by breaking the long command into multiple lines. If you use this command you should remove all ^-symbols so that everything is displayed in one line. Also don’t miss the spaces in there.

You can also make the text with a little better position and padding like this:

ffmpeg ^
-ss 00:00:15 ^
-t 5 ^
-i input.mkv ^
-vf drawtext="fontfile=C\\:^
/Windows/Fonts/arial.ttf:^
fontsize=100:^
fontcolor=white:^
box=1:^
boxcolor=black@0.8:^
x=w-tw-100:^
y=100:^
text='This is some text right here...'" output.mkv

Sources:

https://superuser.com/questions/939357/ffmpeg-watermark-on-bottom-right-corner