Question / Help Lag when streaming but in game it isn't

euloko

New Member
I am trying to stream but it's just lagging too much.
My specs:

Intel Core i5 3210M @ 2.50GHz
2047MB NVIDIA GeForce GT 650M
8.00GB Dual-Channel DDR3 @ 798MHz

I have max bit rate on 1000 but it's the same lag on 2000. 1920 x 1080 resolution. 400 buffer size.

What should I do?
 

PapaBeans

New Member
I. Having this same issue! In game max settings 60+ FPS. But when I try to stream it is around 15 fps, someone please help us!
 

Orannis396

New Member
Are you using Desktop Capture? If so try using the game capture, the performance is much higher. Also check your FPS settings in the video tab
 

Andreas Ekman

New Member
07:59:20: Open Broadcaster Software v0.625b - 64bit ( ^ω^)
07:59:20: -------------------------------
07:59:20: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
07:59:20: CPU Speed: 3400MHz
07:59:20: Physical Memory: 16332MB Total, 11891MB Free
07:59:20: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
07:59:20: monitor 1: pos={-1920, 0}, size={1920, 1080}
07:59:20: monitor 2: pos={0, 0}, size={1920, 1080}
07:59:20: Windows Version: 6.1 Build 7601 S
07:59:20: Aero is Enabled
07:59:20: -------------------------------
07:59:20: OBS Modules:
07:59:20: Base Address Module
07:59:20: 000000003FCF0000 OBS.exe
07:59:20: 00000000DD670000 OBSApi.dll
07:59:20: 00000000F8370000 DShowPlugin.dll
07:59:20: 00000000F8340000 GraphicsCapture.dll
07:59:20: 00000000F8310000 NoiseGate.dll
07:59:20: 00000000F81C0000 PSVPlugin.dll
07:59:20: ------------------------------------------
07:59:20: Adapter 1
07:59:20: Video Adapter: AMD Radeon HD 7900 Series
07:59:20: Video Adapter Dedicated Video Memory: 3193987072
07:59:20: Video Adapter Shared System Memory: 3999397888
07:59:20: Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
07:59:20: Video Adapter Output 2: pos={-1920, 0}, size={1920, 1080}, attached=true
07:59:20: =====Stream Start: 2014-07-03, 07:59:20===============================================
07:59:20: Multithreaded optimizations: On
07:59:20: Base resolution: 1920x1080
07:59:20: Output resolution: 1920x1080
07:59:20: ------------------------------------------
07:59:20: Loading up D3D10 on AMD Radeon HD 7900 Series (Adapter 1)...
07:59:20: ------------------------------------------
07:59:20: Audio Format: 48000 Hz
07:59:20: ------------------------------------------
07:59:20: Audio Channels: 2 Ch
07:59:20: Playback device Default
07:59:20: ------------------------------------------
07:59:20: Using desktop audio input: Speakers (3- USB PnP Sound Device)
07:59:20: Global Audio time adjust: 0
07:59:20: ------------------------------------------
07:59:20: Using auxilary audio input: Microphone (3- USB PnP Sound Device)
07:59:20: Mic time offset: 0
07:59:20: ------------------------------------------
07:59:20: Audio Encoding: AAC
07:59:20: bitrate: 128
07:59:20: Using graphics capture
07:59:20: Trying to hook process: LoLLauncher.exe
07:59:20: Scene buffering time set to 700
07:59:20: ------------------------------------------
07:59:20: Video Encoding: x264
07:59:20: fps: 30
07:59:20: width: 1920, height: 1080
07:59:20: preset: veryfast
07:59:20: profile: high
07:59:20: keyint: 60
07:59:20: CBR: yes
07:59:20: CFR: yes
07:59:20: max bitrate: 3500
07:59:20: buffer size: 3500
07:59:20: ------------------------------------------
07:59:21: Total frames encoded: 8, total frames duplicated: 0 (0.00%)
07:59:21: Using RTMP service: Twitch / Justin.tv
07:59:21: Server selection: rtmp://live-cdg.justin.tv/app
07:59:21: Total frames rendered: 32, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
07:59:21: Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
07:59:22: Completed handshake with rtmp://live-cdg.justin.tv/app in 1042 ms.
07:59:23: SO_SNDBUF was at 8192
07:59:23: SO_SNDBUF is now 65536
07:59:23: RTMPPublisher::SocketLoop: Graceful loop exit
07:59:23: Number of times waited to send: 0, Waited for a total of 0 bytes
07:59:23: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
07:59:23: Number of bytes sent: 0
07:59:23:
07:59:23: Profiler time results:
07:59:23:
07:59:23: ==============================================================
07:59:23: video thread frame - [100%] [avg time: 0.564 ms] [children: 14.7%] [unaccounted: 85.3%]
07:59:23: | scene->Preprocess - [0.177%] [avg time: 0.001 ms]
07:59:23: | GPU download and conversion - [14.5%] [avg time: 0.082 ms] [children: 9.04%] [unaccounted: 5.5%]
07:59:23: | | flush - [7.62%] [avg time: 0.043 ms]
07:59:23: | | CopyResource - [1.24%] [avg time: 0.007 ms]
07:59:23: | | conversion to 4:2:0 - [0.177%] [avg time: 0.001 ms]
07:59:23: Convert444Threads - [100%] [avg time: 1.061 ms] [children: 99.5%] [unaccounted: 0.471%]
07:59:23: | Convert444toNV12 - [99.5%] [avg time: 1.056 ms]
07:59:23: encoder thread frame - [100%] [avg time: 0.556 ms] [children: 0%] [unaccounted: 100%]
07:59:23: | sending stuff out - [0%] [avg time: 0 ms]
07:59:23: ==============================================================
07:59:23:
07:59:23:
07:59:23: Profiler CPU results:
07:59:23:
07:59:23: ==============================================================
07:59:23: video thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
07:59:23: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
07:59:23: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
07:59:23: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
07:59:23: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 0]
07:59:23: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 0]
07:59:23: Convert444Threads - [cpu time: avg 1.95 ms, total 31.2 ms] [avg calls per frame: 2]
07:59:23: | Convert444toNV12 - [cpu time: avg 1.95 ms, total 31.2 ms] [avg calls per frame: 2]
07:59:23: encoder thread frame - [cpu time: avg 2.228 ms, total 15.6 ms] [avg calls per frame: 1]
07:59:23: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
07:59:23: ==============================================================
07:59:23:
07:59:23: =====Stream End: 2014-07-03, 07:59:23=================================================


