

Automatically make list.txt in Linux/macOS If you want to add additional inputs make sure they all have the same attributes. Then run ffmpeg: ffmpeg -f concat -i list.txt -c copy output.mp4 Contents of an example text file to repeat 4 times.

The concat demuxer allows you to loop an input without needing to re-encode because it can use stream copy. This may not work with anything older than FFmpeg 4.0.

0 means no loop, -1 means infinite loop.This can avoid re-encoding because it can use stream copy.stream_loop option ffmpeg -stream_loop 3 -i input.mp4 -c copy output.mp4
