Need help with figuring out the issue

S1erra

New Member
Hello.

I have been troubleshooting my issue for days now and can't seem to figure out what is going on, so I decided to reach out to this forum in hope that maybe someone can point me into a right direction on what could be causing my issue.

I have a laptop that I sometimes stream from using OBS Studio. I have been streaming on and off from 1 to 6 hour sessions without any issues until May for about a year. At the beginning of this month my ISP was doing some fixing on their end and my internet would drop out sometimes and after they have finished their testing or whatever they were doing, I can't stream anymore. Maybe it is a coincidence I can't really tell. I called them and explained what was going on and they assured me that everything is good on their side so it must my laptop or software that I'm using.

My issues is that now whenever I start my stream, after some time passes I start losing frames and my outbound speed and bitrate drop to 0, then my stream end and reconnects again. My internet doesn't get cut out during all this and everything works fine. It's random, sometimes it happens right away, sometimes it can work for up to 5-7 minutes. I have my laptop connected via ethernet cable, I tried using a different ethernet cable and using a different ethernet wall socket as well as connecting my laptop straight into the router - no luck. Tried using my WiFi and same thing happens. I tried reinstalling OBS and playing with settings and of course googling around and see if someone else had something like this happen. I went through all troubleshooting steps provided on this forum as well. Then I decided to narrow down all the possibilities of what might be causing this. I tried another old laptop I had laying around and installed OBS on it and tested running a stream from that machine via ethernet and WiFi - no issues there, everything is stable. Same with using my phone or tablet to stream from the same network - no issues. Then I turned on my phones hotspot and connected my laptop to it's 4G internet and tried streaming like that - no issues (my phone is using a different ISP, not same as my home ISP). So now I'm confused on what the problem is my ISP or my Laptop. I also reinstalled my WLAN drivers just for the sake of it without any luck. Tried using Streamlabs OBS and tried streaming to YouTube instead of Twitch, same thing happened. I really don't want to reinstall my Windows and just desperate at this point.

My Laptop specs:
Intel Core i7-9750H 6 x 2.6 - 4.5 GHz, Coffee Lake-H
16384 MB DDR4-2666
Nvidia GeForce RTX 2070 Max-Q

Below I will attach a log with the errors I'm getting, it's always the same thing in logs.

I will surly forget some of the point I was gonna make so please ask away. Really hope to get some advice.
Thank you.
 

Attachments

  • 2021-05-14 03-37-55.txt
    10.1 KB · Views: 27

Lawrence_SoCal

Active Member
First, test used a wired Ethernet connection (not WiFi) with ABSOLUTELY nothing else using your home network (not smart devices, etc)

