you can do this with ffmpeg:
ffmpeg -i input.mp4 -vf drawtext="fontfile=/path/to/font.ttf: \
text='Black Hat World': fontcolor=white: fontsize=24: box=1:
[email protected]: \
boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy output.mp4
to use at a specific time:
-vf...