FFmpeg 6.0.1
Since* 3.1
#

Loop video frames.

The filter accepts the following options:

loop

Set the number of loops. Setting this value to -1 will result in infinite loops. Default is 0.

size

Set maximal size in number of frames. Default is 0.

start

Set first frame of loop. Default is 0.

#

Examples

  • Loop single first frame infinitely:

    loop=loop=-1:size=1:start=0
  • Loop single first frame 10 times:

    loop=loop=10:size=1:start=0
  • Loop 10 first frames 5 times:

    loop=loop=5:size=10:start=0