whytheheckme
New Member
Hello,
FWIW, I tried this on the Mac version of OBS with the same result.
I'm trying to take in an RTMP source using Media Source into a scene, and when the RTMP source goes down, show a static image behind it. When the RTMP source comes back up, I want it to resume playing over the static image.
When configuring "Media Source" for my RTMP feed in OBS (let's call this OBS-overlay), I check both the "Hide source when playback ends" box and the "Restart playback when source becomes active" box. My RTMP source is an nginx/rtmp server, being fed by another instance of OBS (lets call this OBS-playback) (running either on the same machine or a different, same result.)
With only the "live on" option selected in my nginx server with the above Media Source configuration, when I cut the RTMP source (stop the streaming OBS-playback), the feed in OBS-overlay freezes and does not hide. However, when I resume the RTMP source (OBS-playback), the video on the Media Source on OBS-overlay does resume correctly.
With the option "publish_notify on" enabled on the nginx RTMP server, I get different results. When the playback is stopped on OBS-playback, the Media Source on OBS-overlay does indeed hide - however, when I resume the OBS-playback stream, the Media Source on OBS-overlay does not resume. The only way to get it to reliably resume is to open the Media Source options and press OK, which I assume restarts the source. Maybe switching Scenes would work too, haven't played around with this.
I can't seem to get both Media Source options working simultaneously. I've also tried adding all combinations of "play_restart on" , "idle_streams off" and "publish_notify on" - to no avail. Having any one of these present produces the conditions in the second example above (where Hide works but Restart does not.)
Does anyone have any suggestions on what to do to remedy this?
Thank you,
~whytheheckme
FWIW, I tried this on the Mac version of OBS with the same result.
I'm trying to take in an RTMP source using Media Source into a scene, and when the RTMP source goes down, show a static image behind it. When the RTMP source comes back up, I want it to resume playing over the static image.
When configuring "Media Source" for my RTMP feed in OBS (let's call this OBS-overlay), I check both the "Hide source when playback ends" box and the "Restart playback when source becomes active" box. My RTMP source is an nginx/rtmp server, being fed by another instance of OBS (lets call this OBS-playback) (running either on the same machine or a different, same result.)
With only the "live on" option selected in my nginx server with the above Media Source configuration, when I cut the RTMP source (stop the streaming OBS-playback), the feed in OBS-overlay freezes and does not hide. However, when I resume the RTMP source (OBS-playback), the video on the Media Source on OBS-overlay does resume correctly.
With the option "publish_notify on" enabled on the nginx RTMP server, I get different results. When the playback is stopped on OBS-playback, the Media Source on OBS-overlay does indeed hide - however, when I resume the OBS-playback stream, the Media Source on OBS-overlay does not resume. The only way to get it to reliably resume is to open the Media Source options and press OK, which I assume restarts the source. Maybe switching Scenes would work too, haven't played around with this.
I can't seem to get both Media Source options working simultaneously. I've also tried adding all combinations of "play_restart on" , "idle_streams off" and "publish_notify on" - to no avail. Having any one of these present produces the conditions in the second example above (where Hide works but Restart does not.)
Does anyone have any suggestions on what to do to remedy this?
Thank you,
~whytheheckme