Question / Help My stream lags and my ping gets higher ingame.

bakathekawaii

New Member
First time ever posting on this forum so i'm sorry if something is wrong. Recently i wanted to start streaming, downloaded OBS studio for the first time and looked up a lot of tutorials and etc, however, there is a small lag when i stream, the screen freezes for 2-3s and then goes back to normal, but it always has this freeze.
Also, my game ping goes from 40 to 140 or somewhere around there, my download speed is about 25, and my upload is 2 (i know it is pretty bad but it's what i can afford), the game i'm trying to stream is League of legends.
Hopefully someone can share some light on the problem, here's the log:

19:15:37.126: CPU Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
19:15:37.126: CPU Speed: 3400MHz
19:15:37.126: Physical Cores: 4, Logical Cores: 8
19:15:37.126: Physical Memory: 8136MB Total, 3859MB Free
19:15:37.126: Windows Version: 10.0 Build 17134 (revision: 885; 64-bit)
19:15:37.126: Running as administrator: false
19:15:37.126: Aero is Enabled (Aero is always on for windows 8 and above)
19:15:37.126: Windows 10 Gaming Features:
19:15:37.126: Game DVR: On
19:15:37.128: Sec. Software Status:
19:15:37.130: Avast Antivirus: enabled (AV)
19:15:37.130: Windows Defender Antivirus: disabled (AV)
19:15:37.130: Firewall do Windows: enabled (FW)
19:15:37.131: Windows Defender Antivirus: disabled (ASW)
19:15:37.131: Avast Antivirus: enabled (ASW)
19:15:37.131: Current Date/Time: 2019-07-18, 19:15:37
19:15:37.131: Browser Hardware Acceleration: true
19:15:37.131: Portable mode: false
19:15:37.565: OBS 23.2.1 (64-bit, windows)
19:15:37.565: ---------------------------------
19:15:37.566: ---------------------------------
19:15:37.566: audio settings reset:
19:15:37.566: samples per sec: 48000
19:15:37.566: speakers: 2
19:15:37.568: ---------------------------------
19:15:37.569: Initializing D3D11...
19:15:37.569: Available Video Adapters:
19:15:37.570: Adapter 0: NVIDIA GeForce GT 640
19:15:37.570: Dedicated VRAM: 2104754176
19:15:37.570: Shared VRAM: 4265707520
19:15:37.571: output 0: pos={0, 0}, size={1366, 768}, attached=true
19:15:37.573: Loading up D3D11 on adapter NVIDIA GeForce GT 640 (0)
19:15:37.642: D3D11 loaded successfully, feature level used: 45056
19:15:38.636: ---------------------------------
19:15:38.636: video settings reset:
19:15:38.636: base resolution: 1366x768
19:15:38.636: output resolution: 1280x720
19:15:38.636: downscale filter: Bicubic
19:15:38.636: fps: 60/1
19:15:38.636: format: NV12
19:15:38.636: YUV mode: 601/Partial
19:15:38.636: NV12 texture support enabled
19:15:38.639: Audio monitoring device:
19:15:38.639: name: Default
19:15:38.639: id: default
19:15:38.639: ---------------------------------
19:15:38.648: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
19:15:38.649: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
19:15:38.703: [AMF] AMF Test failed due to one or more errors.
19:15:38.703: Failed to initialize module 'enc-amf.dll'
19:15:38.728: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
19:15:38.731: [obs-browser]: Version 2.4.0
19:15:38.737: NVENC supported
19:15:38.825: Couldn't find VLC installation, VLC video source disabled
19:15:38.832: No blackmagic support
19:15:38.838: ---------------------------------
19:15:38.838: Loaded Modules:
19:15:38.838: win-wasapi.dll
19:15:38.838: win-mf.dll
19:15:38.838: win-dshow.dll
19:15:38.838: win-decklink.dll
19:15:38.838: win-capture.dll
19:15:38.838: vlc-video.dll
19:15:38.838: text-freetype2.dll
19:15:38.838: rtmp-services.dll
19:15:38.838: obs-x264.dll
19:15:38.838: obs-vst.dll
19:15:38.838: obs-transitions.dll
19:15:38.838: obs-text.dll
19:15:38.838: obs-qsv11.dll
19:15:38.838: obs-outputs.dll
19:15:38.838: obs-filters.dll
19:15:38.838: obs-ffmpeg.dll
19:15:38.838: obs-browser.dll
19:15:38.838: image-source.dll
19:15:38.838: frontend-tools.dll
19:15:38.838: enc-amf.dll
19:15:38.838: decklink-ouput-ui.dll
19:15:38.838: coreaudio-encoder.dll
19:15:38.838: ---------------------------------
19:15:38.838: ==== Startup complete ===============================================
19:15:38.843: All scene data cleared
19:15:38.843: ------------------------------------------------
19:15:38.896: WASAPI: Device 'Alto-falantes (VIA HD Audio(Win 10))' initialized
19:15:39.268: [window-capture: 'Captura de Janela'] update settings:
19:15:39.268: executable: LeagueClientUx.exe
19:15:39.269: Switched to scene 'Cena'
19:15:39.270: ------------------------------------------------
19:15:39.270: Loaded scenes:
19:15:39.270: - scene 'Cena':
19:15:39.270: - source: 'Captura de jogo' (game_capture)
19:15:39.270: - source: 'Captura de Janela' (window_capture)
19:15:39.270: ------------------------------------------------
19:16:43.823: ---------------------------------
19:16:43.823: video settings reset:
19:16:43.823: base resolution: 1366x768
19:16:43.823: output resolution: 780x438
19:16:43.823: downscale filter: Bicubic
19:16:43.823: fps: 60/1
19:16:43.823: format: NV12
19:16:43.823: YUV mode: 601/Partial
19:16:43.823: NV12 texture support enabled
19:16:43.830: Settings changed (video)
19:16:43.830: ------------------------------------------------
19:16:48.741: ==== Shutting down ==================================================
19:16:48.753: Switched to scene '(null)'
19:16:48.754: WASAPI: Device 'Alto-falantes (VIA HD Audio(Win 10))' Terminated
19:16:48.760: All scene data cleared
19:16:48.760: ------------------------------------------------
19:16:48.829: Freeing OBS context data
19:16:48.867: [Scripting] Total detached callbacks: 0
19:16:48.882: == Profiler Results =============================
19:16:48.882: run_program_init: 2875.8 ms
19:16:48.882: ┣OBSApp::AppInit: 23.241 ms
19:16:48.882: ┃ ┗OBSApp::InitLocale: 1.067 ms
19:16:48.882: ┗OBSApp::OBSInit: 2726.03 ms
19:16:48.882: ┣obs_startup: 5.436 ms
19:16:48.882: ┗OBSBasic::OBSInit: 2285.91 ms
19:16:48.882: ┣OBSBasic::InitBasicConfig: 0.687 ms
19:16:48.882: ┣OBSBasic::ResetAudio: 0.22 ms
19:16:48.882: ┣OBSBasic::ResetVideo: 1072.02 ms
19:16:48.882: ┣OBSBasic::InitOBSCallbacks: 0.005 ms
19:16:48.882: ┣OBSBasic::InitHotkeys: 0.048 ms
19:16:48.882: ┣obs_load_all_modules: 199.337 ms
19:16:48.882: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.786 ms
19:16:48.882: ┃ ┣obs_init_module(decklink-ouput-ui.dll): 0.707 ms
19:16:48.882: ┃ ┣obs_init_module(enc-amf.dll): 51.262 ms
19:16:48.882: ┃ ┣obs_init_module(frontend-tools.dll): 7.104 ms
19:16:48.882: ┃ ┣obs_init_module(image-source.dll): 0.004 ms
19:16:48.882: ┃ ┣obs_init_module(obs-browser.dll): 0.661 ms
19:16:48.882: ┃ ┣obs_init_module(obs-ffmpeg.dll): 1.247 ms
19:16:48.882: ┃ ┃ ┗nvenc_check: 1.163 ms
19:16:48.882: ┃ ┣obs_init_module(obs-filters.dll): 0.026 ms
19:16:48.882: ┃ ┣obs_init_module(obs-outputs.dll): 0.01 ms
19:16:48.882: ┃ ┣obs_init_module(obs-qsv11.dll): 73.129 ms
19:16:48.882: ┃ ┣obs_init_module(obs-text.dll): 0.279 ms
19:16:48.882: ┃ ┣obs_init_module(obs-transitions.dll): 0.006 ms
19:16:48.882: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
19:16:48.882: ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
19:16:48.882: ┃ ┣obs_init_module(rtmp-services.dll): 1.458 ms
19:16:48.882: ┃ ┣obs_init_module(text-freetype2.dll): 0.096 ms
19:16:48.882: ┃ ┣obs_init_module(vlc-video.dll): 0.046 ms
19:16:48.882: ┃ ┣obs_init_module(win-capture.dll): 0.167 ms
19:16:48.882: ┃ ┣obs_init_module(win-decklink.dll): 3.788 ms
19:16:48.882: ┃ ┣obs_init_module(win-dshow.dll): 2.553 ms
19:16:48.882: ┃ ┣obs_init_module(win-mf.dll): 0 ms
19:16:48.882: ┃ ┣obs_init_module(win-wasapi.dll): 0.006 ms
19:16:48.882: ┃ ┗reset_win32_symbol_paths: 0.108 ms
19:16:48.882: ┣OBSBasic::ResetOutputs: 0.692 ms
19:16:48.882: ┣OBSBasic::CreateHotkeys: 0.259 ms
19:16:48.882: ┣OBSBasic::InitService: 1.899 ms
19:16:48.882: ┣OBSBasic::InitPrimitives: 0.195 ms
19:16:48.882: ┗OBSBasic::Load: 433.671 ms
19:16:48.882: obs_hotkey_thread(25 ms): min=0.004 ms, median=0.019 ms, max=0.836 ms, 99th percentile=0.363 ms, 100% below 25 ms
19:16:48.882: audio_thread(Audio): min=0 ms, median=0.036 ms, max=0.177 ms, 99th percentile=0.065 ms
19:16:48.882: obs_graphics_thread(16.6667 ms): min=0.073 ms, median=0.27 ms, max=363.555 ms, 99th percentile=1.44 ms, 99.9743% below 16.667 ms
19:16:48.883: ┣tick_sources: min=0.002 ms, median=0.01 ms, max=363.414 ms, 99th percentile=1.177 ms
19:16:48.883: ┣output_frame: min=0.066 ms, median=0.128 ms, max=3.231 ms, 99th percentile=0.208 ms
19:16:48.883: ┃ ┗gs_context(video->graphics): min=0.066 ms, median=0.128 ms, max=3.229 ms, 99th percentile=0.208 ms
19:16:48.883: ┃ ┣render_video: min=0.006 ms, median=0.014 ms, max=0.131 ms, 99th percentile=0.029 ms
19:16:48.883: ┃ ┃ ┗render_main_texture: min=0.005 ms, median=0.01 ms, max=0.127 ms, 99th percentile=0.022 ms
19:16:48.883: ┃ ┗gs_flush: min=0.058 ms, median=0.112 ms, max=3.131 ms, 99th percentile=0.185 ms
19:16:48.883: ┗render_displays: min=0 ms, median=0.126 ms, max=4.163 ms, 99th percentile=0.371 ms
19:16:48.883: OBSBasic::ResetVideo: 11.529 ms
19:16:48.883: obs_graphics_thread(16.6667 ms): min=0.181 ms, median=0.253 ms, max=1.833 ms, 99th percentile=1.38 ms, 100% below 16.667 ms
19:16:48.883: ┣tick_sources: min=0.002 ms, median=0.01 ms, max=1.59 ms, 99th percentile=1.075 ms
19:16:48.883: ┣output_frame: min=0.084 ms, median=0.122 ms, max=0.27 ms, 99th percentile=0.225 ms
19:16:48.883: ┃ ┗gs_context(video->graphics): min=0.083 ms, median=0.122 ms, max=0.269 ms, 99th percentile=0.225 ms
19:16:48.883: ┃ ┣render_video: min=0.008 ms, median=0.013 ms, max=0.063 ms, 99th percentile=0.03 ms
19:16:48.883: ┃ ┃ ┗render_main_texture: min=0.005 ms, median=0.01 ms, max=0.033 ms, 99th percentile=0.021 ms
19:16:48.883: ┃ ┗gs_flush: min=0.069 ms, median=0.108 ms, max=0.252 ms, 99th percentile=0.201 ms
19:16:48.883: ┗render_displays: min=0.002 ms, median=0.115 ms, max=0.428 ms, 99th percentile=0.304 ms
19:16:48.883: =================================================
19:16:48.883: == Profiler Time Between Calls ==================
19:16:48.883: obs_hotkey_thread(25 ms): min=24.66 ms, median=25.413 ms, max=48.909 ms, 52.4573% within ±2% of 25 ms (0% lower, 47.5427% higher)
19:16:48.883: obs_graphics_thread(16.6667 ms): min=0.308 ms, median=16.667 ms, max=363.562 ms, 99.3316% within ±2% of 16.667 ms (0.359897% lower, 0.308483% higher)
19:16:48.883: obs_graphics_thread(16.6667 ms): min=16.604 ms, median=16.667 ms, max=16.736 ms, 100% within ±2% of 16.667 ms (0% lower, 0% higher)
19:16:48.883: =================================================
19:16:48.905: Number of memory leaks: 0
 

bakathekawaii

New Member
Ok, messed around a bit here and there and got my ping to get normal again, my bitrate was at 2000 and i lowered to 1200 and it fixed my ping, the stream freeze is gone too, i believe it was the bitrate too because it was the only thing i change besides putting the setting to ''max quality'' since it had a bad quality. The last problem now is that the stream isnt so smooth compared to the game itself, working on that right now if anyone know how to solve please do say it.
 

Sukiyucky

Member
there is a small lag when i stream, the screen freezes for 2-3s and then goes back to normal

I would try the following in this order:
1) Update Windows to current version.
2) Uninstall GeForce Experience. Then download and install current version and GPU drivers
3) Change your FPS rate for LoL to be lower. Try 30 and 45 FPS.
4) Reduce bitrate to be well under 2Mbps. Target to be 10-20% less in the 1600-1800 kbps range.
5) Change output resolution to 640x480 (480p) and also try 1600x900 (900p)

Fiddle with the output resolution, FPS rate, and bitrate in different combinations. It will take a bit of work but you'll find a good baseline to work around. If you Internet connection is spotty, one of the things you will be fiddling with a lot is the bitrate. So be aware of this.

But to make sure your expectations are in place, your stream is going to struggle if you only have 2Mbps upload. You don't have a very strong CPU and GPU combination either. To be honest, you really need to get a better computer and increase upload speed to be above 8Mbps+ if you are going to have any chance of streaming at higher resolution and better viewing quality to todays user's computing environment.

Have fun
 
Top