3/18/2026

Add custom text watermarks. Control position, font, size, color, and transparency.

How to Add Text Watermark

Protect your videos with custom text watermarks.

Basic Command

ffmpeg -i input.mp4 -vf "drawtext=text='MyBrand':fontcolor=white:fontsize=24:x=10:y=10" output.mp4

White text at top-left corner (10,10).

Full Options

ffmpeg -i input.mp4 -vf "drawtext=text='MyBrand':[email protected]:fontsize=36:x=10:y=10:borderw=2:bordercolor=black" output.mp4
  • [email protected]: White with 50% opacity
  • fontsize=36: Text size
  • borderw=2: Border width
  • bordercolor=black: Border color

Position Anywhere

Bottom Right

x=main_w-text_w-10:y=main_h-text_h-10

Center

x=(main_w-text_w)/2:y=(main_h-text_h)/2

Top Right

x=main_w-text_w-10:y=10

Chinese Text

ffmpeg -i input.mp4 -vf "drawtext=text='水印':fontfile=/path/to/chinese.ttf:fontcolor=white:fontsize=30:x=10:y=10" output.mp4

Use a font that supports Chinese characters.

Quick Reference

# Simple
ffmpeg -i in.mp4 -vf "drawtext=text='Brand':fontcolor=white:fontsize=24:x=10:y=10" out.mp4

# With border
ffmpeg -i in.mp4 -vf "drawtext=text='Brand':fontcolor=white:fontsize=24:x=10:y=10:borderw=2:bordercolor=black" out.mp4

# Semi-transparent
ffmpeg -i in.mp4 -vf "drawtext=text='Brand':[email protected]:fontsize=24:x=10:y=10" out.mp4

# Bottom-right
ffmpeg -i in.mp4 -vf "drawtext=text='Brand':fontcolor=white:fontsize=24:x=w-tw-10:y=h-th-10" out.mp4

Protect your content!