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.





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!
This is for linux.
hi this is pavan.i want run this vhook from windows can any one help me.
we need to download vhook tool.please suggest us some sites.
Thank you
Reshmi and team.
i had a ffmpeg srvr how can i watermark the whole gallery i had appx 25000+ vidz with diff formats
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.
Actually i didnt tried that code can i use it with putty i had shell access in my cpanel. waiting for reply
Hi,
Shell access with putty is enough.
check that your server has ffmpeg installed
ffmpeg is installed
Actually i didnt tried that code can i use it with putty i had shell access in my cpanel
yes ffmpeg is installed
cool.
try to add watermark for a single video first
ok i will try and will reply the result of that with in few minutes