Many media sources are crashing my OBS when I try to open them.

11closed

New Member
Hi, I'm having a problem with OBS Studio. When I add too many "media sources" to my project, OBS crashes, freezing my entire PC, and then I have to restart my PC to get back to it.

It seems that OBS can't load everything when it starts and crashes.

1º attempt to solve this problem:
I converted all the videos to a more acceptable resolution in OBS .webm (VP8), and it still crashes when it starts.

2º attempt to solve this problem:
I also tried separating the videos into several different scenes to avoid overloading them, but that didn't work either; OBS crashes when it starts.

- I'll explain exactly what I'm trying to do in my project. In the "Streamlabs Chatbot" commands, I have several commands that, when the live user types the command in the chat, play a video (meme) on the live screen. The script is in Python.
img1.png


img2.png
img3.png


- When someone types "!1" in the live chat, the OBS "media source" called "1-Meme - Silvio Santos, Ma aoeee kkk" plays on the screen, which is a video (meme) "1-Meme - Silvio Santos, Ma aoeee kkk.webm" for 4 seconds. So far, so good, it's working perfectly, but when I add 30, 50, 80...etc. "media sources," OBS starts to crash, and I can't add all the media from my project to the "Streamlabs Chatbot" commands.

3º attempt to solve this problem;
Since I can't add many "media sources" to OBS, I tried creating one "media source" named "MemeCommands" and creating a script in the "Streamlabs Chatbot" commands that, when triggered, automatically updates the "media source" video from "MemeCommands" to the specific command video.
- Example: in the "Streamlabs Chatbot" command "!1", I placed the code in the "Action / response" field.
$OBSSourceSettings("MemeComandos","local_file","D:\Documents\MEMES\Icones tela verde\webm VP8\1-Meme - Silvio Santos, Má aoeee kkk.webm") $OBStimedSource("MemeComandos", "onoff", "4")

The problem is that when I'm live and type the command !1 to trigger this script, the "MemesComandos" source is visible for 4 seconds, but no video plays, and then it becomes invisible. The live chat displays this message: "$OBSSourceSettings("MemeComandos","local_file","D:\Documents\MEMES\Icones tela verde\webm VP8\1-Meme - Silvio Santos, Má aoeee kkk.webm")" The code probably went wrong, right? How can I fix this?

Can anyone with more knowledge in this area tell me what I should do to try to solve this problem?

I didn't post any logs because I reverted to my previous configuration, due to OBS freezing.
 

prgmitchell

Forum Moderator
Any time the description of an issue includes "freezing my entire PC" this is confirmation that your issue is not actually with OBS. Although OBS may be triggering some underlying issue, it doesn't have the ability to freeze your entire PC on its own. That would likely be a driver issue but also maybe a hardware issue. I would recommend reaching out to some more general tech support to troubleshoot further and see what is actually happening, chances are there is more info in event viewer to get you started.
 

11closed

New Member
I understand. I heard that OBS Studio can crash if there are too many media sources. When it starts, it loads all sources even if they're 'invisible,' and when there are too many media sources, it can crash. Is this true? If so, that could be the real reason for the crash, as I'm actually trying to add too many media sources.

I removed everything from StreamElements, and after researching, I saw that it can also cause some crashes.

That's why I was trying to add just one media source and, using Python coding, change/update the video from that source to the specific video/meme specified by the command.

From what I've researched, it seems that you need WebSocket version 5 or higher for the video update/change in the media source to work. I tried installing this plugin, but it didn't work. I have OBS 31.0.0 installed here. They say it comes with WebSocket, but mine doesn't. I also tried clicking on "Help / verify integrity of files" but it gives an error because I don't have the latest version :(
 

prgmitchell

Forum Moderator
Yeah but like I said, the main distinction here is that you said your entire PC is freezing. This could really only be a hardware issue (defective hardware, maxing out RAM, etc) or a driver issue. It seems like you are focused on a solution when you haven't really even identified the problem yet.
 
Top