Question / Help Stream starts out fine, then becomes laggy later on

Jeffrey Veenhuis

New Member
Hey guys, been trying to find a solution for a particular problem I'm having.

So I'm using OBS Studio to record or stream, whichever I prefer at the time.
Recording usually goes fine and most recordings are perfect (sometimes there are 10-20 seconds of lag/stuttering but it's rare).
However when I'm streaming, the longer the stream goes on the laggier and unwatchable the stream becomes.

I've uploaded all my logs in a zip here since I can't seem to get the zip attached to the forum for some reason.

I'm noticing lines like: 03:35:37.018: Number of memory leaks: 9
Although I can't see where it's from, I do have a Killer Network card that's notorious for memory leaks but I only got the clean driver installed and not the suite.

Also nothing this

03:35:34.095: Output 'adv_stream': Total encoded frames: 818261
03:35:34.095: Output 'adv_stream': Total drawn frames: 818796
03:35:34.095: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 111944 (13.7%)
03:35:34.096: Video stopped, number of skipped frames due to encoding lag: 25083/818696 (3.1%)

So there's something going on that makes my stream messed up.

I use 2 different profiles for recording and streaming and I pretty much always stream using the GPU because I can get better quality out of that then I can with CPU streaming (which has a negative influence on my FPS).

I use 30000 bitrate for local recording and 6000 for streaming.

Hope anybody can help me with this because these issues are getting pretty frustrating.

Here are the streams I did last night: https://www.twitch.tv/videos/146395079 and https://www.twitch.tv/videos/146466663

Here are the processes which are usually open: https://pastebin.com/fKgJC8yk

And if you missed the logfiles earlier, here they are again: https://puu.sh/vYS1p/74b5a9d430.zip
 

Attachments

  • logs.zip
    60.9 KB · Views: 16

Jeffrey Veenhuis

New Member
Can't find anywhere in the rules if it's okasy to bump a topic up but I'm already on page 4 and it doesn't seem like I'm going to get some help so hopefully people can help me out a bit :)
 

Jeffrey Veenhuis

New Member
It is limited to 154 (10 fps higher then 144hz) Any lower than that and my 144 hz screen is useless.
I never had this issue. This issue came spontaneously.

In the following video you can see it happening but the FPS doesn't seem to change: https://youtu.be/Rw-nF6hnZSk?t=700 (not reencoded, OBS video uploadded straight to YT).

Ingame I feel nothing happening.
 

Xaymar

Active Member
Please try to reproduce the issue, close OBS, open OBS and then instead of clicking "Upload Current Log File" click "Upload Last Log File" and post the link to it here. The only issue I see in the log here is that the GPU had issues rendering.
 

Jeffrey Veenhuis

New Member
New log: https://gist.github.com/anonymous/27716df4c488f2bd4f4f0edf008609df

This all doesn't make sense, here's AfterBurnign with Monitoring, GPU is consistently below 100% usage.

fj65pDZ.png


Stream vod of yesterday: https://www.twitch.tv/videos/148724691

There isn't any other issues actually playing it. FPS stays a solid 154....
 

Osiris

Active Member
Which pci-express speed is the card running at? Not sure if Afterburner also shows that, GPU-Z definitely does.
 

Xaymar

Active Member
Code:
18:52:16.042: Output 'adv_stream': stopping
18:52:16.042: Output 'adv_stream': Total encoded frames: 152775
18:52:16.042: Output 'adv_stream': Total drawn frames: 153022
18:52:16.042: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 62934 (41.1%)
18:52:16.042: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 1274 (0.8%)
18:52:16.046: Video stopped, number of skipped frames due to encoding lag: 53620/152917 (35.1%)

18:52:16.434: obs_video_thread(16.6667 ms): min=0.371 ms, median=2.851 ms, max=858.128 ms, 99th percentile=45.613 ms, 93.6194% below 16.667 ms
18:52:16.434: ┣tick_sources: min=0.001 ms, median=0.021 ms, max=711.472 ms, 99th percentile=4.86 ms
18:52:16.434: ┣render_displays: min=0.001 ms, median=0.347 ms, max=787.144 ms, 99th percentile=19.009 ms
18:52:16.434: ┗output_frame: min=0.114 ms, median=1.489 ms, max=717.017 ms, 99th percentile=30.203 ms
18:52:16.434: ┣gs_context(video->graphics): min=0.064 ms, median=0.693 ms, max=716.001 ms, 99th percentile=25.234 ms
18:52:16.434: ┃ ┣render_video: min=0.02 ms, median=0.178 ms, max=715.068 ms, 99th percentile=12.917 ms
18:52:16.434: ┃ ┃ ┣render_main_texture: min=0.001 ms, median=0.056 ms, max=711.088 ms, 99th percentile=9.627 ms
18:52:16.434: ┃ ┃ ┣render_output_texture: min=0.001 ms, median=0.007 ms, max=81.611 ms, 99th percentile=0.692 ms
18:52:16.435: ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.008 ms, max=61.543 ms, 99th percentile=0.75 ms
18:52:16.435: ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.003 ms, max=178.466 ms, 99th percentile=3.841 ms
18:52:16.435: ┃ ┣download_frame: min=0 ms, median=0.002 ms, max=151.131 ms, 99th percentile=15.878 ms
18:52:16.435: ┃ ┗gs_flush: min=0.014 ms, median=0.176 ms, max=405.438 ms, 99th percentile=9.931 ms
18:52:16.435: ┗output_video_data: min=0 ms, median=0.429 ms, max=282.72 ms, 99th percentile=11.992 ms

18:52:16.435: video_thread(video): min=0 ms, median=2.56 ms, max=22952.5 ms, 99th percentile=246.494 ms
18:52:16.435: ┗receive_video: min=0 ms, median=3.954 ms, max=1547.32 ms, 99th percentile=108.699 ms, 2.06522 calls per parent call
18:52:16.435: ┗do_encode: min=0.615 ms, median=3.95 ms, max=1547.32 ms, 99th percentile=108.603 ms
18:52:16.435: ┗encode(streaming_h264): min=0.602 ms, median=3.788 ms, max=1546.48 ms, 99th percentile=104.582 ms

Still showing the same issue, your GPU is overloaded. Make sure that there are no 'Game Mode' tools enabled (Avast, Windows, ...) and that you have OBS whitelisted in all AV software. GPU encoding is also taking a long time, very likely due to the overclock you have applied. If you have any overclocking applied through MSI Afterburner, remove them.
 
Top