# Repeat/loop Input Video with ffmpeg?
# 1. Make a text file. Contents of an example text file to repeat 4 times. Then run ffmpeg.
$ cat list.txt
file 'input.mp4'
file 'input.mp4'
file 'input.mp4'
file 'input.mp4'
$ ffmpeg -f concat -i list.txt -c copy output.mp4
# 2. This example is the same as above but you don't have to manually make list.txt
$ for i in {1..4}; do printf "file '%s'\n" input.mp4 >> list.txt; done
$ ffmpeg -f concat -i list.txt -c copy output.mp4
# 3
$ ffmpeg -f concat -i <(for i in {1..4}; do printf "file '%s'\n" input.mp4; done) -c copy output.mp4
# http://video.stackexchange.com/questions/12905/repeat-loop-input-video-with-ffmpeg