Browser FFmpeg recipe

Add Text to Video Online with FFmpeg

Render a text label near the top-left corner of the video.

Command

Run this FFmpeg command

ffmpeg -i input.mp4 -vf drawtext=text=Hello:fontcolor=white:fontsize=48:x=40:y=40 -c:a copy text-video.mp4

When to use it

  • simple labels
  • watermark text
  • caption drafts

How it works

  1. Upload the video.
  2. Change the drawtext text and position values.
  3. Run FFmpeg and download the labeled video.

Option reference

OptionWhat it does
drawtext=text=HelloAdds the visible text string.
fontsize=48Sets the text size.
x=40:y=40Positions the text from the left and top edges.

Practical notes

  • Use underscores or escaped characters if your text contains spaces.
  • Drawtext availability depends on the FFmpeg build running in the browser.

FAQ

Can I place text at the bottom?

Yes. Change y to h-th-40 for a bottom offset.

Does adding text re-encode video?

Yes, drawing text changes frames and requires video encoding.