[FFmpeg-user] FFMPEG Fade In Watermark Only

Dale Zak dalezak at gmail.com
Tue Apr 16 19:32:11 CEST 2013

Dear FFMPEG users, 

I'm trying to watermark a video using FFMPEG and would only like the watermark to fade in.

The following code adds the watermark however the fade in effect is applied to the entire video and not just the watermark.

ffmpeg -loop 1 -t 3 -i background.png -i silence.mp3 -shortest -s 640x360 -vf "movie=watermark.png [watermark]; [in] [watermark] overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2,fade=in:0:30 [out]" -y output.mpg 

The problem is my video clips have a white background so would like to maintain the white across all clips.

I've searched online but have been unable to find a good example on how to apply the fade in only to the overlay.

I posted the question on SuperUser http://superuser.com/questions/567059/ffmpeg-fade-in-watermark-only but unfortunately have been unable to find a solution.

Any help regarding this issue would be greatly appreciated.


More information about the ffmpeg-user mailing list