user17105: I'd like to overlay a png onto a video at a certain timestamp and have the video pause (loop) on that frame for X seconds with the overlay.  What would be the best method to accomplish this?

user1871: Let's call the video frame rate F. And the start time of the overlay t
Use
ffmpeg -i in.mp4 -i ol.png -filter_complex
         "[0]trim=0:t,loop=X*F:1:t*F,setpts=N/FRAME_RATE/TB[fol];
          [0]trim=t,setpts=N/FRAME_RATE/TB[post]
          [fol][1]overlay[pre];[pre][post]concat" out.mp4

The loop filter accepts frame index numbers, so you have to convert your start time and loop time to frame counts and substitute with those values.

17105: <p>I'd like to overlay a png onto a video at a certain timestamp and have the video pause (loop) on that frame for X seconds with the overlay.  What would be the best method to accomplish this?</p>
 1871: <p>Let's call the video frame rate <code>F</code>. And the start time of the overlay <code>t</code></p>

<p>Use</p>

<pre><code>ffmpeg -i in.mp4 -i ol.png -filter_complex
         "[0]trim=0:t,loop=X*F:1:t*F,setpts=N/FRAME_RATE/TB[fol];
          [0]trim=t,setpts=N/FRAME_RATE/TB[post]
          [fol][1]overlay[pre];[pre][post]concat" out.mp4
</code></pre>

<p>The loop filter accepts frame index numbers, so you have to convert your start time and loop time to frame counts and substitute with those values.</p>