Last Game Capture Log:
2014-07-03, 07:53:04: we're booting up:
07:53:04: CaptureThread: attached to process League of Legends.exe
07:53:05: D3D9 Present
07:53:05: DXGI Present
07:53:05: GL Present
07:53:05: (half life scientist) everything.. seems to be in order
07:53:05: D3D9EndScene called
07:53:05: D3DPRESENT_PARAMETERS {
07:53:05: BackBufferWidth: 1920
07:53:05: BackBufferHeight: 1080
07:53:05: BackBufferFormat: D3DFMT_X8R8G8B8
07:53:05: BackBufferCount: 1
07:53:05: MultiSampleType: D3DMULTISAMPLE_NONE
07:53:05: MultiSampleQuality: 0
07:53:05: SwapEffect: D3DSWAPEFFECT_DISCARD
07:53:05: hDeviceWindow: 2361430
07:53:05: Windowed: true
07:53:05: EnableAutoDepthStencil: true
07:53:05: AutoDepthStencilFormat: D3DFMT_D24S8
07:53:05: Flags: D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL
07:53:05: FullScreen_RefreshRateInHz: 0
07:53:05: PresentationInterval: 0
07:53:05: };
07:53:05: successfully set up d3d9 hooks
07:53:05: D3D9Present called
07:53:05: DoD3D9GPUHook: success
07:53:05: D3DSURFACE_DESC {
07:53:05: Format: D3DFMT_X8R8G8B8
07:53:05: Type: D3DRTYPE_SURFACE
07:53:05: Usage: D3DUSAGE_RENDERTARGET
07:53:05: Pool: D3DPOOL_DEFAULT
07:53:05: MultiSampleType: D3DMULTISAMPLE_NONE
07:53:05: MultiSampleQuality: 0
07:53:05: Width: 1920
07:53:05: Height: 1080
07:53:05: };
07:53:05: successfully capturing d3d9 frames via GPU
07:54:54: ---------------------- Cleared D3D9 Capture ----------------------
07:54:54: D3D9EndScene called
07:54:54: D3D9Present called
07:54:54: received restart event, capturing
07:54:55: DoD3D9GPUHook: success
07:54:55: D3DSURFACE_DESC {
07:54:55: Format: D3DFMT_X8R8G8B8
07:54:55: Type: D3DRTYPE_SURFACE
07:54:55: Usage: D3DUSAGE_RENDERTARGET
07:54:55: Pool: D3DPOOL_DEFAULT
07:54:55: MultiSampleType: D3DMULTISAMPLE_NONE
07:54:55: MultiSampleQuality: 0
07:54:55: Width: 1920
07:54:55: Height: 1080
07:54:55: };
07:54:55: successfully capturing d3d9 frames via GPU

