moving text in video with ffmpeg always 3 minute

I have a problem. I have found a tutorial on how to add text in videos using ffmpeg. but I want every 3 minute. I get the script only 10 second 1 time. I want 3 minute 1 time.

my script:

ffmpeg -i input.mp4 -filter:v drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text='Hello World':fontcolor=white@1.0:fontsize=16:y=h-line_h-100:x=w/10*mod(t\,10):enable=gt(mod(t\,20)\,10)" -codec:v libx264 -codec:a copy -y output.mp4

source of : here

help me setting always 3 minute and speed text 10 second

please ask for an explanation from each script above and please help so that every 1 minute the text appears

thank you

1

1 Answer

Try this:

enable='gt(mod(t,60),57)'

This means: every 57 seconds for 3 seconds.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like