Is there a setting or way to stop OBS from stopping my live streams when my Internet has issues?

John Zapf

Member
Cox, my internet provider was here AGAIN, and I got the right guy this time. So the ongoing stream failures are because of poor internet. I keep having packet loss and latency issues on my up stream. I've been dealing with this with them for 20 years. So supposedly he's going to push to get the system turned on that's already upgraded in the neighborhood. Right now I have four channels for my upstream and they have 36 available and it's already at the modem it's just not turned on. If they can get that turned on that's going to fix my issues with the streams going down all the time. It has nothing to do with my server and has nothing to do with OBS, it's totally on my Internet provider.

So with the Internet packet loss and latency problems is there a buffer I can increase on the OBS server to accommodate this? And 2nd when the stream has issues OBS stops my live stream is there a way/ setting that I can use so that it won’t stop the stream when the Internet has issues? just keep the stream on even if there is no internet?
 

Lawrence_SoCal

Active Member
OBS Server? huh
You stream to a Stream provider (typically... ex YouTube, FaceBook, Twitch, etc [ie Content Delivery Network / CDN]).. OBS Studio runs locally on your computer... no OBS Studio/Project server involved. So, any streaming server changes are something to take up with your specific provider... and if free service... don't expect much

OBS Studio does have a setting to attempt a re-connection automatically. You can specific how long to wait and how many times to try. But don't be stupid and set a really low value and massive number of attempts... you are only shooting yourself in the foot at that point...

And there is no such thing as 'keep the stream on even if there is no Internet [connection]'
- think old school... how would talk over the [POTS] phone line if line cut outside your house? simple... you wouldn't, until you went someplace else, or repaired the line/connection.
- a stream is the data transmission [colloquially understood as over the Internet, though technically could be over pretty much any network.. anyway] ... but consumer/residential streaming - if no Internet data connection (or severely congested)... then no stream... period
- Now, what happens if temporary loss of connection is controlled by settings at CDN and within OBS Studio. what settings should you use? it depends.
- there are technically sophisticated (and sometimes pricey options) for alternate Internet connections (ie router handling both cable Internet that you have, and something else, often cellular... and can failover to secondary when primary fails... but there are Pro's and Con's to this, not to mention expense, technical sophistication to configure and manage, etc... totally doable, and not anywhere near as expensive as it was a decade ago... especially with recent 5G cellular home Internet options... though coax cable order a magnitude better in terms of consistency, latency, etc.. in general) if you really can't wait for Cox to activate new upstream channels... and a DIY linux router is not your thing, or direct PC USB cellular modem with huge security risks, getting a dual WAN router, and a cellular modem for the short-term might work for you?
- or, broadcast from secondary location (this is done when going down is a no-no, think TV broadcast... and pre-recorded content shipped in advance to secondary streaming site)... for consumer/free service... not really applicable... but why you see backup stream listed as option with some CDNs, hence my mentioning it.

By default, if I recall correctly, OBS Studio will auto try to re-connect... but a fairly limited # of times. You might want to increase that number or re-try attempts. And you want your CDN stream settings to not auto-end stream if connection lost [though now you are REQUIRED to end stream manually... it is an either/or situation]. But if you aren't sending data, livestream viewers will see a black screen... and a black screen will be recorded for those who watch the video in the future, unless you edit out the empty airtime

Good Luck
Cox did the network upgrade in my neighborhood a few months ago (from 10 to 50 mb/s), so finally getting decent upload speeds after 3.5 yrs of COVID inspired drop in upload bandwidth limits to protect the networks.
 

John Zapf

Member
Thank you for the info. And yes when Cox turns on these 36 channels it will put me at 100 up bonding to 36 channels instead of four so that'll be good. But I'm still having a hard time figuring out why when the Internet connection flutters a little bit doesn't go down the line's not broken connections not severed everything still there and running that obs drops Oh my live streams. And yes I do have it set to attempt to reconnect every 10 seconds at 1000 times and it doesn't do anything.

And I've used another way to stream before and I don't know what they use but it was on my same Internet connection actually it was way worse than it is now and the streams never went down not even one time so I'm just curious at how they were able to keep it running even when the Internet stopped performing properly.

And I used that other service for 10 years and like I said I never went down at all. But the quality of the image is not as good and I don't have the option to do any overlays or anything like that. It's just weird if the Internet buffers even a little bit obvious drops my connections to YouTube and I have to close OBS reopen it and start the Live stream again.