Here is my log since i have the same problem

Setup:

3570k 3.4ghz
amd 7970 3gb
ram 16gb ddr3
SSD 120gb

What is my issue? :/ i have 300/300 Mbs, so 3500 bitrate shouldnt be any issue since that is about 1/8 of the network strength?
 

euloko

New Member
14:13:04: Open Broadcaster Software v0.625b - 64bit ( ^ω^)
14:13:04: -------------------------------
14:13:04: CPU Name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
14:13:04: CPU Speed: 2494MHz
14:13:04: Physical Memory: 8139MB Total, 5685MB Free
14:13:04: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 2
14:13:04: monitor 1: pos={0, 0}, size={1920, 1080}
14:13:04: Windows Version: 6.2 Build 9200
14:13:04: Aero is Enabled
14:13:04: -------------------------------
14:13:04: OBS Modules:
14:13:04: Base Address Module
14:13:04: 00000000B4A50000 OBS.exe
14:13:04: 000000007D8A0000 OBSApi.dll
14:13:04: 000000008BC60000 DShowPlugin.dll
14:13:04: 000000008B910000 GraphicsCapture.dll
14:13:04: 000000008B8E0000 NoiseGate.dll
14:13:04: 000000007DB90000 PSVPlugin.dll
14:13:04: ------------------------------------------
14:13:04: Adapter 1
14:13:04: Video Adapter: NVIDIA GeForce GT 650M
14:13:04: Video Adapter Dedicated Video Memory: 2083319808
14:13:04: Video Adapter Shared System Memory: 2147676160
14:13:04: Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
14:13:04: =====Stream Start: 2014-07-03, 14:13:04===============================================
14:13:04: Multithreaded optimizations: On
14:13:04: Base resolution: 1920x1080
14:13:04: Output resolution: 1280x720
14:13:04: ------------------------------------------
14:13:04: Loading up D3D10 on NVIDIA GeForce GT 650M (Adapter 1)...
14:13:04: ------------------------------------------
14:13:04: Audio Format: 44100 Hz
14:13:04: ------------------------------------------
14:13:04: Audio Channels: 2 Ch
14:13:04: Playback device Default
14:13:04: ------------------------------------------
14:13:04: Using desktop audio input: Luidsprekers (Realtek High Definition Audio)
14:13:04: Global Audio time adjust: 0
14:13:04: ------------------------------------------
14:13:04: Using auxilary audio input: Microfoon (Realtek High Definition Audio)
14:13:05: Mic time offset: 0
14:13:06: ------------------------------------------
14:13:06: Audio Encoding: MP3
14:13:06: bitrate: 128
14:13:06: Using bitmap image
14:13:06: Using graphics capture
14:13:06: Trying to hook process: payday2_win32_release.exe
14:13:06: Scene buffering time set to 100
14:13:06: ------------------------------------------
14:13:06: Video Encoding: x264
14:13:06: fps: 24
14:13:06: width: 1280, height: 720
14:13:06: preset: veryfast
14:13:06: profile: high
14:13:06: keyint: 48
14:13:06: CBR: yes
14:13:06: CFR: yes
14:13:06: max bitrate: 1000
14:13:06: buffer size: 400
14:13:06: ------------------------------------------
14:13:06: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
14:13:07: SharedTexCapture hooked
14:13:07: Using RTMP service: Twitch / Justin.tv
14:13:07: Server selection: rtmp://live-ams.justin.tv/app
14:13:07: Interface: Qualcomm Atheros AR9485WB-EG Wireless Network Adapter (802.11, 150 mbps)
14:13:08: Completed handshake with rtmp://live-ams.justin.tv/app in 884 ms.
14:13:08: SO_SNDBUF was at 65536
14:13:11: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 144384)
14:13:25: GraphicsCaptureSource::NewCapture: eliminating old capture
14:13:25: SharedTexCapture hooked
14:13:28: GraphicsCaptureSource::NewCapture: eliminating old capture
14:13:28: SharedTexCapture hooked
14:14:36: GraphicsCaptureSource::NewCapture: eliminating old capture
14:14:36: SharedTexCapture hooked
14:14:44: GraphicsCaptureSource::NewCapture: eliminating old capture
14:14:44: SharedTexCapture hooked
14:15:31: GraphicsCaptureSource::NewCapture: eliminating old capture
14:15:31: SharedTexCapture hookedmp by 2
14:18:09: Total frames encoded: 7271, total frames duplicated: 1205 (16.57%)
14:18:09: Number of frames skipped due to encoder lag: 897 (12.34%)
14:18:09: Total frames rendered: 6303, number of late frames: 114 (1.81%) (it's okay for some frames to be late)
14:18:09: RTMPPublisher::SocketLoop: Graceful loop exit
14:18:09: Average send payload: 5326 bytes, average send interval: 37 ms
14:18:09: Number of times waited to send: 0, Waited for a total of 0 bytes
14:18:09: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
14:18:09: Number of bytes sent: 42484108
14:18:10:
14:18:10: Profiler time results:
14:18:10:
14:18:10: ==============================================================
14:18:10: video thread frame - [100%] [avg time: 2.462 ms] [children: 34.1%] [unaccounted: 65.9%]
14:18:10: | scene->Preprocess - [0.162%] [avg time: 0.004 ms]
14:18:10: | GPU download and conversion - [34%] [avg time: 0.836 ms] [children: 15.6%] [unaccounted: 18.4%]
14:18:10: | | flush - [7.51%] [avg time: 0.185 ms]
14:18:10: | | CopyResource - [7.92%] [avg time: 0.195 ms]
14:18:10: | | conversion to 4:2:0 - [0.122%] [avg time: 0.003 ms]
14:18:10: Convert444Thread - [100%] [avg time: 1.051 ms] [children: 98.8%] [unaccounted: 1.24%]
14:18:10: | Convert444toNV12 - [98.8%] [avg time: 1.038 ms]
14:18:10: encoder thread frame - [100%] [avg time: 11.049 ms] [children: 0.824%] [unaccounted: 99.2%]
14:18:10: | sending stuff out - [0.824%] [avg time: 0.091 ms]
14:18:10: ==============================================================
14:18:10:
14:18:10:
14:18:10: Profiler CPU results:
14:18:10:
14:18:10: ==============================================================
14:18:10: video thread frame - [cpu time: avg 0.267 ms, total 1687.5 ms] [avg calls per frame: 1]
14:18:10: | scene->Preprocess - [cpu time: avg 0.002 ms, total 15.625 ms] [avg calls per frame: 1]
14:18:10: | GPU download and conversion - [cpu time: avg 0.049 ms, total 312.5 ms] [avg calls per frame: 1]
14:18:10: | | flush - [cpu time: avg 0.022 ms, total 140.625 ms] [avg calls per frame: 1]
14:18:10: | | CopyResource - [cpu time: avg 0.007 ms, total 46.875 ms] [avg calls per frame: 1]
14:18:10: | | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 15.625 ms] [avg calls per frame: 1]
14:18:10: Convert444Thread - [cpu time: avg 0.28 ms, total 1765.63 ms] [avg calls per frame: 1]
14:18:10: | Convert444toNV12 - [cpu time: avg 0.28 ms, total 1765.63 ms] [avg calls per frame: 1]
14:18:10: encoder thread frame - [cpu time: avg 0.489 ms, total 3562.5 ms] [avg calls per frame: 1]
14:18:10: | sending stuff out - [cpu time: avg 0.004 ms, total 31.25 ms] [avg calls per frame: 1]
14:18:10: ==============================================================
14:18:10:
14:18:10: =====Stream End: 2014-07-03, 14:18:10=================================================


