Question / Help OBS Doesn't lag me ingame but my stream lags.

LaymoNz

New Member
I don't know what to do as my game is fine and doesn't lag but my stream has massive lag spikes when there is a lot of movement. How do i fix this?

My Pc specs are:
Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (4 CPUs) ~ 3.60GHz (Overclocked)
8GB RAM
AMD Top Radeon HD 7970 3GB 384-bit
Windows 8

What setting should i use on OBS?
 

Kharay

Member
LaymoNz said:
What setting should i use on OBS?
That depends on a lot of things. First of all, your bandwidth.

So, go here, run the SmarTest (be sure to pick a server near the one you'd like to stream to, both should be near yourself obviously).

Secondly, what game do you wish to stream?

Third -- Do you have a log file for a session that was laggy? Click here to find out how to find and post a log file.
 

LaymoNz

New Member
I don't think i have very good internet really. I'm from New Zealand and internet over here is kinda poor compared to other countries. We are just getting fibre optics put around our country now. It's in some places but yeah. I think it may be my internet...
 

LaymoNz

New Member
22:36:45: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
22:36:45: -------------------------------
22:36:45: CPU Name: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
22:36:45: CPU Speed: 3193MHz
22:36:45: Physical Memory: 4095MB Total, 4095MB Free
22:36:45: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
22:36:45: monitor 1: pos={0, 0}, size={1680, 1050}
22:36:45: Windows Version: 6.2 Build 9200
22:36:45: Aero is Enabled
22:36:45: -------------------------------
22:36:45: OBS Modules:
22:36:45: Base Address Module
22:36:45: 00370000 OBS.exe
22:36:45: 61880000 OBSApi.dll
22:36:45: 6FCE0000 DShowPlugin.dll
22:36:45: 6F140000 GraphicsCapture.dll
22:36:45: 6F120000 NoiseGate.dll
22:36:45: 686C0000 PSVPlugin.dll
22:36:45: ------------------------------------------
22:36:45: Adapter 1
22:36:45: Video Adapter: AMD Radeon HD 7900 Series
22:36:45: Video Adapter Dedicated Video Memory: 3202543616
22:36:45: Video Adapter Shared System Memory: 1092358144
22:36:45: =====Stream Start: 2013-07-24, 22:36:45===============================================
22:36:45: Multithreaded optimizations: On
22:36:45: Base resolution: 1680x1050
22:36:45: Output resolution: 1680x1050
22:36:45: ------------------------------------------
22:36:45: Loading up D3D10...
22:36:45: Playback device Default
22:36:45: ------------------------------------------
22:36:45: Using desktop audio input: Speakers (VIA High Definition Audio)
22:36:45: ------------------------------------------
22:36:45: Using auxilary audio input: Microphone (VIA High Definition Audio)
22:36:45: ------------------------------------------
22:36:45: Audio Encoding: AAC
22:36:45: bitrate: 128
22:36:45: Using graphics capture
22:36:45: ------------------------------------------
22:36:45: Video Encoding: x264
22:36:45: fps: 60
22:36:45: width: 1680, height: 1050
22:36:45: preset: veryfast
22:36:45: CBR: yes
22:36:45: CFR: no
22:36:45: max bitrate: 3200
22:36:45: ------------------------------------------
22:36:47: SharedTexCapture hooked
22:37:43: GraphicsCaptureSource::NewCapture: eliminating old capture
22:37:43: SharedTexCapture hooked
22:38:07: GraphicsCaptureSource::NewCapture: eliminating old capture
22:38:07: SharedTexCapture hooked
22:38:10: Total frames rendered: 5057, number of frames that lagged: 21 (0.42%) (it's okay for some frames to lag)
22:38:10: =====Stream End: 2013-07-24, 22:38:10=================================================
22:38:11: =====Stream Start: 2013-07-24, 22:38:11===============================================
22:38:11: Multithreaded optimizations: On
22:38:11: Base resolution: 1680x1050
22:38:11: Output resolution: 1680x1050
22:38:11: ------------------------------------------
22:38:11: Loading up D3D10...
22:38:11: Playback device Default
22:38:11: ------------------------------------------
22:38:11: Using desktop audio input: Speakers (VIA High Definition Audio)
22:38:11: ------------------------------------------
22:38:11: Using auxilary audio input: Microphone (VIA High Definition Audio)
22:38:11: ------------------------------------------
22:38:11: Audio Encoding: AAC
22:38:11: bitrate: 128
22:38:11: Using graphics capture
22:38:11: ------------------------------------------
22:38:11: Video Encoding: x264
22:38:11: fps: 60
22:38:11: width: 1680, height: 1050
22:38:11: preset: veryfast
22:38:11: CBR: yes
22:38:11: CFR: no
22:38:11: max bitrate: 3200
22:38:11: ------------------------------------------
22:38:12: Using RTMP service: Twitch / Justin.tv
22:38:12: Server selection: rtmp://live-sin-backup.justin.tv/app
22:38:16: SO_SNDBUF was at 65536
22:38:16: SO_SNDBUF is now 65536
22:38:18: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
22:38:21: SharedTexCapture hooked
22:38:54: GraphicsCaptureSource::NewCapture: eliminating old capture
22:38:54: SharedTexCapture hooked
22:41:19: GraphicsCaptureSource::NewCapture: eliminating old capture
22:41:19: SharedTexCapture hooked
22:44:27: RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
22:44:27: Total frames rendered: 22458, number of frames that lagged: 105 (0.47%) (it's okay for some frames to lag)
22:44:27: okay, this is strange
22:44:27: librtmp error: WriteN, RTMP send error 10053 (79 bytes)
22:44:27: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
22:44:27: Number of times waited to send: 88, Waited for a total of 313391 bytes
22:44:27: Number of b-frames dropped: 8636 (39%), Number of p-frames dropped: 9983 (45%), Total 18619 (84%)
22:44:27: =====Stream End: 2013-07-24, 22:44:27=================================================
22:44:37: =====Stream Start: 2013-07-24, 22:44:37===============================================
22:44:37: Multithreaded optimizations: On
22:44:37: Base resolution: 1680x1050
22:44:37: Output resolution: 1680x1050
22:44:37: ------------------------------------------
22:44:37: Loading up D3D10...
22:44:37: Playback device Default
22:44:37: ------------------------------------------
22:44:37: Using desktop audio input: Speakers (VIA High Definition Audio)
22:44:37: ------------------------------------------
22:44:37: Using auxilary audio input: Microphone (VIA High Definition Audio)
22:44:37: ------------------------------------------
22:44:37: Audio Encoding: AAC
22:44:37: bitrate: 128
22:44:37: Using graphics capture
22:44:37: ------------------------------------------
22:44:37: Video Encoding: x264
22:44:37: fps: 60
22:44:37: width: 1680, height: 1050
22:44:37: preset: veryfast
22:44:37: CBR: yes
22:44:37: CFR: no
22:44:37: max bitrate: 3200
22:44:37: ------------------------------------------
22:44:37: SharedTexCapture hooked
22:44:38: Using RTMP service: Twitch / Justin.tv
22:44:38: Server selection: rtmp://live-sin-backup.justin.tv/app
22:44:42: SO_SNDBUF was at 65536
22:44:42: SO_SNDBUF is now 65536
22:44:59: GraphicsCaptureSource::NewCapture: eliminating old capture
22:44:59: SharedTexCapture hooked
22:45:09: GraphicsCaptureSource::NewCapture: eliminating old capture
22:45:09: SharedTexCapture hooked
22:54:23: GraphicsCaptureSource::NewCapture: eliminating old capture
22:54:23: SharedTexCapture hooked
22:58:20: RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
22:58:20: Total frames rendered: 48968, number of frames that lagged: 473 (0.97%) (it's okay for some frames to lag)
22:58:20: librtmp error: WriteN, RTMP send error 10053 (79 bytes)
22:58:20: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
22:58:20: Number of times waited to send: 190, Waited for a total of 621926 bytes
22:58:20: Number of b-frames dropped: 18190 (37%), Number of p-frames dropped: 23261 (48%), Total 41451 (85%)
22:58:20: =====Stream End: 2013-07-24, 22:58:20=================================================
22:58:30: =====Stream Start: 2013-07-24, 22:58:30===============================================
22:58:30: Multithreaded optimizations: On
22:58:30: Base resolution: 1680x1050
22:58:30: Output resolution: 1680x1050
22:58:30: ------------------------------------------
22:58:30: Loading up D3D10...
22:58:30: Playback device Default
22:58:30: ------------------------------------------
22:58:30: Using desktop audio input: Speakers (VIA High Definition Audio)
22:58:30: ------------------------------------------
22:58:30: Using auxilary audio input: Microphone (VIA High Definition Audio)
22:58:30: ------------------------------------------
22:58:30: Audio Encoding: AAC
22:58:30: bitrate: 128
22:58:30: Using graphics capture
22:58:30: ------------------------------------------
22:58:30: Video Encoding: x264
22:58:30: fps: 60
22:58:30: width: 1680, height: 1050
22:58:30: preset: veryfast
22:58:30: CBR: yes
22:58:30: CFR: no
22:58:30: max bitrate: 3200
22:58:30: ------------------------------------------
22:58:30: SharedTexCapture hooked
22:58:31: Using RTMP service: Twitch / Justin.tv
22:58:31: Server selection: rtmp://live-sin-backup.justin.tv/app
22:58:35: SO_SNDBUF was at 65536
22:58:35: SO_SNDBUF is now 65536
22:58:38: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
23:08:47: GraphicsCaptureSource::NewCapture: eliminating old capture
23:08:47: SharedTexCapture hooked
23:09:04: Total frames rendered: 37832, number of frames that lagged: 237 (0.63%) (it's okay for some frames to lag)
23:09:04: RTMPPublisher::SocketLoop: Aborting due to loop exit
23:09:04: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
23:09:04: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
23:09:04: Number of times waited to send: 150, Waited for a total of 500185 bytes
23:09:04: Number of b-frames dropped: 14409 (38%), Number of p-frames dropped: 16973 (45%), Total 31382 (84%)
23:09:04: =====Stream End: 2013-07-24, 23:09:04=================================================
23:19:17: =====Stream Start: 2013-07-24, 23:19:17===============================================
23:19:17: Multithreaded optimizations: On
23:19:17: Base resolution: 1680x1050
23:19:17: Output resolution: 1680x1050
23:19:17: ------------------------------------------
23:19:17: Loading up D3D10...
23:19:17: Playback device Default
23:19:17: ------------------------------------------
23:19:17: Using desktop audio input: Speakers (VIA High Definition Audio)
23:19:17: ------------------------------------------
23:19:17: Using auxilary audio input: Microphone (VIA High Definition Audio)
23:19:17: ------------------------------------------
23:19:17: Audio Encoding: AAC
23:19:17: bitrate: 128
23:19:17: Using graphics capture
23:19:17: ------------------------------------------
23:19:17: Video Encoding: x264
23:19:17: fps: 40
23:19:17: width: 1680, height: 1050
23:19:17: preset: veryfast
23:19:17: CBR: no
23:19:17: CFR: no
23:19:17: max bitrate: 3200
23:19:17: buffer size: 3200
23:19:17: quality: 10
23:19:17: ------------------------------------------
23:19:39: Total frames rendered: 888, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
23:19:40: =====Stream End: 2013-07-24, 23:19:40=================================================
23:20:48: =====Stream Start: 2013-07-24, 23:20:48===============================================
23:20:48: Multithreaded optimizations: On
23:20:48: Base resolution: 1680x1050
23:20:48: Output resolution: 1680x1050
23:20:48: ------------------------------------------
23:20:48: Loading up D3D10...
23:20:48: Playback device Default
23:20:48: ------------------------------------------
23:20:48: Using desktop audio input: Speakers (VIA High Definition Audio)
23:20:48: ------------------------------------------
23:20:48: Using auxilary audio input: Microphone (VIA High Definition Audio)
23:20:48: ------------------------------------------
23:20:48: Audio Encoding: AAC
23:20:48: bitrate: 128
23:20:48: Using graphics capture
23:20:48: ------------------------------------------
23:20:48: Video Encoding: x264
23:20:48: fps: 40
23:20:48: width: 1680, height: 1050
23:20:48: preset: veryfast
23:20:48: CBR: no
23:20:48: CFR: no
23:20:48: max bitrate: 3200
23:20:48: buffer size: 3200
23:20:48: quality: 10
23:20:48: ------------------------------------------
23:20:49: SharedTexCapture hooked
23:21:22: Total frames rendered: 1316, number of frames that lagged: 6 (0.46%) (it's okay for some frames to lag)
23:21:22: =====Stream End: 2013-07-24, 23:21:22=================================================
23:21:26: =====Stream Start: 2013-07-24, 23:21:26===============================================
23:21:26: Multithreaded optimizations: On
23:21:26: Base resolution: 1680x1050
23:21:26: Output resolution: 1680x1050
23:21:26: ------------------------------------------
23:21:26: Loading up D3D10...
23:21:26: Playback device Default
23:21:26: ------------------------------------------
23:21:26: Using desktop audio input: Speakers (VIA High Definition Audio)
23:21:26: ------------------------------------------
23:21:26: Using auxilary audio input: Microphone (VIA High Definition Audio)
23:21:26: ------------------------------------------
23:21:26: Audio Encoding: AAC
23:21:26: bitrate: 128
23:21:26: Using graphics capture
23:21:26: ------------------------------------------
23:21:26: Video Encoding: x264
23:21:26: fps: 40
23:21:26: width: 1680, height: 1050
23:21:26: preset: veryfast
23:21:26: CBR: no
23:21:26: CFR: no
23:21:26: max bitrate: 3200
23:21:26: buffer size: 3200
23:21:26: quality: 10
23:21:26: ------------------------------------------
23:21:28: Using RTMP service: Twitch / Justin.tv
23:21:28: Server selection: rtmp://live-sin-backup.justin.tv/app
23:21:30: SO_SNDBUF was at 65536
23:21:30: SO_SNDBUF is now 65536
23:22:06: SharedTexCapture hooked
23:22:46: Total frames rendered: 3171, number of frames that lagged: 7 (0.22%) (it's okay for some frames to lag)
23:22:46: RTMPPublisher::SocketLoop: Aborting due to bStopping
23:22:46: Number of times waited to send: 0, Waited for a total of 0 bytes
23:22:46: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:22:46: =====Stream End: 2013-07-24, 23:22:46=================================================
23:24:08: =====Stream Start: 2013-07-24, 23:24:08===============================================
23:24:08: Multithreaded optimizations: On
23:24:08: Base resolution: 1680x1050
23:24:08: Output resolution: 1680x1050
23:24:08: ------------------------------------------
23:24:08: Loading up D3D10...
23:24:08: Playback device Default
23:24:08: ------------------------------------------
23:24:08: Using desktop audio input: Speakers (VIA High Definition Audio)
23:24:08: ------------------------------------------
23:24:08: Using auxilary audio input: Microphone (VIA High Definition Audio)
23:24:08: ------------------------------------------
23:24:08: Audio Encoding: AAC
23:24:08: bitrate: 128
23:24:08: Using graphics capture
23:24:08: ------------------------------------------
23:24:08: Video Encoding: x264
23:24:08: fps: 40
23:24:08: width: 1680, height: 1050
23:24:08: preset: veryfast
23:24:08: CBR: no
23:24:08: CFR: no
23:24:08: max bitrate: 3200
23:24:08: buffer size: 3200
23:24:08: quality: 10
23:24:08: ------------------------------------------
23:24:10: Using RTMP service: Twitch / Justin.tv
23:24:10: Server selection: rtmp://live-sin-backup.justin.tv/app
23:24:11: SharedTexCapture hooked
23:24:13: SO_SNDBUF was at 65536
23:24:13: SO_SNDBUF is now 65536
23:27:30: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
23:30:50: Capture window 0x000411FC invalid or changing, terminating capture
23:30:58: SharedTexCapture hooked
23:37:10: Capture window 0x000A11C8 invalid or changing, terminating capture
23:37:12: Total frames rendered: 31285, number of frames that lagged: 29 (0.09%) (it's okay for some frames to lag)
23:37:12: RTMPPublisher::SocketLoop: Aborting due to bStopping
23:37:12: Number of times waited to send: 4, Waited for a total of 16388 bytes
23:37:12: Number of b-frames dropped: 40 (0.13%), Number of p-frames dropped: 36 (0.12%), Total 76 (0.24%)
23:37:12: =====Stream End: 2013-07-24, 23:37:12=================================================
23:37:13:
23:37:13: Profiler results:
23:37:13:
23:37:13: ==============================================================
23:37:13: frame - [100%] [avg time: 3.01 ms (cpu time: avg 1.998 ms, total 301734 ms)] [avg calls per frame: 1] [children: 99.8%] [unaccounted: 0.199%]
23:37:13: | frame preprocessing and rendering - [14%] [avg time: 0.421 ms (cpu time: avg 0.201 ms, total 30468.8 ms)] [avg calls per frame: 1] [children: 0.0332%] [unaccounted: 14%]
23:37:13: | | scene->Preprocess - [0.0332%] [avg time: 0.001 ms (cpu time: avg 0.001 ms, total 187.5 ms)] [avg calls per frame: 1]
23:37:13: | video encoding and uploading - [85.8%] [avg time: 2.583 ms (cpu time: avg 1.795 ms, total 271031 ms)] [avg calls per frame: 1] [children: 84%] [unaccounted: 1.83%]
23:37:13: | | flush - [12%] [avg time: 0.36 ms (cpu time: avg 0.056 ms, total 8515.63 ms)] [avg calls per frame: 1]
23:37:13: | | CopyResource - [0.365%] [avg time: 0.011 ms (cpu time: avg 0.007 ms, total 1109.38 ms)] [avg calls per frame: 0]
23:37:13: | | conversion to 4:2:0 - [0.93%] [avg time: 0.028 ms (cpu time: avg 0.004 ms, total 750 ms)] [avg calls per frame: 0]
23:37:13: | | call to encoder - [70.2%] [avg time: 2.113 ms (cpu time: avg 1.701 ms, total 256844 ms)] [avg calls per frame: 0]
23:37:13: | | sending stuff out - [0.532%] [avg time: 0.016 ms (cpu time: avg 0.013 ms, total 2015.63 ms)] [avg calls per frame: 0]
23:37:13: | Convert444Threads - [1.25e+003%] [avg time: 37.52 ms (cpu time: avg 1.624 ms, total 245203 ms)] [avg calls per frame: 1]
23:37:13: ==============================================================
23:37:13:
 

Kharay

Member
That log looks fine. 0.09% framelag and 0.24% framedrop isn't so bad. You may want to tone down the bitrate just a smidge to maintain 0% framedrop but still, the log looks fine. How's the quality on-stream?
 

LaymoNz

New Member
The qualities fine and all but i get major lag spikes on the stream when a lot of action/movement is going on. I think it could be my upload speed.
 

LaymoNz

New Member
Just did it. Like 700kbps :p might eb upgrading to VDSL broadband. It says it does a lot faster uploading and downloading.
 

alpinlol

Active Member
id rather downscale the output resolution because i could bet in high motion scene your little i5 peaks at 100% since you stream 1050@60 ...
 

Kharay

Member
His latest entry was at 40 FPS. At which he had only 0.09% framelag. Which is a very nice figure, to be quite honest.
 

alpinlol

Active Member
Kharay said:
His latest entry was at 40 FPS. At which he had only 0.09% framelag. Which is a very nice figure, to be quite honest.


true sorry... only looked at the first few because its a heavy wall of text :P "code" at its best for logs
 

LaymoNz

New Member
Thanks for the help anyways. I think it's my upload speed. It's only 700kbps so i will try what you said and hope it works :D
 

War_Corps

New Member
im also having this problem. and i have pretty great PC specs and have set my settings according to what is recommended. i have a 12mb up and 200mb down. here is a file attchment for my OBS logs. my cpu has also been oc'ed to 4.2ghz core clock through the BIOS. it has a preset so i didnt do anything wonky to mess that up.
 

Attachments

  • 2017-04-07 04-31-25.txt
    20.7 KB · Views: 14
Top