and rightnow my streams total 20-25 megabits per second 24/7 365. I have a great router a Sonic wall TZ 400 and and I have pretty much switched everything over to CAT8 wiring now on a Cisco router so the infrastructure inside is very good I'm just at the mercy of YouTube and the Internet provider. But it would be nice for obs studio to have a little bit of buffering and a little bit of leeway here and there so if the streams internet is not 100% it doesn't just drop it, and if it does that it would start up again when the Internet smoothed out I don't get why it totally just stops everything.
 

AaronD

Active Member
The only think I can think of is this:
1696207779816.png

@Lawrence_SoCal, would that *actually* help anything? I'm just going by what I think the labels mean, but you're the networking guy.
 

John Zapf

Member
The only think I can think of is this:
View attachment 98194
@Lawrence_SoCal, would that *actually* help anything? I'm just going by what I think the labels mean, but you're the networking guy.

I have that set to 10's 1000 times and so far it has not helped. It has something to do with the way it drops the streams or something because I have to actually close obs and reopen it before the streams will start again. I can't simply just push restart while I can but it doesn't restart them I have to close obs open it again and then the streams will start so that automatic reconnect will never work without they're closing obs and restarting it.
 

AaronD

Active Member
...so that automatic reconnect will never work without they're closing obs and restarting it.
I wonder if that's a bug. Maybe it's written for the server working a certain way, and it doesn't anymore?
 

Lawrence_SoCal

Active Member
I use a 5 second retry, as my stream provider/CDN, faster than 5s really isn't all that useful. and I stop after 60 tries or something like that (a couple of minutes).

