My abstract example(it doesn't work).
ffmpeg -i video.mp4 -filter_complex "loop=20:1:1;loop=20:1:100" -y output.mp4
Thanks.