[FFmpeg-user] drawtext fadeout or pause X frames then move out of frame?

Víctor Paesa victorpaesa at googlemail.com
Mon Apr 30 20:34:25 CEST 2012


Hi,

On Fri, Apr 27, 2012 at 00:07, Damon Edwards wrote:
> Is there a way to fade out text created with 'drawtext', or let is pause at
> its initial x,y then move off frame after X number of frame?
>
> current sample instructions puts the text in the center:
>
> ffmpeg -i table.mp4 -vf "fade=in:0:30 [xxx]; [xxx]
> drawtext=textfile=txtoverlay:fontfile=FONT_FILE:x=(w-text_w)/2:y=(h-text_h-line_h)/2:fontsize=21:fontcolor=white:shadowy=2"
> overlaid.mp4

FFMpeg has a powerful math expression evaluator:
http://ffmpeg.org/ffmpeg.html#Expression-Evaluation

You may want to use the "if()" and the "gt()" functions in your
expressions to fulfill your needs.

Not sure if using an expression as opacity in fontcolor will allow you
the fade out,
but the move off frame is feasible using expressions in x or y.

Regards,
Víctor


More information about the ffmpeg-user mailing list