Question / Help OBS causes in-game lag while trying to stream League of Legends

TrueMortal

New Member
Hello,

I was trying to set up stream for League of Legends, but whenever I start streaming it causes my ping to rise from 40 to 100+, up to 500 at one point. It tends to rise and fall constantly, never stops on one exact value. Tried googling the answer for this issue but it didn't help much, in fact, I barely could find any information regarding why OBS causes in-game lag. Could anyone possibly help me with this please? Thanks in advance.

Link to full log: https://gist.github.com/anonymous/436dc3ae5c012df3c0557af0f622f132

The log:

Code:
04:17:29: =====Stream Start: 2016-10-24, 04:17:29===============================================
04:17:29: Multithreaded optimizations: On
04:17:29: Base resolution: 1920x1080
04:17:29: Output resolution: 1920x1080
04:17:29: ------------------------------------------
04:17:29: Loading up D3D10 on AMD Radeon R7 200 Series (Adapter 1)...
04:17:30: ------------------------------------------
04:17:30: Audio Format: 48000 Hz
04:17:30: ------------------------------------------
04:17:30: Audio Channels: 2 Ch
04:17:30: Playback device Default
04:17:30: ------------------------------------------
04:17:30: Using desktop audio input: Динамики (Plantronics GameCom 780)
04:17:30: Global Audio time adjust: 0
04:17:30: Using 5.1 surround speaker setup
04:17:30: ------------------------------------------
04:17:30: Using auxilary audio input: Микрофон (Plantronics GameCom 780)
04:17:30: Mic time offset: 0
04:17:30: ------------------------------------------
04:17:30: Audio Encoding: AAC
04:17:30: bitrate: 128
04:17:30: Using graphics capture
04:17:30: Using Window Capture
04:17:30: Trying to hook process: League of Legends.exe
04:17:30: Scene buffering time set to 400
04:17:30: ------------------------------------------
04:17:30: Video Encoding: x264
04:17:30: fps: 30
04:17:30: width: 1920, height: 1080
04:17:30: preset: veryfast
04:17:30: profile: main
04:17:30: keyint: 60
04:17:30: CBR: yes
04:17:30: CFR: yes
04:17:30: max bitrate: 900
04:17:30: buffer size: 900
04:17:30: ------------------------------------------
04:17:30: SharedTexCapture hooked
04:17:31: Using RTMP service: Twitch
04:17:31: Server selection: rtmp://live-fra.twitch.tv/app
04:17:31: Interface: D-Link DWA-525 Wireless N 150 Desktop Adapter (802.11, 217 mbps)
04:17:31: Completed handshake with rtmp://live-fra.twitch.tv/app in 413 ms.
04:17:33: SO_SNDBUF was at 8192
04:17:33: SO_SNDBUF is now 65536
04:17:46: GraphicsCaptureSource::NewCapture: eliminating old capture
04:17:46: SharedTexCapture hooked
04:18:13: GraphicsCaptureSource::NewCapture: eliminating old capture
04:18:13: SharedTexCapture hooked
04:18:41: x264: bitrate 900->3500, buffer size 900->3500
04:18:41: Settings::Encoding: Changing bitrate from 900kb/s to 3500kb/s
04:18:45: RTMPPublisher::SocketLoop: Stalled for 1940 ms to write 127256 bytes (buffer: 0 / 131072), unstable connection?
04:18:50: RTMPPublisher::SocketLoop: Stalled for 2378 ms to write 130418 bytes (buffer: 0 / 131072), unstable connection?
04:18:52: x264: bitrate 3500->2500, buffer size 3500->2500
04:18:52: Settings::Encoding: Changing bitrate from 3500kb/s to 2500kb/s
04:18:56: Total frames encoded: 2577, total frames duplicated: 24 (0.93%)
04:18:56: Total frames rendered: 2592, number of late frames: 3 (0.12%) (it's okay for some frames to be late)
04:18:56:
04:18:56: Profiler time results:
04:18:56:
04:18:56: ==============================================================
04:18:56: video thread frame - [100%] [avg time: 1.288 ms] [children: 56.7%] [unaccounted: 43.3%]
04:18:56: | scene->Preprocess - [9.94%] [avg time: 0.128 ms]
04:18:56: | GPU download and conversion - [46.7%] [avg time: 0.602 ms] [children: 26.9%] [unaccounted: 19.9%]
04:18:56: | | flush - [26%] [avg time: 0.335 ms]
04:18:56: | | CopyResource - [0.699%] [avg time: 0.009 ms]
04:18:56: | | conversion to 4:2:0 - [0.155%] [avg time: 0.002 ms]
04:18:56: Convert444Threads - [100%] [avg time: 0.999 ms] [children: 99.1%] [unaccounted: 0.901%]
04:18:56: | Convert444toNV12 - [99.1%] [avg time: 0.99 ms]
04:18:56: encoder thread frame - [100%] [avg time: 1.997 ms] [children: 1.55%] [unaccounted: 98.4%]
04:18:56: | sending stuff out - [1.55%] [avg time: 0.031 ms]
04:18:56: ==============================================================
04:18:56:
04:18:56:
04:18:56: Profiler CPU results:
04:18:56:
04:18:56: ==============================================================
04:18:56: video thread frame - [cpu time: avg 0.042 ms, total 109.2 ms] [avg calls per frame: 1]
04:18:56: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:18:56: | GPU download and conversion - [cpu time: avg 0.012 ms, total 31.2 ms] [avg calls per frame: 1]
04:18:56: | | flush - [cpu time: avg 0.012 ms, total 31.2 ms] [avg calls per frame: 1]
04:18:56: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:18:56: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:18:56: Convert444Threads - [cpu time: avg 0.978 ms, total 5038.83 ms] [avg calls per frame: 2]
04:18:56: | Convert444toNV12 - [cpu time: avg 0.978 ms, total 5038.83 ms] [avg calls per frame: 2]
04:18:56: encoder thread frame - [cpu time: avg 1.24 ms, total 3198.02 ms] [avg calls per frame: 1]
04:18:56: | sending stuff out - [cpu time: avg 0.012 ms, total 31.201 ms] [avg calls per frame: 1]
04:18:56: ==============================================================
04:18:56:
04:18:56: =====Stream End: 2016-10-24, 04:18:56=================================================
04:18:56: ~RTMPPublisher: Packet flush completed in 134 ms
04:18:56: ~RTMPPublisher: Send thread terminated in 210 ms
04:18:57: RTMPPublisher::SocketLoop: Graceful loop exit
04:18:57: ~RTMPPublisher: Socket thread terminated in 666 ms
04:19:22: ~RTMPPublisher: Final socket shutdown completed in 24885 ms
04:19:22: Average send payload: 5814 bytes, average send interval: 38 ms
04:19:22: Number of times waited to send: 31, Waited for a total of 115787 bytes
04:19:22: Number of b-frames dropped: 150 (6%), Number of p-frames dropped: 154 (6.2%), Total 304 (12%)
04:19:22: Number of bytes sent: 12553185
04:19:44: Using fixed low latency mode, factor 20
04:19:44: =====Stream Start: 2016-10-24, 04:19:44===============================================
04:19:44: Multithreaded optimizations: On
04:19:44: Base resolution: 1920x1080
04:19:44: Output resolution: 1920x1080
04:19:44: ------------------------------------------
04:19:44: Loading up D3D10 on AMD Radeon R7 200 Series (Adapter 1)...
04:19:44: ------------------------------------------
04:19:44: Audio Format: 48000 Hz
04:19:44: ------------------------------------------
04:19:44: Audio Channels: 2 Ch
04:19:44: Playback device Default
04:19:44: ------------------------------------------
04:19:44: Using desktop audio input: Динамики (Plantronics GameCom 780)
04:19:44: Global Audio time adjust: 0
04:19:44: Using 5.1 surround speaker setup
04:19:44: ------------------------------------------
04:19:44: Using auxilary audio input: Микрофон (Plantronics GameCom 780)
04:19:44: Mic time offset: 0
04:19:44: ------------------------------------------
04:19:44: Audio Encoding: AAC
04:19:44: bitrate: 128
04:19:44: Using graphics capture
04:19:44: Using Window Capture
04:19:44: Trying to hook process: League of Legends.exe
04:19:44: Scene buffering time set to 400
04:19:44: ------------------------------------------
04:19:44: Video Encoding: x264
04:19:44: fps: 30
04:19:44: width: 1920, height: 1080
04:19:44: preset: veryfast
04:19:44: profile: main
04:19:44: keyint: 60
04:19:44: CBR: yes
04:19:44: CFR: yes
04:19:44: max bitrate: 2500
04:19:44: buffer size: 2500
04:19:44: ------------------------------------------
04:19:44: SharedTexCapture hooked
04:19:45: Using RTMP service: Twitch
04:19:45: Server selection: rtmp://live-fra.twitch.tv/app
04:19:45: Interface: D-Link DWA-525 Wireless N 150 Desktop Adapter (802.11, 204 mbps)
04:19:46: Completed handshake with rtmp://live-fra.twitch.tv/app in 417 ms.
04:19:47: SO_SNDBUF was at 8192
04:19:47: SO_SNDBUF is now 65536
04:19:55: GraphicsCaptureSource::NewCapture: eliminating old capture
04:19:55: SharedTexCapture hooked
04:21:04: Total frames encoded: 2382, total frames duplicated: 10 (0.42%)
04:21:04: Total frames rendered: 2398, number of late frames: 2 (0.08%) (it's okay for some frames to be late)
04:21:04:
04:21:04: Profiler time results:
04:21:04:
04:21:04: ==============================================================
04:21:04: video thread frame - [100%] [avg time: 0.864 ms] [children: 42.9%] [unaccounted: 57.1%]
04:21:04: | scene->Preprocess - [13.7%] [avg time: 0.118 ms]
04:21:04: | GPU download and conversion - [29.3%] [avg time: 0.253 ms] [children: 19.2%] [unaccounted: 10.1%]
04:21:04: | | flush - [17.8%] [avg time: 0.154 ms]
04:21:04: | | CopyResource - [1.04%] [avg time: 0.009 ms]
04:21:04: | | conversion to 4:2:0 - [0.347%] [avg time: 0.003 ms]
04:21:04: Convert444Threads - [100%] [avg time: 1.076 ms] [children: 97.4%] [unaccounted: 2.6%]
04:21:04: | Convert444toNV12 - [97.4%] [avg time: 1.048 ms]
04:21:04: encoder thread frame - [100%] [avg time: 1.95 ms] [children: 1.54%] [unaccounted: 98.5%]
04:21:04: | sending stuff out - [1.54%] [avg time: 0.03 ms]
04:21:04: ==============================================================
04:21:04:
04:21:04:
04:21:04: Profiler CPU results:
04:21:04:
04:21:04: ==============================================================
04:21:04: video thread frame - [cpu time: avg 0.058 ms, total 140.4 ms] [avg calls per frame: 1]
04:21:04: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:21:04: | GPU download and conversion - [cpu time: avg 0.013 ms, total 31.2 ms] [avg calls per frame: 1]
04:21:04: | | flush - [cpu time: avg 0.006 ms, total 15.6 ms] [avg calls per frame: 1]
04:21:04: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:21:04: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:21:04: Convert444Threads - [cpu time: avg 0.861 ms, total 4102.83 ms] [avg calls per frame: 2]
04:21:04: | Convert444toNV12 - [cpu time: avg 0.857 ms, total 4087.23 ms] [avg calls per frame: 2]
04:21:04: encoder thread frame - [cpu time: avg 1.231 ms, total 2932.82 ms] [avg calls per frame: 1]
04:21:04: | sending stuff out - [cpu time: avg 0.006 ms, total 15.6 ms] [avg calls per frame: 1]
04:21:04: ==============================================================
04:21:04:
04:21:04: =====Stream End: 2016-10-24, 04:21:04=================================================
04:21:04: ~RTMPPublisher: Packet flush completed in 126 ms
04:21:04: ~RTMPPublisher: Send thread terminated in 0 ms
04:21:05: RTMPPublisher::SocketLoop: Graceful loop exit
04:21:05: ~RTMPPublisher: Socket thread terminated in 503 ms
04:21:29: ~RTMPPublisher: Final socket shutdown completed in 24248 ms
04:21:29: Average send payload: 18498 bytes, average send interval: 62 ms
04:21:29: Number of times waited to send: 262, Waited for a total of 963481 bytes
04:21:29: Number of b-frames dropped: 177 (7.7%), Number of p-frames dropped: 168 (7.3%), Total 345 (15%)
04:21:29: Number of bytes sent: 22846055
04:21:40: Settings::Video: Enabling Aero
 
Top