Watermark videos with ffmpeg

ffmpeg is a wonderful tool which can do a lot of video and audio manipulations in the command line itself.

It can do more kind of media conversions.
It supports mostly all video and audio codecs.

Here is the command to add a watermark text on a video using ffmpeg. Give the command in a single line.

ffmpeg -i /tmp/clip.mp4
  -vhook “/usr/lib/vhook/drawtext.so
    -f /usr/share/fonts/corefonts/comic.ttf -x 5 -y 5
    -t ThisIsATest.com”
/tmp/out.avi

note:
The font folder location may be different for different distros.
Mostly it is “/usr/share/fonts” only.
Choose a desired font.

Here is “ThisIsATest.com” is added as watermark in the video.

Give your desired text on the command.

Great ffmpeg.

Powered by ScribeFire.

About these ads

13 thoughts on “Watermark videos with ffmpeg

  1. I simply download ffmpeg.exe and it works well except watermarking. How can i make watermark without the vhook component? PS: I use Windows sever 2003. thanks very much!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s