Is you Internet connection dedicated to streaming, or shared with your other home networking (ie streaming video service (ex Netflix, Amazon Prime Video, etc), your home computers, etc). If shared, then you have to account for TCP Reply traffic, web conference or similar traffic, etc, and then make sure your streaming/upload bandwidth doesn't get to a point of contention with your available bandwidth.
and rightnow my streams total 20-25 megabits per second 24/7 365.
That's your problem [presuming you are on typical residential plan, not a business account with different upload limits]... you have a pipe that is 'virtually' a certain size, and you are trying to send more than that thru it... won't work.. period.
The fix, until you get more upload bandwidth from current ISP is easy... either - lower your stream bandwidth consumption, or get additional bandwidth. that's it.
I have a great router a Sonic wall TZ 400 and and I have pretty much switched everything over to CAT8 wiring now on a Cisco router so the infrastructure inside is very good I'm just at the mercy of YouTube and the Internet provider.
Side notes
- make sure that old TZ400 (which I'm familiar with) is updated, as is the Cisco... especially with the hidden malware zero-day making the news recently {last week} in some Cisco gear [may not apply to you, just don't assume you aren't at risk]
- CAT8 in residential is largely pointless. unless you are running 10gb/s?? and some (most) cheap Amazon Ethernet cables don't actually meet specs .. .so beware, unless you have really capable cable tester (ex Fluke) capable of truly stress testing cable connection and throughput [typically an expensive device].
- background - Cox, and other common typical ISPs have network designed for typical use (which is download/consumption). There is limited bandwidth, and they have to manage allocating that to upload and download streams. So, as 90+% of consumer traffic is download, their networks designed to support that. And cable (coax, DSL, etc) all are shared bandwidth at some point, fairly local to you. When pandemic lockdown hit, and everyone web conferencing from home, that bandwidth consumption model changed almost overnight and way faster than ISPs could shift, so to keep things working, upload limits put in place. [One could argue ISPs should have seen it coming, with Asian pandemics, etc, but hole other argument]
But it would be nice for obs studio to have a little bit of buffering and a little bit of leeway here and there so if the streams internet is not 100% it doesn't just drop it, and if it does that it would start up again when the Internet smoothed out I don't get why it totally just stops everything.
If my guestimate is correct, OBS (or other real-time compositing s/w) isn't going to help. what you'd need is buffering on your server provider side... which is available on pay services.... on free services... not so much. other than maybe some settings to allow higher latency (ie, I'm presuming low-latency isn't a need/requirement in your scenario...) but even that isn't really going to help beyond the seconds range, certainly not into the minutes....

Though... in pondering, would using a pay service like reastream.io, and configuring a buffer on that intermediate service work?? don't know... I'll let you research
 

John Zapf

Member
I use a 5 second retry, as my stream provider/CDN, faster than 5s really isn't all that useful. and I stop after 60 tries or something like that (a couple of minutes).

Is you Internet connection dedicated to streaming, or shared with your other home networking (ie streaming video service (ex Netflix, Amazon Prime Video, etc), your home computers, etc). If shared, then you have to account for TCP Reply traffic, web conference or similar traffic, etc, and then make sure your streaming/upload bandwidth doesn't get to a point of contention with your available bandwidth.

That's your problem [presuming you are on typical residential plan, not a business account with different upload limits]... you have a pipe that is 'virtually' a certain size, and you are trying to send more than that thru it... won't work.. period.
The fix, until you get more upload bandwidth from current ISP is easy... either - lower your stream bandwidth consumption, or get additional bandwidth. that's it.

Side notes
- make sure that old TZ400 (which I'm familiar with) is updated, as is the Cisco... especially with the hidden malware zero-day making the news recently {last week} in some Cisco gear [may not apply to you, just don't assume you aren't at risk]
- CAT8 in residential is largely pointless. unless you are running 10gb/s?? and some (most) cheap Amazon Ethernet cables don't actually meet specs .. .so beware, unless you have really capable cable tester (ex Fluke) capable of truly stress testing cable connection and throughput [typically an expensive device].
- background - Cox, and other common typical ISPs have network designed for typical use (which is download/consumption). There is limited bandwidth, and they have to manage allocating that to upload and download streams. So, as 90+% of consumer traffic is download, their networks designed to support that. And cable (coax, DSL, etc) all are shared bandwidth at some point, fairly local to you. When pandemic lockdown hit, and everyone web conferencing from home, that bandwidth consumption model changed almost overnight and way faster than ISPs could shift, so to keep things working, upload limits put in place. [One could argue ISPs should have seen it coming, with Asian pandemics, etc, but hole other argument]

If my guestimate is correct, OBS (or other real-time compositing s/w) isn't going to help. what you'd need is buffering on your server provider side... which is available on pay services.... on free services... not so much. other than maybe some settings to allow higher latency (ie, I'm presuming low-latency isn't a need/requirement in your scenario...) but even that isn't really going to help beyond the seconds range, certainly not into the minutes....

Though... in pondering, would using a pay service like reastream.io, and configuring a buffer on that intermediate service work?? don't know... I'll let you research
so First off I do have a business connection. And the main issue is the upstream of that connection is not reliable they're coming out again today to clear up noise in the neighborhood. We're all just going to keep pushing to get from the four upstream channels to have them turn on the available 36 upstream channels and that will solve this issue. And I'm aware of everything else that the Internet is using. No we don't stream anything from Netflix or anything like that I have an antenna on the roof that gets all the TV I need. Anything else I use internally on the Plex media server. And yes all firmware is up to date on everything. So again right now I have 300 down and 30 up. I'm using 20 up continuously for the streams. I do have my web server and e-mail server providing websites and e-mail for clients but it really doesn't use much bandwidth. The main problem is the unreliable Internet my smoke ping shows it had 100% packet loss four times so far today. Yeah I'm not sure if I said this but I've been streaming live streams since 2014. So I'm used to dealing with the Cox Internet issues. But now I'm just gonna stay on it every day I have smoked ping running and I call them every day and give a full report and I get a credit every day they're gonna fix it because the squeaky wheel gets the grease and I'm going to be calling them every single day. And I have a direct text to a technician that I pass information on all day long you know I think there's about 10 people at Cox looking into this now so I expect this to get taken care of soon. Having the four channels up will never fix anything because there's always noise on a couple of the channels or more. Once they switch to the 36 channels up it's going to fix the issue. Like I said the issue is not here it's not with my equipment it's not with anything I'm doing it's with the Internet provider and I'm just trying to find a way to have a buffer for the streams and I think I figured that out I sat the network buffer to 16 megs on each of the stream that was the Max and that helps with little intermittent packet losses. But when it goes down down for a few minutes, the auto restart doesn't seem to work. Like I said I have it set to 10s 1000 tries.
 

Lawrence_SoCal

Active Member
That is the first you've mentioned having business service and 300/30 in this thread. Still... shared bandwidth once traffic leaves your house.
And you mentioned previously 20-25mb/s on a 30mb/s uplink... with known noise... yea.. same basic problem

The buffer you need is on the RECEIVING end of your stream... buffering locally is irrelevant. hence my suggestion about using a streaming service that could enable such a buffer for you (as I don't believe free YouTube offers such, for good reason)

What you may want to try in OBS Studio is the dynamically change bitrate option (section below auto reconnect setting) to drop sending bitrate during congestion... set on all streams... that might be enough to keep streaming running ?? video quality will suffer, especially if congestion is so bad that available throughput drops to a small fraction of that 30mb/s upload rate.
 

John Zapf

Member
That is the first you've mentioned having business service and 300/30 in this thread. Still... shared bandwidth once traffic leaves your house.
And you mentioned previously 20-25mb/s on a 30mb/s uplink... with known noise... yea.. same basic problem

The buffer you need is on the RECEIVING end of your stream... buffering locally is irrelevant. hence my suggestion about using a streaming service that could enable such a buffer for you (as I don't believe free YouTube offers such, for good reason)

What you may want to try in OBS Studio is the dynamically change bitrate option (section below auto reconnect setting) to drop sending bitrate during congestion... set on all streams... that might be enough to keep streaming running ?? video quality will suffer, especially if congestion is so bad that available throughput drops to a small fraction of that 30mb/s upload rate.
OK thanks searching for that now. I just would like to suggest to BS if they could implement some kind of watchdog and reconnection of live streams. I know it's possible to do. There are several people that offer streaming services that their servers send out a watchdog notification when it drops and they automatically reconnect so I know it can be done.

I just have to say I've played this game with Cox Internet since 2014. We had two megs up then four megs up and then it went to ten megs up and now it's the thirty megs up and every time they could never provide a solid stable upstream. So like I said they already have 36 channels here to my modem on the upstream I just need to keep pushing this every day all day long to get them to enable that, and that will help a lot. Because it already went down four times today. It went down 12:30 AM for three minutes and that dropped the streams. The other two times I've had 100% packet loss I didn't lose the streams, I'm guessing the 16 Meg Internet buffer on each stream took care of that.

And YouTube is fine I don't lose my stream keys so I can just restart the streams. And their buffers not gonna do anything. OBS just stops once it doesn't have Internet service.
 

John Zapf

Member
Here are my URLs for my channel. Right now it's off season I'm lucky to have my Hummingbird hollow still hanging out with us. But as soon as January hits the live viewers are going to go up to 1000 immediately.

Allen's Hummeingbird Olive: https://youtu.be/DkbQKljLuVI
Fountain Cam: https://youtu.be/1f6f-NYog8g
Feeder Cam: https://youtu.be/-QGwFNN3Z6U

these are all high-end AXIS cameras and I have the stream and compression tailored to 8mps coming out of Olives cam and the Fountian Cam and 4mps for the feeder cam. So OBS doesn't have to do too much as its set to stream Olive and the fountain at 8mps and the feeder at 4mps.

I am really on all of this.
 

John Zapf

Member
However I did see this? I set it to 1,800 s. That ends up being one gig for each stream that's fine. This is a dedicated server to just doing OBS, and it has 64 gigs of ram.

Screenshot 2023-10-04 141149.png
 
Last edited:

John Zapf

Member
Something I would like to see OBS increase would be this network buffer. I'm streaming 16 megs a second so having a network buffer of 1 second is really not a buffer.

Screenshot 2023-10-07 131324.png
 

John Zapf

Member
And FYI none of these settings help keep my live streams going when the Internet goes down. So the Internet only needs to go down for one second and my streams are dropped and OBS does not restart them. And none of these buffer settings help it stay live during just even a one second outage.
 

Lawrence_SoCal

Active Member
And FYI none of these settings help keep my live streams going when the Internet goes down.
correct - that isn't what they are for
So the Internet only needs to go down for one second and my streams are dropped and OBS does not restart them. And none of these buffer settings help it stay live during just even a one second outage.
I'm suspecting in playing with your settings, you've messed something up. or there is a new, unique bug in the version of OBS Studio you have.
My OBS Studio, streaming H.264 7mb/s to a platform other than YouTube, can handle multi minute outage (someone else mistakenly powering off main router...) and re-connect just fine.
 

John Zapf

Member
correct - that isn't what they are for

I'm suspecting in playing with your settings, you've messed something up. or there is a new, unique bug in the version of OBS Studio you have.
My OBS Studio, streaming H.264 7mb/s to a platform other than YouTube, can handle multi minute outage (someone else mistakenly powering off main router...) and re-connect just fine.
I haven't messed anything up. And FYI I stream H.265 HLS. H.264 RTMP is very old technology.
 
Top