Last game capture log:
2014-07-03, 14:13:06: we're booting up:
14:13:06: CaptureThread: attached to process payday2_win32_release.exe
14:13:06: D3D9 Present
14:13:06: (half life scientist) everything.. seems to be in order
14:13:07: D3D9EndScene called
14:13:07: D3DPRESENT_PARAMETERS {
14:13:07: BackBufferWidth: 1280
14:13:07: BackBufferHeight: 720
14:13:07: BackBufferFormat: D3DFMT_A8R8G8B8
14:13:07: BackBufferCount: 1
14:13:07: MultiSampleType: D3DMULTISAMPLE_NONE
14:13:07: MultiSampleQuality: 0
14:13:07: SwapEffect: D3DSWAPEFFECT_FLIP
14:13:07: hDeviceWindow: 853666
14:13:07: Windowed: false
14:13:07: EnableAutoDepthStencil: false
14:13:07: AutoDepthStencilFormat: D3DFMT_UNKNOWN
14:13:07: Flags: None
14:13:07: FullScreen_RefreshRateInHz: 59
14:13:07: PresentationInterval: 2147483648
14:13:07: };
14:13:07: successfully set up d3d9 hooks
14:13:07: D3D9Present called
14:13:07: DoD3D9GPUHook: success
14:13:07: D3DSURFACE_DESC {
14:13:07: Format: D3DFMT_A8R8G8B8
14:13:07: Type: D3DRTYPE_SURFACE
14:13:07: Usage: D3DUSAGE_RENDERTARGET
14:13:07: Pool: D3DPOOL_DEFAULT
14:13:07: MultiSampleType: D3DMULTISAMPLE_NONE
14:13:07: MultiSampleQuality: 0
14:13:07: Width: 1280
14:13:07: Height: 720
14:13:07: };
14:13:07: successfully capturing d3d9 frames via GPU
14:13:24: D3D9Reset called
 

euloko

New Member
Yeah thats true but we might have 2 completely different problems with different solutions though. If you know a fix, let me know please. Thanks.
 

Hopewithinchaos

Forum Moderator
Buffer size should be the same as your bit rate. if you're streaming at 1000, then keep the buffer at 1000. Do a speedtest, what is your Upload/download?
 

euloko

New Member
Still lagging. It says WARNING: Encoding takes too long. Skipping frames. Even when I put buffer size and bit rate on 300.
 
Top