[FFmpeg-user] Watermark image, fade in and out.

Dennis mediastream at gmail.com
Tue Aug 27 21:42:28 CEST 2013

On Mon, Aug 26, 2013 at 6:46 PM, Dennis <mediastream at gmail.com> wrote:

> Is there a way to display watermark for ten seconds then fade it out?
> So far this works for me, but if I add fade out it fades out the whole
> image not just the watermark  -- but if I add duration it removes the
> watermark after 10 sec. Not sure how command is defined as global versus
> localized to watermark only.
> Shows logo for 10 sec.
> ffmpeg2 -i big_buck_bunny_1080p_h264.mov -i logo1.png -filter_complex
> 'overlay=100:main_h-overlay_h-200:enable=lte(t\,10)'  -t 20 1.mp4
> Shows logo for 10 sec then fades out the whole screen with logo, so its
> 1/2 working (:
> ffmpeg2 -i big_buck_bunny_1080p_h264.mov -i logo1.png -filter_complex
> 'overlay=100:main_h-overlay_h-200:enable=lte(t\,10),fade=out:0:300:alpha=1'
> -t 20 1.mp4

This works with 1 sec fade in, 10 sec solid overlay, 1 sec fade out:

ffmpeg -loop 1 -i logo1.png -frames:v 300 -vf
'fade=in:0:25,fade=out:275:25' -pix_fmt rgba -vcodec png LOGO.MOV
ffmpeg -i bbb.ts -vf "movie=LOGO.MOV [watermark]; [in] [watermark]
overlay=100:main_h-overlay_h-200 [out]" OUT.MP4

More information about the ffmpeg-user mailing list