Search code examples
ffmpegmilliseconds

How to use milliseconds in FFmpeg's drawText?


How can I use milliseconds to define the placement of text?

drawtext=fontfile=font/arial.ttf:text='Test':enable='between(t,1,5)'

Currently, I only have the option of seconds using the enable command.


Solution

  • you can use "between(n, start_frame, end_frame)" instead, start_frame = start_time * r, end_frame = end_time * r;