My server restreams RTMP servers to HLS. Sometimes a RTMP server is offline. What happens is that the stream goes black and nobody is able to connect to it.
I currently have an video file of 30 seconds with the text "The server is currently unavailable." and some fading background images. I'd like to use this as fallback video.
I already read this: blog.wmspanel.com/2014/10/rtmp-pull-balancing-fallback.html
I know how to use a fallback stream but I don't know how to stream a video continuously to Nimble.
I tried ffmpeg with stream_loop -1 but this stops after one loop.
Can you give me some advice on how to stream a video file continuously to Nimble?
stream_loop is supported by FFMPEG starting from version 2.8.2, however there is another approach for older versions.
Please check this answer: http://video.stackexchange.com/questions/12905/repeat-loop-input-video-with-ffmpeg
something like this:
ffmpeg -re -f concat -i "loop.txt" -c copy -f flv "rtmp://IP-nimble/live?rtmpauth=username:password/teststream"
With "server-side-task-control" of wmspanel
You can run the command over and over again.
I use JWplayer with two short error video messages.
live stream is not started yet and the live stream is broken please wait.
Thank you both for answering!
I tried stream_loop with version 2.8.3 and git version g2dba040.
Both versions jumped to 1 minute after playing 30 seconds of video and stopped then.
I'm now using ffmpeg with a loop. It's far from perfect but I couldn't find a better way.
Here are my files: pastebin.com/tYnSq1af
Thank you for the help,
Do you make any progress? I have seen your scripts.
I'm not very familiar with making Bash scripts.
But is your authentication to Nimble streamer right?
I like the way you trie to make a fallback with a secondaire rtmp stream, with the rtmp pull functionality of Nimble.
I will try it that way too for our live events, I think.
Only you have to start and stop the second stream manualy.
Otherwise the people will see the error message before and after the live event.
I prefer "server-side-task-control" for starting and repeating the second stream
and required to achieve the purposes illustrated in the
If you want to know more or withdraw your consent to all or some of the cookies, please
refer to the