Random Disconnect/Reconnect

das_shame

New Member
Hey there all. I keep getting randomly disconnected/reconnected when streaming via obs. haven't had this issue before and been with the same ISP for three years. Recently got a new mode and upgraded my internet speeds so I hover around 25MBPS upload and 400MBPS download. I put in a new ethernet cord. I also installed TwitchTest to find my correct ingest server out of denver. however, every stream for the past 4 keeps doing this randomly. Here is my log.

Code:
15:06:36.162: [DShow Device: 'Camera'] settings updated:
15:06:36.162:     video device: HD Pro Webcam C920
15:06:36.162:     video path: \\?\usb#vid_046d&pid_082d&mi_00#6&127abbac&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
15:06:36.162:     resolution: 1920x1080
15:06:36.162:     flip: 0
15:06:36.162:     fps: 30.00 (interval: 333333)
15:06:36.162:     format: MJPEG
15:06:36.162:     buffering: disabled
15:19:34.145: User switched to scene 'Scene 2'
15:19:38.244: WriteN, RTMP send error 10054 (454 bytes)
15:19:38.244: WriteN, RTMP send error 10054 (79 bytes)
15:19:38.244: WriteN, RTMP send error 10038 (42 bytes)
15:19:38.244: [rtmp stream: 'simple_stream'] Disconnected from rtmp://den52.contribute.live-video.net/app
15:19:38.244: Output 'simple_stream': stopping
15:19:38.244: Output 'simple_stream': Total frames output: 133453 (134853 attempted)
15:19:38.244: Output 'simple_stream': Total drawn frames: 134924
15:19:38.244: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 1400 (1.0%)
15:19:38.245: Output 'simple_stream':  Reconnecting in 10 seconds..
15:19:38.245: [rtmp stream: 'simple_stream'] Freeing 3858 remaining packets
15:19:38.286: warning: 2 frames left in the queue on closing
15:19:38.286: warning: 2 frames left in the queue on closing
15:19:48.320: [jim-nvenc: 'simple_h264_stream'] settings:
15:19:48.320:     rate_control: CBR
15:19:48.320:     bitrate:      5000
15:19:48.320:     cqp:          20
15:19:48.320:     keyint:       120
15:19:48.320:     preset:       hq
15:19:48.320:     profile:      high
15:19:48.320:     width:        1600
15:19:48.320:     height:       900
15:19:48.320:     2-pass:       false
15:19:48.320:     b-frames:     2
15:19:48.320:     lookahead:    false
15:19:48.320:     psycho_aq:    true
 

Attachments

  • 2022-07-20 14-14-32.txt
    47.6 KB · Views: 12

das_shame

New Member
TwitchTest Results: Denver, CO(52) gave me an 87 overall score and that was the highest. 10,000+kbps bandwidth.
Every upload test I do, my upload is also 20+ consistently.
 

PaiSand

Active Member
If the bandwidth test shows you anything bellow 90 it isn't good.
It could be the network cable, the router/modem, the external cable, anything at your ISP, anything at the top of your ISP. You need to troubleshoot the internal connection up to the modem. If the cable/router are good, you need to contact your ISP telling them you're trying to stream but the service is bad, specially for rtmp protocol. Of course, they're going to make you check the modem, meaby change it, perhaps change cables outside, and then tell you is not their issue. So you keep calling until you get lucky and answer a guy whom knows a little more and ask the right person to look and fix the issue.
We all suffered this prosses. Patience.
 

das_shame

New Member
What stinks is 87 was the highest score I could get. I never had this problem in the past. Also, the technician gave me brand new cords for the network cable, brand new router and ethernet cord, upgraded speeds. I will take your advice and see what they say about rtmp protocols. I appreciate your reply and you taking the time to answer me. it just is frustrating because i've been streaming for quite some time now (years at this location) and never had this issue before. So just to be clear, there would be no setting in OBS or anything that you think would be causing this issue?
 

das_shame

New Member
What's even more weird is the internet has no trouble at all ever with anything else I do. it's only when im live via OBS this issue happens. Every time I test my internet, the connection is stable. Upload is always 25+.
 

PaiSand

Active Member
Tell them this, until recentrly the services was fine but something changed in their network making the rtmp protocol way worst. Most probably a faulty router pointing to china instead of the correct servers in your country, or the DNS server with a similar issue. Could be a multitude of things, but affects the rtmp protocol.
The speedtest don't measure the rtmp protocol. That's why we use the bandwidth test by Rich which do test it against Twitch servers.
To more accuratelly measure the speedtest (for everything else) you need to change the parameters it takes and do it with only 1 connection and choose different servers other than the ones your ISP provides for the local test.
I have 500/500 but if I change the test to 1 connection and a different server the results can go down to 200/100 or worst. The rtmp protocol used to work fine but I get more latency against the closest Twitch server than others far, far aways. I'm from Buenos Aires, Argentina (only 1 server here) and the other servers with better latency are in Brasil, almost 2700km away (1700mi). They fix this but then it brokes again. Some technicians just plug and forget the hardware and don't verify if it points to the correct places in the network.
In my previous ISP I had to call them like 10 times until I got one guy whom knows about this and asked the right person to look into it. 1 hour later the issue was solved.
 

