[FFmpeg-user] Could ffmpeg add fade effect for watermarkpicture?

Nemo 377307289 at qq.com
Mon May 25 08:50:10 CEST 2015

It's very helpful. thanks a lot!

------------------ Original ------------------
From:  "Moritz Barsnick";<barsnick at gmx.net>;
Date:  Thu, May 21, 2015 05:23 PM
To:  "FFmpeg user discussions"<ffmpeg-user at ffmpeg.org>; 

Subject:  Re: [FFmpeg-user] Could ffmpeg add fade effect for watermarkpicture?

On Thu, May 21, 2015 at 10:59:06 +0800, Nemo wrote:
> I means, increase or reduce the watermark transparency.
> Thanks a lot.

Let me google that for you.

This shows some way how to do it, keywords to read are timeline editing
and fade filter:


I believe this answer in that thread should give you a good solution:
I one elegant step, using "-loop 1" to make a pseudo video from the
overlay image, and using the fade filter in a "-filter_complex" chain
to mainpulate the overlay.

In other words:
$ ffmpeg -i inputvideo loop 1 -i watermark.png -c:a copy -filter_complex "[1:v]fade=in:st=0:d=0.5,fade=out:st=30:d=0.5[watermark]; [0:v][watermark]overlay=10:main_h-overlay_h-10" outputvideo

ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

More information about the ffmpeg-user mailing list