And, for an alternate test, try uploading a large file (ex 1GB+) that takes more than 10+ minutes, to a known stable site with large intake capability (ex OneDrive often runs around 10Mb/s max upload, so if you upload is greater than that, this test wouldn't tell you) and monitor your sustained throughput and make sure well above your streaming bitrate. Note: this has nothing to do with ANY streaming s/w, so is testing Internet connection, not streaming protocols/ports
 

S1erra

New Member
First, test used a wired Ethernet connection (not WiFi) with ABSOLUTELY nothing else using your home network (not smart devices, etc)

And, for an alternate test, try uploading a large file (ex 1GB+) that takes more than 10+ minutes, to a known stable site with large intake capability (ex OneDrive often runs around 10Mb/s max upload, so if you upload is greater than that, this test wouldn't tell you) and monitor your sustained throughput and make sure well above your streaming bitrate. Note: this has nothing to do with ANY streaming s/w, so is testing Internet connection, not streaming protocols/ports
Hey. Thanks for your reply! I was using ethernet cable connection before, I was testing it on WiFI just to see if maybe that would work.

I did what you said. I unplugged everything from my router except 1 ethernet cable that I use for my laptop, ran a stream and same thing happened, my upload speed throttled down and OBS got disconnected. Here is a log:

00:52:23.239: ==== Streaming Start ===============================================
01:00:44.723: WriteN, RTMP send error 10054 (4097 bytes)
01:00:44.723: WriteN, RTMP send error 10054 (79 bytes)
01:00:44.723: WriteN, RTMP send error 10038 (42 bytes)
01:00:44.723: [rtmp stream: 'simple_stream'] Disconnected from rtmp://hel.contribute.live-video.net/app
01:00:44.723: Output 'simple_stream': stopping
01:00:44.723: Output 'simple_stream': Total frames output: 29335 (30080 attempted)
01:00:44.723: Output 'simple_stream': Total drawn frames: 30182
01:00:44.723: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 745 (2.5%)
01:00:44.723: Output 'simple_stream': Reconnecting in 10 seconds..
01:00:44.724: [rtmp stream: 'simple_stream'] Freeing 1271 remaining packets
01:00:48.510: ==== Streaming Stop ================================================
01:01:43.904: ==== Shutting down ==================================================
01:01:44.832: WASAPI: Device 'Speakers (Realtek(R) Audio)' Terminated
01:01:44.835: WASAPI: Device 'Microphone Array (Realtek(R) Audio)' Terminated
01:01:44.837: All scene data cleared
01:01:44.837: ------------------------------------------------
01:01:44.940: [Scripting] Total detached callbacks: 0
01:01:44.944: Freeing OBS context data
01:01:44.944: 1 output(s) were remaining
01:01:44.972: == Profiler Results =============================
01:01:44.972: run_program_init: 1520.7 ms
01:01:44.972: ┣OBSApp::AppInit: 11.975 ms
01:01:44.972: ┃ ┗OBSApp::InitLocale: 1.879 ms
01:01:44.972: ┗OBSApp::OBSInit: 1499.62 ms
01:01:44.972: ┣obs_startup: 3.395 ms
01:01:44.972: ┗OBSBasic::OBSInit: 1303.62 ms
01:01:44.972: ┣OBSBasic::InitBasicConfig: 0.317 ms
01:01:44.972: ┣OBSBasic::ResetAudio: 0.121 ms
01:01:44.972: ┣OBSBasic::ResetVideo: 493.218 ms
01:01:44.972: ┣OBSBasic::InitOBSCallbacks: 0.006 ms
01:01:44.972: ┣OBSBasic::InitHotkeys: 0.042 ms
01:01:44.972: ┣obs_load_all_modules: 141.92 ms
01:01:44.972: ┃ ┣obs_init_module(coreaudio-encoder.dll): 4.157 ms
01:01:44.972: ┃ ┣obs_init_module(decklink-captions.dll): 0.02 ms
01:01:44.972: ┃ ┣obs_init_module(decklink-ouput-ui.dll): 0.456 ms
01:01:44.972: ┃ ┣obs_init_module(enc-amf.dll): 22.096 ms
01:01:44.972: ┃ ┣obs_init_module(frontend-tools.dll): 3.711 ms
01:01:44.972: ┃ ┣obs_init_module(image-source.dll): 0.006 ms
01:01:44.972: ┃ ┣obs_init_module(logi_obs_plugin_x64.dll): 1.454 ms
01:01:44.972: ┃ ┣obs_init_module(obs-browser.dll): 0.238 ms
01:01:44.972: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.726 ms
01:01:44.972: ┃ ┃ ┗nvenc_check: 0.687 ms
01:01:44.972: ┃ ┣obs_init_module(obs-filters.dll): 0.032 ms
01:01:44.972: ┃ ┣obs_init_module(obs-outputs.dll): 0.009 ms
01:01:44.972: ┃ ┣obs_init_module(obs-qsv11.dll): 65.092 ms
01:01:44.972: ┃ ┣obs_init_module(obs-text.dll): 0.187 ms
01:01:44.972: ┃ ┣obs_init_module(obs-transitions.dll): 0.01 ms
01:01:44.972: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
01:01:44.972: ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
01:01:44.972: ┃ ┣obs_init_module(rtmp-services.dll): 0.914 ms
01:01:44.972: ┃ ┣obs_init_module(text-freetype2.dll): 0.062 ms
01:01:44.972: ┃ ┣obs_init_module(vlc-video.dll): 0.029 ms
01:01:44.972: ┃ ┣obs_init_module(win-capture.dll): 2.513 ms
01:01:44.972: ┃ ┣obs_init_module(win-decklink.dll): 3.321 ms
01:01:44.972: ┃ ┣obs_init_module(win-dshow.dll): 0.959 ms
01:01:44.972: ┃ ┣obs_init_module(win-mf.dll): 0 ms
01:01:44.972: ┃ ┣obs_init_module(win-wasapi.dll): 0.014 ms
01:01:44.972: ┃ ┗reset_win32_symbol_paths: 0.206 ms
01:01:44.972: ┣OBSBasic::ResetOutputs: 8.405 ms
01:01:44.972: ┣OBSBasic::CreateHotkeys: 0.046 ms
01:01:44.972: ┣OBSBasic::InitService: 2.051 ms
01:01:44.973: ┣OBSBasic::InitPrimitives: 0.1 ms
01:01:44.973: ┗OBSBasic::Load: 92.083 ms
01:01:44.973: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.004 ms, max=0.388 ms, 99th percentile=0.14 ms, 100% below 25 ms
01:01:44.973: audio_thread(Audio): min=0 ms, median=0.412 ms, max=2.469 ms, 99th percentile=1.071 ms
01:01:44.973: ┗receive_audio: min=0.003 ms, median=0.389 ms, max=1.675 ms, 99th percentile=1.055 ms, 0.863703 calls per parent call
01:01:44.973: ┣buffer_audio: min=0 ms, median=0 ms, max=0.123 ms, 99th percentile=0.001 ms
01:01:44.973: ┗do_encode: min=0.241 ms, median=0.386 ms, max=1.671 ms, 99th percentile=1.053 ms
01:01:44.973: ┗encode(simple_aac): min=0.235 ms, median=0.377 ms, max=1.665 ms, 99th percentile=1.045 ms
01:01:44.973: obs_graphics_thread(16.6667 ms): min=0.079 ms, median=0.799 ms, max=3.454 ms, 99th percentile=1.068 ms, 100% below 16.667 ms
01:01:44.973: ┣tick_sources: min=0.001 ms, median=0.404 ms, max=2.35 ms, 99th percentile=0.591 ms
01:01:44.973: ┣output_frame: min=0.068 ms, median=0.316 ms, max=0.852 ms, 99th percentile=0.481 ms
01:01:44.973: ┃ ┗gs_context(video->graphics): min=0.068 ms, median=0.315 ms, max=0.851 ms, 99th percentile=0.481 ms
01:01:44.973: ┃ ┣render_video: min=0.005 ms, median=0.285 ms, max=0.75 ms, 99th percentile=0.428 ms
01:01:44.973: ┃ ┃ ┣render_main_texture: min=0.003 ms, median=0.02 ms, max=0.206 ms, 99th percentile=0.035 ms
01:01:44.973: ┃ ┃ ┣render_convert_texture: min=0.009 ms, median=0.017 ms, max=0.14 ms, 99th percentile=0.036 ms, 0.880468 calls per parent call
01:01:44.973: ┃ ┃ ┗output_gpu_encoders: min=0 ms, median=0.028 ms, max=0.234 ms, 99th percentile=0.096 ms, 0.880468 calls per parent call
01:01:44.973: ┃ ┗gs_flush: min=0.011 ms, median=0.026 ms, max=0.762 ms, 99th percentile=0.183 ms
01:01:44.973: ┗render_displays: min=0 ms, median=0.078 ms, max=3.347 ms, 99th percentile=0.183 ms
01:01:44.973: =================================================
01:01:44.973: == Profiler Time Between Calls ==================
01:01:44.973: obs_hotkey_thread(25 ms): min=24.805 ms, median=25.924 ms, max=29.43 ms, 11.4022% within ±2% of 25 ms (0% lower, 88.5978% higher)
01:01:44.973: obs_graphics_thread(16.6667 ms): min=0.603 ms, median=16.667 ms, max=34.017 ms, 99.9503% within ±2% of 16.667 ms (0.0263358% lower, 0.0234096% higher)
01:01:44.973: =================================================
01:01:44.995: Number of memory leaks: 1

Then I tired to upload a 2GB file to OneDrive and it was pretty quick and stable at around 20-100 mb per second.

I reinstalled my windows today in hopes that it would fix it, but it didnt. I also went to my friends house to run a test stream there, he has same ISP and unfortunately same issue happened there.
 

qhobbes

Active Member
Settings > Advanced > Network > Make sure "Enable Network Optimizations" is checked. Also enable dynamic bitrate to reduce dropped frames.
 

S1erra

New Member
Settings > Advanced > Network > Make sure "Enable Network Optimizations" is checked. Also enable dynamic bitrate to reduce dropped frames.
I have tried that, without any luck. Tried changing codec and all the things imaginable, still stream fails after a few minutes :(
 

S1erra

New Member
Here is my speedtest

1231515151.jpg
 

qhobbes

Active Member
Create a restream.io account, add Twitch account to restream.io account, set OBS to use restream.io
 

S1erra

New Member
I found this thread that mentions MTU change but I cannot open the link provided. Maybe someone else can?

 

S1erra

New Member
Oh I also tried and ran TwitchTester for a long 5 minute test today, before I was doing 1 minute and more servers were OK. This is what I got with 5 minutes..
 

Attachments

  • 152351351.png
    152351351.png
    30.3 KB · Views: 76

S1erra

New Member
What I don't understand is why my other laptop works fine and I can stream from my mobile devices at 1080@60 with 6000 bitrate over WiFi from the same network without any issues...
I installed a free VPN service ProntoVPN and tried to stream. 30 minutes, not a single frame drop or a disconnect...
This is truly mind boggling and don't know what to blame, my Laptops hardware/software or my ISP.
 

qhobbes

Active Member
Once you determine your MTU then
Start -> Run -> PowerShell (Must Run as Administrator)
netsh int ipv4 show subinterface
netsh int ipv4 set subinterface "InterfaceName" mtu=#### store=persistent
ipconfig /release
ipconfig /renew
 

S1erra

New Member
That didn't fix my issues unfortunately. Since I can stream without any issues using a free VPN even with a limited speed, I blame my ISP. I called them today and they finally connected me with their IT guys and they confirmed that it's their fault and there is something going on with routing. They are looking into it now.
 
Top