ffmpeg -stream_loop -1 -re -i clip.mp4 -c copy -f flv rtmp://live.example.com/app/key

Category: Media & Conversion

ffmpeg -stream_loop -1 -re -i clip.mp4 -c copy -f flv rtmp://live.example.com/app/key

Stream a clip on repeat to an RTMP server

Streams a short clip on repeat by looping the input with -stream_loop -1. Combined with -re, the loop plays at real-time speed for an endless live stream. Useful for 24/7 test streams, and you stop it with Ctrl-C.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.