willis_007
New Member
Hello everybody :),
For those who like to take up challenges, I offer you one :).
I have a whole OBS project that contains several scenes. Each of these scenes broadcasts different video streams from several cameras (via the 'Source video VLC' source and the RTSP protocol). For example :
Scene 1: mosaic of cameras 1, 2 and 3
Scene 2: mosaic of cameras 4, 5 and 6
Scene 3: mosaic of cameras 7, 8 and 9
And to avoid an explosion of cpu resource usage, of course I enable the option 'Stop when playback is not visible, restart when visible'. Otherwise, although my computer is powerful enough and I use the decoding of my very good graphic card, the cpu resources would increase to 95%, which of course is very problematic.
So.
Nothing very complicated so far you will tell me, and indeed everything works well.
However, I have a 'problem' that annoys me and that alters the quality of my stream. Indeed, when I go from one scene to another, there is always a lapse of time before the cameras are displayed. What is normal, it takes 2-3 seconds for OBS to listen to and broadcast the stream it receives from the camera. Nothing suprising.
But then... well, that's ugly :/.
I would like that when switching from one scene to another, the cameras of the freshly displayed scene can already be broadcasting.
So I tried with different little tweaks (scene transitions, cache...) but nothing that was very convincing and that didn't look a bit messy or amateurish.
So I was wondering if it was possible in the software, or via a Python script, to:
1) while I am broadcasting scene 1, to preload scene 2 at a specific moment (keyboard shortcut, command contained in a script...) thus activating the broadcasting of video streams from the cameras of scene 2
2) and only 3 or 4 seconds later, to go to scene 2 and thus immediately have the display of the cameras.
Having two scenes with 6 video sources playing video streams for 3-4 seconds remains bearable for my computer, provided of course to close the playback of video streams from the cameras of scene 1 once scene 2 is displayed.
Before asking for your help, I spent a lot of time testing some 'hack' solutions, searching on this forum... but nothing very conclusive :/.
So I come to you to ask for your help, to give me ideas of avenues to follow because there, apart from the application of this idea, I do not see any other.
Thank you in advance for reading my message and for your future help.
Kind regards,
Willis [using OBS Studio 28.1.2 - 64 bits]
For those who like to take up challenges, I offer you one :).
I have a whole OBS project that contains several scenes. Each of these scenes broadcasts different video streams from several cameras (via the 'Source video VLC' source and the RTSP protocol). For example :
Scene 1: mosaic of cameras 1, 2 and 3
Scene 2: mosaic of cameras 4, 5 and 6
Scene 3: mosaic of cameras 7, 8 and 9
And to avoid an explosion of cpu resource usage, of course I enable the option 'Stop when playback is not visible, restart when visible'. Otherwise, although my computer is powerful enough and I use the decoding of my very good graphic card, the cpu resources would increase to 95%, which of course is very problematic.
So.
Nothing very complicated so far you will tell me, and indeed everything works well.
However, I have a 'problem' that annoys me and that alters the quality of my stream. Indeed, when I go from one scene to another, there is always a lapse of time before the cameras are displayed. What is normal, it takes 2-3 seconds for OBS to listen to and broadcast the stream it receives from the camera. Nothing suprising.
But then... well, that's ugly :/.
I would like that when switching from one scene to another, the cameras of the freshly displayed scene can already be broadcasting.
So I tried with different little tweaks (scene transitions, cache...) but nothing that was very convincing and that didn't look a bit messy or amateurish.
So I was wondering if it was possible in the software, or via a Python script, to:
1) while I am broadcasting scene 1, to preload scene 2 at a specific moment (keyboard shortcut, command contained in a script...) thus activating the broadcasting of video streams from the cameras of scene 2
2) and only 3 or 4 seconds later, to go to scene 2 and thus immediately have the display of the cameras.
Having two scenes with 6 video sources playing video streams for 3-4 seconds remains bearable for my computer, provided of course to close the playback of video streams from the cameras of scene 1 once scene 2 is displayed.
Before asking for your help, I spent a lot of time testing some 'hack' solutions, searching on this forum... but nothing very conclusive :/.
So I come to you to ask for your help, to give me ideas of avenues to follow because there, apart from the application of this idea, I do not see any other.
Thank you in advance for reading my message and for your future help.
Kind regards,
Willis [using OBS Studio 28.1.2 - 64 bits]