Question / Help Random Disconnects Advice needed.

shankly1985

Member
Hello I been streaming playthrough of games to Youtube for awhile now I notice randomly my stream will disconnect for a sec and start back up again? This can be so random like I can stream for 5 hours perfectly and another time less that 10mins
This doesn't just happen with OBS either AMD Relive and Action! Have the same issue..

Here is some info from my recent log file

03:58:25.676: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
03:58:25.749: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 100 mbps)
03:58:26.134: [rtmp stream: 'adv_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
03:58:26.137: ==== Streaming Start ===============================================
03:58:26.218: [AMF] <Id: 5> Initial Frame Latency is 57239398 nanoseconds.
04:50:05.044: WriteN, RTMP send error 10054 (4097 bytes)
04:50:05.044: WriteN, RTMP send error 10054 (54 bytes)
04:50:05.044: WriteN, RTMP send error 10038 (42 bytes)
04:50:05.044: [rtmp stream: 'adv_stream'] Disconnected from rtmp://a.rtmp.youtube.com/live2
04:50:05.044: Output 'adv_stream': stopping
04:50:05.044: Output 'adv_stream': Total encoded frames: 116673
04:50:05.044: Output 'adv_stream': Total drawn frames: 185962
04:50:05.044: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 193 (0.2%)
04:50:05.044: Output 'adv_stream': Reconnecting in 10 seconds..
04:50:05.044: [rtmp stream: 'adv_stream'] Freeing 222 remaining packets
 

Attachments

  • 2017-06-20 03-39-10.txt
    26.4 KB · Views: 32

R1CH

Forum Admin
Developer
Make sure to post a log from a session where you've turned on the "New networking code" option in advanced settings.
 

CaptainKirk55

New Member
I'm having the same issue. OBS was frequently dropping me just last night. I was able to do everything else on my internet, and in 8 months of using the program I have never had this issue.


EDIT: I am playing around with the settings and for the most part am not able to connect to Twitch servers. When I do my bitrate locks on around 1000 and sometimes drops to 0. I have it set for 3500. I need a quick fix so I can continue my streams, but right now I cannot use OBS Studio at all.
 

shankly1985

Member
Make sure to post a log from a session where you've turned on the "New networking code" option in advanced settings.

Left PC streaming while at work for 9 hours using the new networking no disconnects. I will keep using this for and post a log if the disconnect happens again.
Thanks
 

shankly1985

Member
Sorry to bump this not done much streaming lately and tonight I streamed for around 1 hour 30mins and got a new error disconnection.
Aborting due to FD_CLOSE, error 10053

Log
00:57:59.293: ==== Streaming Start ===============================================
00:57:59.373: [AMF] <Id: 5> Initial Frame Latency is 58553500 nanoseconds.
00:57:59.439: socket_thread_windows: Increasing send buffer to ISB 131072 (buffer: 0 / 131072)
00:57:59.461: socket_thread_windows: Increasing send buffer to ISB 262144 (buffer: 0 / 131072)
00:58:01.422: socket_thread_windows: Increasing send buffer to ISB 524288 (buffer: 98843 / 131072)
01:10:20.130: [AMF] <Id: 5> No output Packet, encoder is overloaded!
01:23:41.354: [AMF] <Id: 5> No output Packet, encoder is overloaded!
01:54:01.717: [AMF] <Id: 5> No output Packet, encoder is overloaded!
02:04:23.815: [AMF] <Id: 5> No output Packet, encoder is overloaded!
02:08:12.435: [AMF] <Id: 5> No output Packet, encoder is overloaded!
02:17:20.193: socket_thread_windows: Received FD_CLOSE, 5 ms since last send (buffer: 0 / 131072)
02:17:20.194: socket_thread_windows: Aborting due to FD_CLOSE, error 10053
02:17:20.195: [rtmp stream: 'adv_stream'] Disconnected from rtmp://a.rtmp.youtube.com/live2
02:17:20.197: Output 'adv_stream': stopping
02:17:20.197: Output 'adv_stream': Total encoded frames: 280575
02:17:20.197: Output 'adv_stream': Total drawn frames: 285698
02:17:20.197: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1306 (0.5%)
02:17:20.197: Output 'adv_stream': Reconnecting in 10 seconds..
02:17:20.198: Video stopped, number of skipped frames due to encoding lag: 340/285654 (0.1%)
02:17:30.354: [AMF] [H264]<Id: 6> Encoder Parameters:
02:17:30.354: [AMF] [H264]<Id: 6> Backend:
02:17:30.354: [AMF] [H264]<Id: 6> Video API: Direct3D 11
02:17:30.354: [AMF] [H264]<Id: 6> Video Adapter: AMD Radeon R9 200 Series (VEN_1002/DEV_67b1/SUB_30811462/REV_0000)
02:17:30.354: [AMF] [H264]<Id: 6> OpenCL: Not Supported
02:17:30.354: [AMF] [H264]<Id: 6> Transfer: Disabled
02:17:30.354: [AMF] [H264]<Id: 6> Conversion: Disabled
02:17:30.354: [AMF] [H264]<Id: 6> Multi-Threading: Disabled
02:17:30.354: [AMF] [H264]<Id: 6> Queue Size: 4
02:17:30.354: [AMF] [H264]<Id: 6> Frame:
02:17:30.354: [AMF] [H264]<Id: 6> Format: NV12 601 Partial
02:17:30.354: [AMF] [H264]<Id: 6> Resolution: 1920x1080
02:17:30.354: [AMF] [H264]<Id: 6> Frame Rate: 60/1
02:17:30.354: [AMF] [H264]<Id: 6> Aspect Ratio: 1:1
02:17:30.354: [AMF] [H264]<Id: 6> Static:
02:17:30.354: [AMF] [H264]<Id: 6> Usage: Transcoding
02:17:30.354: [AMF] [H264]<Id: 6> Quality Preset: Balanced
02:17:30.354: [AMF] [H264]<Id: 6> Profile: Main 4.2
02:17:30.354: [AMF] [H264]<Id: 6> Coding Type: Automatic
02:17:30.354: [AMF] [H264]<Id: 6> Max. Reference Frames: 4
02:17:30.354: [AMF] [H264]<Id: 6> Max. Long-Term Reference Frames: 0
02:17:30.354: [AMF] [H264]<Id: 6> Rate Control:
02:17:30.354: [AMF] [H264]<Id: 6> Method: Constant Bitrate
02:17:30.354: [AMF] [H264]<Id: 6> Pre-Pass Mode: Enabled (Full Scale)
02:17:30.354: [AMF] [H264]<Id: 6> QP:
02:17:30.354: [AMF] [H264]<Id: 6> Range: 18 - 51
02:17:30.354: [AMF] [H264]<Id: 6> I-Frame: 22
02:17:30.354: [AMF] [H264]<Id: 6> P-Frame: 22
02:17:30.354: [AMF] [H264]<Id: 6> B-Frame: 22
02:17:30.354: [AMF] [H264]<Id: 6> Bitrate:
02:17:30.354: [AMF] [H264]<Id: 6> Target: 15000000 bit/s
02:17:30.354: [AMF] [H264]<Id: 6> Peak: 15000000 bit/s
02:17:30.354: [AMF] [H264]<Id: 6> Flags:
02:17:30.354: [AMF] [H264]<Id: 6> Filler Data: Enabled
02:17:30.354: [AMF] [H264]<Id: 6> Frame Skipping: Disabled
02:17:30.354: [AMF] [H264]<Id: 6> Period: 0 Frames
02:17:30.354: [AMF] [H264]<Id: 6> Behaviour: Skip every Nth frame
02:17:30.354: [AMF] [H264]<Id: 6> Variance Based Adaptive Quantization: Enabled
02:17:30.354: [AMF] [H264]<Id: 6> Enforce Hypothetical Reference Decoder: Enabled
02:17:30.354: [AMF] [H264]<Id: 6> Video Buffering Verfier:
02:17:30.354: [AMF] [H264]<Id: 6> Buffer Size: 15000000 bits
02:17:30.354: [AMF] [H264]<Id: 6> Initial Fullness: 100 %
02:17:30.354: [AMF] [H264]<Id: 6> Max. Access Unit Size: 0
02:17:30.355: [AMF] [H264]<Id: 6> Picture Control:
02:17:30.355: [AMF] [H264]<Id: 6> Period:
02:17:30.355: [AMF] [H264]<Id: 6> IDR: 120 Frames
02:17:30.355: [AMF] [H264]<Id: 6> I: 0 Frames
02:17:30.355: [AMF] [H264]<Id: 6> P: 0 Frames
02:17:30.355: [AMF] [H264]<Id: 6> B: 0 Frames
02:17:30.355: [AMF] [H264]<Id: 6> Header Insertion Spacing: 0
02:17:30.355: [AMF] [H264]<Id: 6> GOP Alignment: Enabled
02:17:30.355: [AMF] [H264]<Id: 6> Deblocking Filter: Enabled
02:17:30.355: [AMF] [H264]<Id: 6> Motion Estimation: Quarter, Half
02:17:30.355: [AMF] [H264]<Id: 6> B-Frames:
02:17:30.355: [AMF] [H264]<Id: 6> Pattern: 0
02:17:30.355: [AMF] [H264]<Id: 6> Delta QP: 4
02:17:30.355: [AMF] [H264]<Id: 6> Reference: Disabled
02:17:30.355: [AMF] [H264]<Id: 6> Reference Delta QP: 2
02:17:30.355: [AMF] [H264]<Id: 6> Intra-Refresh:
02:17:30.355: [AMF] [H264]<Id: 6> Number of Macroblocks Per Slot: 0
02:17:30.355: [AMF] [H264]<Id: 6> Number of Stripes: 2147483647
02:17:30.355: [AMF] [H264]<Id: 6> Slicing:
02:17:30.355: [AMF] [H264]<Id: 6> Mode: 140710114559804
02:17:30.355: [AMF] [H264]<Id: 6> Slices Per Frame: 1
02:17:30.355: [AMF] [H264]<Id: 6> Control Mode: Unknown 0
02:17:30.355: [AMF] [H264]<Id: 6> Control Size: 0
02:17:30.355: [AMF] [H264]<Id: 6> Maximum Slice Size: 2147483647
02:17:30.355: [AMF] [H264]<Id: 6> Experimental:
02:17:30.355: [AMF] [H264]<Id: 6> Low Latency: Disabled
02:17:30.355: [AMF] [H264]<Id: 6> Ultra Low Latency: Disabled
02:17:30.355: [Media Foundation AAC: 'Track1']: encoder created
02:17:30.355: bitrate: 192
02:17:30.355: channels: 2
02:17:30.355: sample rate: 44100
02:17:30.355: bits-per-sample: 16
02:17:30.355:
02:17:30.356: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
02:17:30.426: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 100 mbps)
02:17:30.807: [rtmp stream: 'adv_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
02:17:30.807: [rtmp stream: 'adv_stream'] New socket loop enabled by user
02:17:30.905: [AMF] <Id: 6> Initial Frame Latency is 57554900 nanoseconds.
02:17:30.988: socket_thread_windows: Increasing send buffer to ISB 131072 (buffer: 0 / 131072)
02:17:31.131: socket_thread_windows: Increasing send buffer to ISB 262144 (buffer: 0 / 131072)
02:17:40.942: socket_thread_windows: Increasing send buffer to ISB 524288 (buffer: 0 / 131072)
02:18:45.922: [AMF] <Id: 6> No output Packet, encoder is overloaded!
02:19:04.475: [AMF] <Id: 6> No output Packet, encoder is overloaded!
02:27:03.749: [rtmp stream: 'adv_stream'] User stopped the stream
02:27:03.749: socket_thread_windows: Normal exit
02:27:03.750: Output 'adv_stream': stopping
02:27:03.750: Output 'adv_stream': Total encoded frames: 4294715408
02:27:03.750: Output 'adv_stream': Total drawn frames: 34403
02:27:03.750: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 144 (0.4%)
02:27:03.751: Video stopped, number of skipped frames due to encoding lag: 7/34376 (0.0%)
02:27:03.754: ==== Streaming Stop ================================================
 

Mr.Blaze

New Member
I have the same issues, I tried everything, and it's almost a month that I have this problem.
I really don't know what to do, I finished the possible problems in my set up.

The fact that really piss me off is that there are lots of people in this situation, and there isn't a true answer.

Why there is a buffer increase? why I have the "Error 10053"? There are answers for this questions or I just can't stream?

Because I really like obs, and I'd like to stream to.
 

R1CH

Forum Admin
Developer
10053 means your OS closed the connection because it thought the connection had timed out or some other error occurred. Your OBS log however shows "5 ms since last send" which means just 5ms ago it was able to successfully send data, so it's very unlikely a timeout occurred.

A few other things may also cause this. Firewall / security software could be messing with the connection and breaking it. Your router may not be renewing your DHCP lease properly, resulting in transient loss of connectivity once your lease expires (check your network settings to see if disconnections correspond with your DHCP lease expiry). A firewall / security product may also be interfering with the DHCP requests. Finally, large system time adjustments can throw the OS timers out of whack. Make sure your system clock is synced and not running too fast / slow.
 

Mr.Blaze

New Member
First of all, thanks for the reply.

I tried what you suggested: I disabled the Firewall, I synchronized the system clock, I even changed the router but nothing changed.

I talk to my ISP and they told me that there are no problems with the connection and they even remove the NAT, but nothing changed.

I don't know really what to do more.

PS: the log below isn't mine but it's very similar if you want I can upload it.
PPS: I personally think that the problem is an overload of the send buffer, there is something I can do to increase its value?
 
Last edited:

shankly1985

Member
Still the same issue here I just cant work out why its happening. The annoying thing for me is I can stream for a couple days perfect and then others last 30mins..
 
Top