Question / Help Reconnecting to RTMP Media Source after it has stopped?

starofviolence

New Member
Hello, I have an RTMP stream set up as a Media Source in OBS Studio, and I was wondering if there is a way to have it reconnect to that stream automatically if it cuts out and comes back? At the moment, it will start fine the first time, and it will cut out and hide upon stopping (so far, behavior I desire), but if that stream restarts, the source does not start again.

I noticed what looks like a related message in the log:

02:01:15.506: [Media Source 'RTMP_1']: settings:
02:01:15.506: input: [rtmp://my_server_address/goes_here]
02:01:15.506: input_format:
02:01:15.506: is_looping: no
02:01:15.506: is_forcing_scale: yes
02:01:15.506: is_hw_decoding: yes
02:01:15.506: is_clear_on_media_end: yes
02:01:15.506: restart_on_activate: yes
02:01:15.507: warning: unable to find input format
02:01:16.136: warning: video stream discovered after head already parsed

In particular, the last two lines seem to be the stream disconnecting, and then unsuccessfully trying to reconnect.

Thanks for the help!
 

Nokternl

New Member
Sorry to bring up this old thread, but as far as I can tell, this has still not been fixed :( Only thing stopping me moving from XSplit to OBS :/
 

Therealbeef

New Member
I found a partial work around which may help a few of you.

If you are losing the RTMP feed when switching between scenes rather than the RTMP feed actually going down from the source, this will work.


Make sure the RTMP media source is in every scene you are switching between, even if it is pulled off to the side off camera. It appears that doing this will keep the stream going and prevent a restart of its capture when returning to the scene you want to view it in. Its the re-capturing of the feed that is bugged out, so avoiding a recapture is the way to work around this.

Hope that helps someone. Took me 3 months to figure this out.
 
Top