Skip to content
May 7, 2007 / tshrinivasan

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 Comments

Leave a Comment
  1. isabell / Oct 10 2007 3:48 am

    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!

  2. lauxanh / Jun 19 2008 3:42 pm

    This is for linux.

  3. pavan / Sep 15 2008 10:49 am

    hi this is pavan.i want run this vhook from windows can any one help me.

  4. reshmi / Jan 23 2009 9:56 am

    we need to download vhook tool.please suggest us some sites.

    Thank you
    Reshmi and team.

  5. aryan / Mar 10 2012 6:30 am

    i had a ffmpeg srvr how can i watermark the whole gallery i had appx 25000+ vidz with diff formats

    • tshrinivasan / Mar 14 2012 12:27 pm

      Did you read the blog post fully?
      did you ry adding watermark to a single video file?

      if done, we can create a shell script to process all the files and to add watermark.

      • aryan / Mar 14 2012 3:29 pm

        Actually i didnt tried that code can i use it with putty i had shell access in my cpanel. waiting for reply

      • tshrinivasan / Mar 14 2012 3:32 pm

        Hi,

        Shell access with putty is enough.

        check that your server has ffmpeg installed

      • aryan / Mar 14 2012 3:34 pm

        ffmpeg is installed

  6. aryan / Mar 14 2012 3:28 pm

    Actually i didnt tried that code can i use it with putty i had shell access in my cpanel

  7. aryan / Mar 14 2012 3:33 pm

    yes ffmpeg is installed

    • tshrinivasan / Mar 14 2012 3:35 pm

      cool.

      try to add watermark for a single video first

      • aryan / Mar 14 2012 3:38 pm

        ok i will try and will reply the result of that with in few minutes

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

Follow

Get every new post delivered to your Inbox.

Join 825 other followers