Bug Report Adding non-local Media Source in Studio Mode is broken

execut4ble

New Member
Hey, so I found this bug in OBS Studio's studio mode.

When the studio mode is active, adding a non-local media source (for example an RTMP stream) is broken. The source doesn't load at all, while doing the exact same thing in default mode works just how it should.

I made a short video showcasing the bug, if that helps.


And no, it's not Beam.pro's fault. I've tried importing a hitbox.tv stream later (and they don't use RTMP for that), but I couldn't get it to work the exact same way while studio mode was active.

Kinda sucks because you can't set up your scenes that have such media sources in the background while you're livestreaming some other scene.

Code:
18:47:55.486: ==== Recording Start ===============================================
18:47:55.486: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/OBS/2016-08-14_18-47-55.mp4'...
18:48:03.511: [Media Source 'RTMP stream']: settings:
18:48:03.511:     input:                  
18:48:03.511:     input_format:            (null)
18:48:03.511:     is_looping:              no
18:48:03.511:     is_forcing_scale:        yes
18:48:03.511:     is_hw_decoding:          yes
18:48:03.511:     is_clear_on_media_end:   yes
18:48:03.511:     restart_on_activate:     yes
18:48:03.512: User added source 'RTMP stream' (ffmpeg_source) to scene 'Scene'
18:48:09.911: [Media Source 'RTMP stream']: settings:
18:48:09.911:     input:                   rtmp://dist2-rtmp.beam.pro:1935/beam/975_source.mp4
18:48:09.911:     input_format:            
18:48:09.911:     is_looping:              no
18:48:09.911:     is_forcing_scale:        yes
18:48:09.911:     is_hw_decoding:          yes
18:48:09.911:     is_clear_on_media_end:   yes
18:48:09.911:     restart_on_activate:     yes
18:48:11.564: adding 42 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
18:48:25.947: User Removed source 'RTMP stream' (ffmpeg_source) from scene 'Scene'
18:48:27.761: Switched to Preview/Program mode
18:48:27.761: ------------------------------------------------
18:48:34.293: [Media Source 'RTMP stream']: settings:
18:48:34.293:     input:                  
18:48:34.293:     input_format:            (null)
18:48:34.293:     is_looping:              no
18:48:34.293:     is_forcing_scale:        yes
18:48:34.293:     is_hw_decoding:          yes
18:48:34.293:     is_clear_on_media_end:   yes
18:48:34.293:     restart_on_activate:     yes
18:48:34.294: User added source 'RTMP stream' (ffmpeg_source) to scene 'Scene'
18:48:38.795: [Media Source 'RTMP stream']: settings:
18:48:38.795:     input:                   rtmp://dist2-rtmp.beam.pro:1935/beam/975_source.mp4
18:48:38.795:     input_format:            
18:48:38.795:     is_looping:              no
18:48:38.795:     is_forcing_scale:        yes
18:48:38.795:     is_hw_decoding:          yes
18:48:38.795:     is_clear_on_media_end:   yes
18:48:38.795:     restart_on_activate:     yes
18:48:50.192: User switched to scene 'Scene'
18:48:50.193: Switched to regular Preview mode
18:48:50.193: ------------------------------------------------
18:48:54.652: Switched to Preview/Program mode
18:48:54.652: ------------------------------------------------
18:49:03.236: User switched to scene 'Scene'
18:49:03.236: Switched to regular Preview mode
18:49:03.236: ------------------------------------------------
18:49:04.268: Switched to Preview/Program mode
18:49:04.268: ------------------------------------------------
18:49:07.417: User Removed source 'RTMP stream' (ffmpeg_source) from scene 'Scene'
18:49:12.290: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/OBS/2016-08-14_18-47-55.mp4' stopped
 
It is not a bug, if you activate "Restart playback when source becomes active" the source will only play the video when the source is active. Maybe it is a bit misslabeled. The preview scene in studio mode is not considered active. A scene is only active when it is streamed or recorded.
 
I see. I tested it and it works now.

But yeah it's definitely misslabeled in my opinion, I would've never guessed this setting had anything to do with that. It sounded like it'd just restart the source if it for example crashed and came back up again, nothing to do with the inactive scenes.

Either way, thanks!
 
Sorry to revive a dead thread, but I still have this problem, and the documented solution does not work for me.

I've tried deactivating "Restart playback when source becomes active" which leads to an occasional problem with one of my wireless cameras dropping out and never resuming. But with that checkbox unchecked, I can't see the camera in preview mode.

OBS team: The "preview" window in Studio Mode should definitely be considered "active." The current behavior is basically the equivalent of a TV studio not having any preview monitors and having to "guess" whether they have a good shot before switching cameras.

Is there any other solution to this problem?
 
Back
Top