Question / Help OBS Disconnected. Reconnecting in a loop

mb21

New Member
I'm trying to stream on Microsoft Streams and when I configure and start stream, OBS goes into a disconnected/reconnecting loop never streaming anything.

I followed every instruction at:https://github.com/obsproject/obs-studio/wiki/Dropped-Frames-and-General-Connection-Issues
and none of them work.

I can stream successfully on Twitch with OBS
I can stream successfully to Microsoft Streams with streamlabs OBS

The part of the log that is interesting:

19:46:14.999: [rtmp stream: 'adv_stream'] Dynamic bitrate enabled. Dropped frames begone!
19:46:14.999: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef...
19:46:15.040: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps)
19:46:15.123: RTMPSockBuf_Fill, remote host closed connection
19:46:15.123: Output 'adv_stream': Reconnecting in 5 seconds..
19:46:15.123: [rtmp stream: 'adv_stream'] Connection to rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef failed: -3

Any help is super appreciated. Thanks.

Clean Log:
19:45:34.105: [FFmpeg aac encoder: 'avc_aac_stream'] bitrate: 192, channels: 2, channel_layout: 3 19:45:34.105: 19:45:34.107: [rtmp stream: 'adv_stream'] Dynamic bitrate enabled. Dropped frames begone! 19:45:34.107: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef... 19:45:34.234: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps) 19:45:34.412: [rtmp stream: 'adv_stream'] Connection to rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef successful 19:45:34.412: [rtmp stream: 'adv_stream'] New socket loop enabled by user 19:45:34.412: [rtmp stream: 'adv_stream'] Low latency mode enabled by user 19:45:34.421: ==== Streaming Start =============================================== 19:45:37.137: socket_thread_windows: Received FD_CLOSE, 49 ms since last send (buffer: 19945 / 344576) 19:45:37.137: socket_thread_windows: Aborting due to FD_CLOSE, error 0 19:45:37.155: [rtmp stream: 'adv_stream'] Disconnected from rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef 19:45:37.155: Output 'adv_stream': stopping 19:45:37.155: Output 'adv_stream': Total frames output: 144 19:45:37.155: Output 'adv_stream': Total drawn frames: 183 19:45:37.156: Output 'adv_stream': Reconnecting in 5 seconds.. 19:45:37.246: warning: 2 frames left in the queue on closing 19:45:42.157: [jim-nvenc: 'streaming_h264'] scaling enabled, falling back to ffmpeg 19:45:42.157: --------------------------------- 19:45:42.157: [NVENC encoder: 'streaming_h264'] settings: 19:45:42.157: rate_control: CBR 19:45:42.157: bitrate: 2500 19:45:42.157: cqp: 0 19:45:42.157: keyint: 120 19:45:42.157: preset: hq 19:45:42.157: profile: high 19:45:42.157: width: 1280 19:45:42.157: height: 720 19:45:42.157: 2-pass: false 19:45:42.157: b-frames: 4 19:45:42.157: GPU: 0 19:45:42.157: 19:45:42.334: --------------------------------- 19:45:42.334: [FFmpeg aac encoder: 'avc_aac_stream'] bitrate: 192, channels: 2, channel_layout: 3 19:45:42.334: 19:45:42.335: [rtmp stream: 'adv_stream'] Dynamic bitrate enabled. Dropped frames begone! 19:45:42.335: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef... 19:45:42.373: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps) 19:45:42.480: [rtmp stream: 'adv_stream'] Connection to rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef successful 19:45:42.480: [rtmp stream: 'adv_stream'] New socket loop enabled by user 19:45:42.480: [rtmp stream: 'adv_stream'] Low latency mode enabled by user 19:45:45.305: socket_thread_windows: Received FD_CLOSE, 50 ms since last send (buffer: 19091 / 344576) 19:45:45.305: socket_thread_windows: Aborting due to FD_CLOSE, error 0 19:45:45.309: [rtmp stream: 'adv_stream'] Disconnected from rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef 19:45:45.309: Output 'adv_stream': stopping 19:45:45.309: Output 'adv_stream': Total frames output: 149 19:45:45.309: Output 'adv_stream': Total drawn frames: 178 19:45:45.309: Output 'adv_stream': Reconnecting in 5 seconds.. 19:45:45.369: warning: 2 frames left in the queue on closing 19:45:50.309: [jim-nvenc: 'streaming_h264'] scaling enabled, falling back to ffmpeg 19:45:50.309: --------------------------------- 19:45:50.309: [NVENC encoder: 'streaming_h264'] settings: 19:45:50.309: rate_control: CBR 19:45:50.309: bitrate: 2500 19:45:50.309: cqp: 0 19:45:50.309: keyint: 120 19:45:50.309: preset: hq 19:45:50.309: profile: high 19:45:50.309: width: 1280 19:45:50.309: height: 720 19:45:50.309: 2-pass: false 19:45:50.309: b-frames: 4 19:45:50.309: GPU: 0 19:45:50.309: 19:45:50.507: --------------------------------- 19:45:50.507: [FFmpeg aac encoder: 'avc_aac_stream'] bitrate: 192, channels: 2, channel_layout: 3 19:45:50.507: 19:45:50.508: [rtmp stream: 'adv_stream'] Dynamic bitrate enabled. Dropped frames begone! 19:45:50.508: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef... 19:45:50.508: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps) 19:45:50.657: [rtmp stream: 'adv_stream'] Connection to rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef successful 19:45:50.657: [rtmp stream: 'adv_stream'] New socket loop enabled by user 19:45:50.657: [rtmp stream: 'adv_stream'] Low latency mode enabled by user 19:45:53.467: socket_thread_windows: Received FD_CLOSE, 49 ms since last send (buffer: 16568 / 344576) 19:45:53.467: socket_thread_windows: Aborting due to FD_CLOSE, error 0 19:45:53.483: [rtmp stream: 'adv_stream'] Disconnected from rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef 19:45:53.483: Output 'adv_stream': stopping 19:45:53.483: Output 'adv_stream': Total frames output: 150 19:45:53.483: Output 'adv_stream': Total drawn frames: 179 19:45:53.483: Output 'adv_stream': Reconnecting in 5 seconds.. 19:45:53.548: warning: 2 frames left in the queue on closing 19:45:58.483: [jim-nvenc: 'streaming_h264'] scaling enabled, falling back to ffmpeg 19:45:58.484: --------------------------------- 19:45:58.484: [NVENC encoder: 'streaming_h264'] settings: 19:45:58.484: rate_control: CBR 19:45:58.484: bitrate: 2500 19:45:58.484: cqp: 0 19:45:58.484: keyint: 120 19:45:58.484: preset: hq 19:45:58.484: profile: high 19:45:58.484: width: 1280 19:45:58.484: height: 720 19:45:58.484: 2-pass: false 19:45:58.484: b-frames: 4 19:45:58.484: GPU: 0 19:45:58.484: 19:45:58.670: --------------------------------- 19:45:58.670: [FFmpeg aac encoder: 'avc_aac_stream'] bitrate: 192, channels: 2, channel_layout: 3 19:45:58.670: 19:45:58.671: [rtmp stream: 'adv_stream'] Dynamic bitrate enabled. Dropped frames begone! 19:45:58.671: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef... 19:45:58.711: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps) 19:45:58.851: [rtmp stream: 'adv_stream'] Connection to rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef successful 19:45:58.851: [rtmp stream: 'adv_stream'] New socket loop enabled by user 19:45:58.851: [rtmp stream: 'adv_stream'] Low latency mode enabled by user 19:46:01.675: socket_thread_windows: Received FD_CLOSE, 50 ms since last send (buffer: 17297 / 344576) 19:46:01.675: socket_thread_windows: Aborting due to FD_CLOSE, error 0 19:46:01.683: [rtmp stream: 'adv_stream'] Disconnected from rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef 19:46:01.683: Output 'adv_stream': stopping 19:46:01.683: Output 'adv_stream': Total frames output: 150 19:46:01.683: Output 'adv_stream': Total drawn frames: 181 19:46:01.683: Output 'adv_stream': Reconnecting in 5 seconds.. 19:46:01.750: warning: 2 frames left in the queue on closing 19:46:06.684: [jim-nvenc: 'streaming_h264'] scaling enabled, falling back to ffmpeg 19:46:06.684: --------------------------------- 19:46:06.684: [NVENC encoder: 'streaming_h264'] settings: 19:46:06.684: rate_control: CBR 19:46:06.684: bitrate: 2500 19:46:06.684: cqp: 0 19:46:06.684: keyint: 120 19:46:06.684: preset: hq 19:46:06.684: profile: high 19:46:06.684: width: 1280 19:46:06.684: height: 720 19:46:06.684: 2-pass: false 19:46:06.684: b-frames: 4 19:46:06.684: GPU: 0 19:46:06.684: 19:46:06.875: --------------------------------- 19:46:06.875: [FFmpeg aac encoder: 'avc_aac_stream'] bitrate: 192, channels: 2, channel_layout: 3 19:46:06.875: 19:46:06.876: [rtmp stream: 'adv_stream'] Dynamic bitrate enabled. Dropped frames begone! 19:46:06.876: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef... 19:46:06.876: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps) 19:46:06.991: [rtmp stream: 'adv_stream'] Connection to rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef successful 19:46:06.991: [rtmp stream: 'adv_stream'] New socket loop enabled by user 19:46:06.991: [rtmp stream: 'adv_stream'] Low latency mode enabled by user 19:46:09.802: socket_thread_windows: Received FD_CLOSE, 50 ms since last send (buffer: 17412 / 344576) 19:46:09.802: socket_thread_windows: Aborting due to FD_CLOSE, error 0 19:46:09.817: [rtmp stream: 'adv_stream'] Disconnected from rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef 19:46:09.817: Output 'adv_stream': stopping 19:46:09.817: Output 'adv_stream': Total frames output: 150 19:46:09.817: Output 'adv_stream': Total drawn frames: 177 19:46:09.817: Output 'adv_stream': Reconnecting in 5 seconds.. 19:46:09.892: warning: 2 frames left in the queue on closing 19:46:14.817: [jim-nvenc: 'streaming_h264'] scaling enabled, falling back to ffmpeg 19:46:14.818: --------------------------------- 19:46:14.818: [NVENC encoder: 'streaming_h264'] settings: 19:46:14.818: rate_control: CBR 19:46:14.818: bitrate: 2500 19:46:14.818: cqp: 0 19:46:14.818: keyint: 120 19:46:14.818: preset: hq 19:46:14.818: profile: high 19:46:14.818: width: 1280 19:46:14.818: height: 720 19:46:14.818: 2-pass: false 19:46:14.818: b-frames: 4 19:46:14.818: GPU: 0 19:46:14.818: 19:46:14.998: --------------------------------- 19:46:14.998: [FFmpeg aac encoder: 'avc_aac_stream'] bitrate: 192, channels: 2, channel_layout: 3 19:46:14.998: 19:46:14.999: [rtmp stream: 'adv_stream'] Dynamic bitrate enabled. Dropped frames begone! 19:46:14.999: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef... 19:46:15.040: [rtmp stream: 'adv_stream'] Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps) 19:46:15.123: RTMPSockBuf_Fill, remote host closed connection 19:46:15.123: Output 'adv_stream': Reconnecting in 5 seconds.. 19:46:15.123: [rtmp stream: 'adv_stream'] Connection to rtmp://ccnu2k5cf5jyu2c4j5gf2s4pic-t6eoajxd2ymqejo543xx4ud6zb-uswe.channel.media.azure.net:1935/live/aa79530ef8074f3d8479be76f72fe9ef failed: -3
 

mb21

New Member
I'm willing to do more work to debug, however I'm stuck at this point. Can someone hint me in a direction?
 

R1CH

Forum Admin
Developer
The disconnection is coming from the remote end or an intermediate network device.
 

mb21

New Member
The disconnection is coming from the remote end or an intermediate network device.
I'm willing to accept this hypothesis, however why does streamlabs obs, based on version 0.21.2 of OBS works flawlessly.
It would seem that a bug made its way into core OBS between when Streamlabs took a drop of OBS and now.

I just ran a live stream for 35 minutes on streamlabs OBS with no drops, no disconnect/reconnections and a constant bitrate.

Immediately afterwords, I fired up OBS in the same configuration and could not get the stream to be stable, and OBS continually disconnected/reconnected.

Is it possible the way OBS connects to the RTMP stream ingest server changed and is not resilient?

Does that make sense?
 

R1CH

Forum Admin
Developer
No, the network code hasn't changed for a long time. Have you tried disabling dynamic bitrate? Maybe your provider doesn't like it. You might also have 3rd party software interfering, the log is incomplete so it doesn't show what firewall / security software is in use. A winsock reset might help, from an admin cmd prompt:

netsh int ip reset
netsh winsock reset
 
Top