[FFmpeg-user] FFMPEG Fade In Watermark Only

Paul B Mahol onemda at gmail.com
Sat Apr 20 13:40:50 CEST 2013


On 4/16/13, Dale Zak <dalezak at gmail.com> wrote:
> 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

I could do it, by applying fade prior to overlay.

>
> 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.
>
> Cheers,
> Dale
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list