Question / Help RTMP-Source Reconnect on connection loss

XiLENCE

New Member
Hello guys,
I'm currently setting up my Livestreaming solution for a live motorcycle stream.
I set up Nginx with the RTMP-Module compiled and it works pretty good.
However, when I use the media source in OBS and the stream from my camera on the motorcycle to my RTMP-Server, which the media source consumes, the media source will not try to reconnect.

How can I solve this? I currently worked around this issue by writing my own Batch file, which will start mpv player when the stream starts and use this as a game-source in OBS. When the connection is lost, my Batch file will continue to connect to the stream every 2 seconds and then opens mpv player again.

But how can I use this more conveniently without a hacky batch file? There must be a reliable option for this..
 
Top