das_shame

New Member
Is there anyway I can check on the RTMP protocol myself or is this something only my ISP can do? I am confused as to what you mean testing it with only 1 connection. Could you elaborate on that please? Also, what do you mean point the router in the right direction?
 

PaiSand

Active Member
On speedtest, you can change the server and the connections. Select single.

2022-07-22_175324.png
 

das_shame

New Member
Hello there. Even upon changing the settings to single, I still am getting at least 17mbps upload. What is so weird is none of the servers offered to me in NA, are scoring above mid 80's using the twitch test application from R1ch. Honestly, I no longer have any idea what to do. Someone from my ISP recommend I set up a port forwarding for my computer and then I found the bind to ip option in OBS. I really don't feel like I should have to do this, for the stream to work successfully. What are you thoughts? All the upload tests I do, even with single server's, are showing I have enough upload. For some reason though, it still disconnects no matter what. This is irking me so much. I have streamed for over 5 years with no problems like this ever and now I am feeling hopeless like i will never get this resolved. Is there any type of deep dive or someone that can help me find a resolution?
 

PaiSand

Active Member
If the bandwidth test shows you anything bellow 90 it isn't good.
This shows an issue in your ISP. That's why I sugested to connect the computer directly to the modem. You can check and test everything without any other interference and know if the issue is in the ISP or inside your house network.
I have 2 services I can chose from in case one start failing and do nothing to fix it. If you can, change from ISP.
 

Lawrence_SoCal

Active Member
@das_shame you are correct re: port forwarding - either you misunderstood... or the person at the ISP was 'blowing smoke up your ...'

As to everything else working... that isn't uncommon. Streaming services, web surfing, etc is largely download speed, and your devices/software all have buffering built-in.
When you are livestreaming, that is upstream bandwidth, with traffic that can, and usually is, jitter sensitive.... which was NOT a priority (for good reason) when consumer Internet networks first built... and adjusting said networks is NOT a simple, quick, inexpensive task... and then again, could be a simple ISP screw up in routing or network QoS config, or similar.
You might think to yourself 'what about Video Conferencing?'.... those tend to use a lot less bandwidth (for a variety of reasons, including patents).

As for speed test - those are highly optimistic (taking best case scenario) whereas for livestreaming what is important is the bottom threshold (not fastest average, ignoring the bottom X% slow results)
A simplistic test is to upload a large file (many GB?) to a cloud service, with a known fast intake rate. The more Internet hops a destination is from you, the more Public Peering congestion, or similar can be a hidden influence. So a fast disk sub-system server at your ISP is best option, but rarely viable. So, you may have to make do with Google Drive, OneDrive, YouTube, etc. Upload the large file and monitor throughput... what is the lowest throughput value you get (ignoring start/end sorts of values).. .if that averages say 15-20mbps, but shows drops to 5mbps then you may not have the sustained bandwidth you need... but you'll need to test more to make sure not an issue with just that service. Try uploading to multiple targets (at different times) to see if you can spot a pattern. Make sure your PC, its security software, and your disk sub-system are the bottlenecks.
[looking at your OBS log] And what have you done for real-time hardware resource performance monitoring on your PC. That i7-7700 is old for real-time video encoding with all of the filters and effects you have configured. It could be fine if properly optimized, realistic settings, etc. Or you may be driving your system into overload, with all sorts of odd behaviors being unfortunately 'normal' once OS at point of overloaded.
Your OBS log shows slight bandwidth issues, but also shows some rendering and encoding lag. So if the CPU is spike for any sustained time, that may be causing some of the other issues. Have you tested streaming at 30fps with no filter/effects in place?
 

das_shame

New Member
For what it is worth, after settings up the port forwarding and then selecting the "bind to ip" option inside of OBS, I haven't had an issue in three streams. Could be coincidence because as I have read from the admins on these forums, you should never have to set up a port forwarding thing. Is it possible that binding the IP to the port forward could have done something to strengthen the connection?
 

Lawrence_SoCal

Active Member
Port Forwarding is a phrase typically used for sending traffic from outside your LAN (ie other side of local firewall, LAN or Internet) to a given destination. With streaming, you are sending traffic, not receiving. So what possible point would Port Forwarding have in that scenario (other than creating a potentially huge security risk, if not done carefully)
As for binding, this gets into OS, not OBS, config. DO you have multiple IPs on your PC? ie a both a wired and WiFi connection to same LAN? or something along those lines. You don't have Dell's Killer Networks driver installed do you? if yes, I recommend researching specific issues realted to that I'm seen reference to previously, to see if they apply to you
 
Top