Given a file input.mp4, how can I use ffmpeg to stream it in a loop to some rtp://xxx:port?
I was able to do something similar for procedurally generated audio based on the ffmpeg streaming guides, but I was unable to find a video example:
ffmpeg -re -f lavfi -i aevalsrc="sin(400*2*PI*t)" -ar 44100 -f mulaw -f rtp rtp://xxx:port
You could try this:
ffmpeg -re -fflags +genpts -stream_loop -1 -i input.mp4 -f rtp rtp://xxx:port
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With