Caner Bulut – R & D notes

Image overlaying on a video file with FFMpeg

Posted in Image Processing by canerblt on July 10, 2011

To add a logo/image  on a video file you need FFMpeg with vhook lib. New versions of FFMpeg cut the support for this lib. So you should find older FFMpeg versions with vhook DLL files. There are two DLL files under vhook directory which can be used for image overlaying. Watermark.dll and Imlib2.dll.

The below command can be run on CMD or CLI,

ffmpeg -i son.flv -vhook “imlib2.dll -x 10 -y 10 -i arge.png”  b1.flv

The arge.png file will be cordinated with x and y values on video. The son.flv video file will be converted wiht image overlaying to b1.flv vide file.

Thanks.

Advertisement

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.