Framedrops after certain time, tried everything to fix

hooto

New Member
Hello there streamers and streamsupporters,

I have some weird issue that I'm not able to solve. After streaming for like 1 hour, but sometimes just our of nowhere im dropping a huge amount of frames. Since this is a common issue for any streamer and most people told me to check my preferences I already did investigate on my end. By investigate i mean, that I have been suffering and working on this issue for 2 months now. But first of all here is my settings and my rig:
CPU: AMD Ryzen 3800XT
RAM: Corsair 16 GB (2x8 Dualchannel)
GPU: NVIDIA GeForce RTX3070
Mainboard: MSI MEG X570 Unify
Network: Wifi 6 AX200 160MHz // Onboard RTL8125 Gaming 2.5GbE Ethernet Controller
My normal connection speed: (I know this doesnt give any hint on stability but you can have an idea of what it is capable of)
Bitrateissue7.png

My OBS Log: OBSLOG
My OBS Settings:
Setting1.png

Setting2.png

Setting3.png

Setting4.png

Setting5.png

Setting6.png


For my part, hardware and networkconnection should be capable of doing a 1080p 60fps stream.
Now lets get to the issue. For this I will show u my last graphs:
This is the inspector from the same timegate I uploaded the OBS log:
Bitrateissue8.png

As you can see, im running the Stream with above preferences super smoothly for about 1 hour and 20 minutes. Suddenly: BOOM
My Bitrate becomes unstable for whatever reason. Whatever I do, it seems to be there for the whole evening after appearing once. Sometimes i dont even get 1 hour before dropping. Its kinda random, when this appears.
Even after lowering my Output to 720p and running 5k upload:
Bitrateissue9_720p.png


