Livestream disconnecting from YouTube ingest server

owtay1024

New Member
I am having an issue with my livestream disconnecting, and dropping many frames 'due to network'. I have done a lot of research as to what are the ideal settings for streaming and I'll list them below. I stream for a church on Sunday morning, and I'll have a flawless stream for anywhere from 20 minutes to an hour and then suddenly in the stats window in OBS, I see and increasing number of dropped frames due to network, and the bitrate in the bottom right corner is low to 0kbps. On the YouTube end, it just shows no data, and is indefinitely loading for the viewers. This problem is really frustrating me, as there will sometimes be weeks where this will go well, and other times when it will disconnect and never reconnect.

I have tried streaming directly on YouTube on Chrome, and things are smooth. (This is my main backup at the moment for when the stream from OBS crashes, then I direct the viewers to the new stream). But this is far from a good live-streaming experience, and I would like to use the many features OBS has to offer.

Here are the important computer specs:
- Intel i7-1065g7
- 16 gb of ram
- I don't use the graphics card because its a basic one that comes with the laptop.

Internet speed test after many tests:
- consistently 11.7 mbps upload speed
- around 90 mbps download speed

Important OBS settings:
- Resolution 1080p 30fps
- Video bitrate: 4500kbps
- Keyframe interval: 2 sec
- Video codec: x264 (using the CPU)
- Rate control: CBR
- Audio bitrate: 128kbps
- 44.1 kHz sample rate

Keep in mind that OBS is the only program running on the laptop at the time of streaming, and windows defender automatic full scan is disabled so it won't eat up the CPU processing power.

Also keep in mind that I have done many tests during the weekdays (with all the above settings), and they all turn out perfect, sometimes without a single dropped frame. I've even bumped the bitrate up to 8000kbps for a test and things went perfect, but for weekly use I still use 4500kbps. (I know my limit for this internet would theoretically be 11000kbps, but I'm not going there). Also note that there are no other devices using the internet except for on some weeks, a YouTube video played from a TV in another room, and occasionally some light smartphone internet browsing.

I do keep my eye on Windows Task Manager during a stream with OBS, and the usage stays at about 60% give or take 5%. I know the computer is not specifically designed or built for livestreaming, but from what I see in the task manager leads me to believe that the computer is having no problems encoding video just on the CPU. Also, in the stats window of OBS, I never see dropped frames due to encoding lag, only dropped frames due to network.

Believe it or not, I used to use a 2017 MacBook Air with a dual core i5 processor and 8gb of ram to stream. I got OK results, as I was forced to lower the bitrate to 1500kbps and the resolution to 720p, BUT, note that the livestream didn't crash and there weren't any significant dropped frames due to network then. This was all on the same router as mentioned in the first post.

What I strongly suspect is that on Sunday morning when many churches are streaming to YouTube, the primary ingest server is overloaded, and connection is lost. I know that router has no problems (it is a TP-link Archer A7, a recommended router for live-streaming), because I can google something or reload a tab while OBS is disconnecting and it will still load. The thing is, I don't know what to do about this. I would try Facebook, but many churches also use Facebook on Sunday morning so I don't know how this would change things.

So, my main questions are,
- Is there anything at all that I need to change about my settings that would fix this problem? (Keep in mind I have never had a dropped frame due to encoding lag, so I know the CPU is not struggling to encode video)
- How can I ensure a good connection to a YouTube server on Sunday morning? Should I use the backup server that is that other option in OBS? Does that work the same as the primary ingest server.
- Would a different streaming software work better? If it's the connection to the server that's the issue, I would think another software wouldn't do much better than OBS.
- I also want to specifically ask does lowering bitrate make it easier on the data transfer from the computer to YouTube's primary ingest server, therefore making the livestream more reliable than if I used a higher bitrate?

I am relatively new to streaming with OBS (since September), and am trying to do everything right. I would like to think OBS is a good encoder, if I need to fix anything on my end for it all to work out smoothly, I would surely like to know what.
 

jeremykehler

New Member
Hi, I was just curious if you were able to resolve your issues? I'm having the same "Sunday Morning" problems. I can run tests throughout the week with hardly any issues. Then Sunday morning the bitrate suffers and the viewers are seeing minecraft or the stream drops completely.
 

HAMALS

New Member
Hello, I have the exact same concerns as owtay1024 and have experienced the same issues on Sunday morning while streaming a church service to YouTube. I'm posting this in May 2023 and the issue still exists. The WriteN, RTMP send error (codes 10053 and 10038) pop up in some fashion during the log before the stream disconnects. I know the error codes state OBS has been disconnected from the [YouTube] server but I don't understand the reason and why it happens randomly.

This past Sunday we switched from going live immediately in YouTube studio to scheduling the stream in YouTube studio to begin a minute or two after we enable "start streaming" in OBS. (That way, if the connection was lost, the viewer would just see a buffering icon until it re-connected and wouldn't have to search for a new streaming video on our channel.) We had no issues and didn't lose the connection once during the service. I checked the OBS log and there were no temporary disconnects/reconnects at all.

Could the process of scheduling the stream rather than going live immediately really have made the difference with the YouTube ingest server? We also set the priority for OBS Studio from 'normal' to 'above normal' in Task Manager. Perhaps the combination of the two helped? Does anyone have any other suggestions we should try to help ensure the server stays connected? Many thanks for your help.
 

AaronD

Active Member
There are 3 posts in this thread, not counting this one, that are more than a year apart. None of them are relevant to each other, despite any claims that they are, simply because things change so much in the intervening time. Make a new thread, don't refer to the old one, and provide all the details as if it's a brand new issue. (because it is)
 

pipercollins71

New Member
Yet this is still the top thread that comes up when you Google "Sunday morning YouTube streaming problems". I think it's an old issue...that no one has successfully answered. But I think it's YouTube, not OBS.
 
Top