ffmpeg enable between

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

ffmpeg enable between

FFmpeg-users mailing list

I'm trying to draw text in a horizontal line and I want only Text1 for the first 5 seconds, and then Text2 starting from 5 seconds to 20 seconds, and Text3 starting from 10 seconds till the end.

When I do this, my first text stays for about 15 seconds and the last two show up in the last 4 seconds of the video. Is there something wrong with my instruction? Am I using the enable between correctly?

ffmpeg -i input.mp4 -vf "drawtext=fontfile='C:\arial.ttf':text='Text1':x=5:y=20+24-max_glyph_a:fontsize=24:fontcolor=yellow:box=1:boxcolor=black@0.5:boxborderw=5:enable='between(t,0,20)', drawtext=fontfile='C:\arial.ttf':text='Text2':x=100:y=20+24-max_glyph_a:fontsize=24:fontcolor=yellow:enable='between(t,5,20)', drawtext=fontfile='C:\arial.ttf':text='Text3':x=200:y=20+24-max_glyph_a:fontsize=24:fontcolor=yellow:enable='between(t,10,20)'" output.mp4

 Enviado de forma segura com Tutanota. Crie sua conta de e-mail encriptada, livre de anĂșncios:
ffmpeg-user mailing list
[hidden email]

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".