Ok. I hope you got an idea of my issue. Now what did I do to fix it? Here is a list (no jokes btw):
  • Using Twitch Inspector and Twitch Analyzer and do all recommended options
  • Tune down output scale and bitrate
  • Change ingest Server (8 times by now)
  • Use different encoder (x264 // NVENC(NEW))
  • stream with ethernet cable, i used 3 different ones
  • tried streaming to youtube
  • made rules to firewall // turned firewall off // turned router firewall off
  • Updated Drivers: CPU, GPU, Network, Router Firmware, all attached Hardware
  • tried streaming with all sources from M2 SSD
  • tried streaming without any sources, only black screen
  • Bought a new Router for 200€
  • Open a thread at the ISP technical forum
  • unplugged all devices in my network, except for my pc (only this pc using the connection)
  • restarted Router, Computer and OBS about 5000 times
  • played a different game
  • looked for overheating at router and my rig
By any means, I tried almost anything, but not doing a post in this forum. So I'll give it a shot. Maybe someone of you is the godfather of solving streaming issues and can maybe spare some time to take a look into this. Thank you so much in advance for even reading my thread.
Cheers
hOOt // twitch.tv/hooto
 

Attachments

Run obs with administrator , try turn off - look ahead and psycho visual tuning also u can try max b-frames 2.And post your OBS log file here.
p.s. more b-frames more quality & more load on gpu but u can try set 2 and test.
 
Last edited:
And remember twitch recomend 6k bitrate but your audio is additionally uploaded.I don't know how many audio tracks u have but your stream can be buffered if it exceeds the twitch norm.Maby try 5800 bitrate and leaves 200kb for sound. and you won't exceed the twitch's recommendations
p.s. why do you need 160kbps audio? I think 128 is enough if you don't play musical instruments
 
Run obs with administrator , try turn off - look ahead and psycho visual tuning also u can try max b-frames

Running OBS as Admin is only recommended to overcome GPU priority scheduling on a maxed out system. Otherwise running as a local admin is a terrible security practice.
- turning off - look ahead and psycho visual tuning - will reduce CUDA core usage on GPU... so recommended if GPU maxed out... otherwise unlikely to be related to dropped network traffic.

My normal connection speed: (I know this doesnt give any hint on stability but you can have an idea of what it is capable of)

Hopefully you've read that those speed tests are HIGHLY optimistic for a very small amount of traffic [the opposite traffic pattern for long livestream]. So, what you need to do is a traffic consistency test. As streaming to Twitch
As you're streaming to Twitch, it's a better idea to use R1ch's TwitchTest tool to check your connection to the servers; you want a Quality score of 100, preferably. https://r1ch.net/projects/twitchtest

then not sure relevant, but something to test/check on
1. The new Windows 10 Hardware-accelerated GPU scheduling ("HAGS") added with version 2004 is currently known to cause performance and capture issues with OBS, games and overlay tools. It's a new and experimental feature and we recommend disabling it via these instructions.

I don't use Twitch, so not sure what other long-term traffic test option is available. BUT, for testing your Internet connection, you are right to
- Use Wired connection to router, make sure nothing else (wired or WiFi connected) using Internet connection
- Make sure to have monitor/logging of Internet traffic on Router so you can confirm (rather than hope/guess) that the traffic you think you are sending is truly the only outbound traffic
- Then do a true bandwidth test. For me, I uploaded a large (10+GB file) to a service with a performant ingest capability. You could try OneDrive, or any number of other targets and now monitor traffic. Make sure file large enough that transfer takes longer than your typical stream interruption.
Is your environment (PC, network, ISP, etc) capable of transmitting that large file at consistent bitrate for over an hour? If yes, then ISP/network unlikely to be issue in general (though could be IP Port or similar congestion between your ISP and its upstream network all the way to Twitch.. possibly traversing multiple public peering points.)..


Your log shows
20:45:16.571: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 674 (10.3%)
elsewhere in log shows almost 20% traffic loss due to dropped frames

Now, there is a slim chance something is running in the background on your PC that is interfering with network traffic. I ran into this with some corporate security software that was NOT configured for a 1hr plus livestream and interfered. Once I got a fresh PC (which I setup), issue went away. My point being that you could easily have set something (inadvertently) in BitDefender that is causing the interference

You screen shots show
Network - Enable network optimizations is enabled. Have you tried testing with it off?
And you may want to enable Dynamically changing bitrate to manage congestion

At this point, other than BitDefender or something similar, I'm not assuming this problem is coming from your PC. Though, like driving a vehicle blind-folded is never advisable, similar goes for monitoring hardware resource (CPU, GPU, RAM, Disk I/O, etc) utilization [for ex. using Task manager’s Performance tab and/or Resource Monitor] to see if your system is being maxed out with your settings, when doing a computationally demanding task like real-time video encoding and livestreaming which requires a network with consistent performance, especially bandwidth and Jitter.

One thing I personally find is that many 'network optimizations' folks recommend for a PC (registry edits, etc) cause more harm/problems than anything else. And some gaming computer network optimization drivers (ex. Killer Network WiFi ) have been repeatedly reported to cause problems with livestreaming. Not my thing, so I don't know which versions, settings, etc.

Your testing was extensive
However, what I don't see is streaming to something other than Twitch. Why? if that works, then you know PC, OBS, network, ISP etc all ok. And instead, is something specific to Twitch (like possibly the settings mentioned by 52rpm regarding bitrate) or a video setting, etc.
 
Thank you guys for your suggestions. I will try those tomorrow.
Your testing was extensive
However, what I don't see is streaming to something other than Twitch. Why? if that works, then you know PC, OBS, network, ISP etc all ok. And instead, is something specific to Twitch (like possibly the settings mentioned by 52rpm regarding bitrate) or a video setting, etc.
I tried streaming to youtube. Same or even worse issues came up.

I am btw in contact with my ISP doing PingPlotterTests all day long. But as you have considered, its again small traffic being sent there.

I will try 52rpm's and your advices and repost my logs again. Thank you for helping so far!
 
Game DVR: On - why ? must be off

23:22:25.619: DXGI increase maximum frame latency success
23:22:25.619: D3D11 GPU priority setup failed (not admin?)

not run with administartor?

01:04:02.313: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1 (0.0%)
01:04:02.313: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 7436 (2.8%)
01:04:02.313: Video stopped, number of skipped frames due to encoding lag: 1/265333 (0.0%)


man u have problem with upload maby your internet to slow for that bitrate !!! use max 50-60% from your total upload u need save lil bit upload for gaming etc.. i see in log file

dropped frames due to insufficient bandwidth/connection stalls: 7436 (2.8%)

check your speed with www.fast.com or
u need check UPLOAD speed not download !


and u can use this for calculate
u dont have problem with encoding and rendering u have u have drop frames because problem = internet upload speed / connection


+ if u have 120Hz + monitor u can set main monitor to 120hz and second on 60hz and stream.Not 144 but 120
 
Game DVR: On - why ? must be off

23:22:25.619: DXGI increase maximum frame latency success
23:22:25.619: D3D11 GPU priority setup failed (not admin?)

not run with administartor?

01:04:02.313: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1 (0.0%)
01:04:02.313: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 7436 (2.8%)
01:04:02.313: Video stopped, number of skipped frames due to encoding lag: 1/265333 (0.0%)


man u have problem with upload maby your internet to slow for that bitrate !!! use max 50-60% from your total upload u need save lil bit upload for gaming etc.. i see in log file

dropped frames due to insufficient bandwidth/connection stalls: 7436 (2.8%)

check your speed with www.fast.com or
u need check UPLOAD speed not download !


and u can use this for calculate
u dont have problem with encoding and rendering u have u have drop frames because problem = internet upload speed / connection


+ if u have 120Hz + monitor u can set main monitor to 120hz and second on 60hz and stream.Not 144 but 120

Oh yes, it was Administrator before so i changed it because i thought you wanted me (you suggested to run as admin).
And my Internetspeed is shown on the original post. Its enough for 8 times the speed i need for twitch (which is 6000kbps).
I turned of this DVR Stuff, it was still capturing audio.

Will try the settings later today. :)
 
maby server where u stream is slow? RTMP URL rtmp://fra02.contribute.live-video.net/app. try another server
in windows u can turn off background apps.

u can use this small tool to find best twitch server for u.

 
Back
Top