Does -stream_loop 3 play the video 3 times or 4?
Four. The number counts the extra passes after the first one. On the test clip -stream_loop 3 gave 384 frames, four times the clip's 96.
-stream_loop -1 loops forever, so always pair it with something that ends the output: -t for a length, or -shortest and a second input that has an end. It is an input option, so it goes before the -i it applies to.



