Infinite Video Loop in Ffmpeg? Is there a way to infinitely loop a video in ffmpeg for a livestream? I've been looking around and can see it was possible to use "loop 1" but it appears that is no longer working.

This is what I'm currently using, but as you can see, it is not infinitely looping and entering a ridiculously high number is not an option for me due to 32-bit integer limitations:

ffmpeg -re -f concat -i &lt;(for i in {1..10000}; do printf "file '%s'\n" /root/file.flv; done) -codec copy -f flv rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx
Use

ffmpeg -re -stream_loop -1 -i file.flv -c copy -f flv rtmp://x.y.z


This option is buggy when the input it is applied to is filtered with another input, like in an overlay. For a single input - output chain, it works fine.