Question / Help Severe stream lag core i7 920 / GTX 680

angelsg

New Member
Good morning,

I am attempting to stream a handful of games at 720 / 1080p 60 FPS. Previously I was running a single monitor at base resolution 2048x1152, and I was able to stream League of Legends at that resolution without too many hiccups, didn't have to lower many of the in game settings.

I have since reformatted my machine, after installing a Samsung EVO 840 series SSD. I am running Windows 7 on it. I have started playing World of Warcraft again and would like to stream but everytime I try to stream the lag makes it unplayable.
Even when attempting to stream through monitor capture, and just pointing to my desktop, the stream is extremely laggy.

I have a standard EVGA GTX 680, a core i7 920 that is OC'd to 3.6 ghz, 16 gigs of ram at 1300, and all my games and OBS 64 bit installed on the 840 EVO SSD.

I have tried a bunch of the initial troubleshootings that I have found browsing other theads. Aero is enabled, I do game capture when attempting to capture WoW, the audio is lowered to below 160, I try to do resolution downscaling to 720p, I am out of ideas at this point.

Below is my log of a test today that was a few seconds. Thanks for the help

Code:
10:52:47: Open Broadcaster Software v0.591b - 64bit ( ^ω^)
10:52:47: -------------------------------
10:52:47: CPU Name: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
10:52:47: CPU Speed: 3619MHz
10:52:47: Physical Memory:  16375MB Total, 14342MB Free
10:52:47: stepping id: 5, model 26, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
10:52:47: monitor 1: pos={0, 0}, size={1920, 1080}
10:52:47: Windows Version: 6.1 Build 7601 S
10:52:47: Aero is Enabled
10:52:47: -------------------------------
10:52:47: OBS Modules:
10:52:47: Base Address     Module
10:52:47: 000000003FF70000 OBS.exe
10:52:47: 00000000ED7E0000 OBSApi.dll
10:52:47: 00000000F47C0000 DShowPlugin.dll
10:52:47: 00000000F4BB0000 GraphicsCapture.dll
10:52:47: 00000000F4B40000 NoiseGate.dll
10:52:47: 00000000F47A0000 PSVPlugin.dll
10:52:47: ------------------------------------------
10:52:47: Adapter 1
10:52:47:   Video Adapter: NVIDIA GeForce GTX 680
10:52:47:   Video Adapter Dedicated Video Memory: 2087387136
10:52:47:   Video Adapter Shared System Memory: 2147807232
10:52:47:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
10:52:47: =====Stream Start: 2013-12-23, 10:52:47===============================================
10:52:47:   Multithreaded optimizations: On
10:52:47:   Base resolution: 1920x1080
10:52:47:   Output resolution: 1280x720
10:52:47: ------------------------------------------
10:52:47: Loading up D3D10 on NVIDIA GeForce GTX 680 (Adapter 1)...
10:52:47: ------------------------------------------
10:52:47: Audio Format: 48000hz
10:52:47: Playback device Default
10:52:47: ------------------------------------------
10:52:47: Using desktop audio input: Speakers (High Definition Audio Device)
10:52:47: ------------------------------------------
10:52:47: Using auxilary audio input: Microphone (High Definition Audio Device)
10:52:47: ------------------------------------------
10:52:47: Audio Encoding: AAC
10:52:47:     bitrate: 128
10:52:47: Using Monitor Capture
10:52:47: Using graphics capture
10:52:47: Scene buffering time set to 700
10:52:47: ------------------------------------------
10:52:47: Video Encoding: x264
10:52:47:     fps: 30
10:52:47:     width: 1280, height: 720
10:52:47:     preset: fast
10:52:47:     profile: main
10:52:47:     keyint: 60
10:52:47:     CBR: yes
10:52:47:     CFR: no
10:52:47:     max bitrate: 3500
10:52:47:     buffer size: 3500
10:52:47: ------------------------------------------
10:52:47: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 384000, samples per sec is 48000
10:52:47: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
10:52:50: Using RTMP service: Twitch / Justin.tv
10:52:50:   Server selection: rtmp://live-jfk.justin.tv/app
10:52:50:   Interface: Intel(R) 82567V-2 Gigabit Network Connection (ethernet, 100 mbps)
10:52:51: Completed handshake with rtmp://live-jfk.justin.tv/app in 200 ms.
10:52:51: SO_SNDBUF was at 8192
10:52:51: SO_SNDBUF is now 65536
10:52:57: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 463872)
10:52:57: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 463872)
10:56:17: Using graphics capture
10:56:29: Using graphics capture
10:56:29: SharedTexCapture hooked
10:59:56: Total frames encoded: 12837, total frames duplicated: 2995 (23.33%)
10:59:56: Number of frames skipped due to encoder lag: 2167 (16.88%)
10:59:56: Total frames rendered: 10008, number of late frames: 747 (7.46%) (it's okay for some frames to be late)
10:59:56: RTMPPublisher::SocketLoop: Graceful loop exit
10:59:56: Average send payload: 8294 bytes, average send interval: 18 ms
10:59:56: Number of times waited to send: 0, Waited for a total of 0 bytes
10:59:56: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:59:56: Number of bytes sent: 192605094
10:59:56: 
10:59:56: Profiler time results:
10:59:56: 
10:59:56: ==============================================================
10:59:56: video thread frame - [100%] [avg time: 16.143 ms] [children: 94.9%] [unaccounted: 5.05%]
10:59:56: | scene->Preprocess - [94.2%] [avg time: 15.212 ms]
10:59:56: | GPU download and conversion - [0.712%] [avg time: 0.115 ms] [children: 0.551%] [unaccounted: 0.161%]
10:59:56: | | flush - [0.335%] [avg time: 0.054 ms]
10:59:56: | | CopyResource - [0.18%] [avg time: 0.029 ms]
10:59:56: | | conversion to 4:2:0 - [0.0372%] [avg time: 0.006 ms]
10:59:56: Convert444Threads - [100%] [avg time: 0.872 ms] [children: 99.4%] [unaccounted: 0.573%]
10:59:56: | Convert444toNV12 - [99.4%] [avg time: 0.867 ms]
10:59:56: encoder thread frame - [100%] [avg time: 9.523 ms]
10:59:56: ==============================================================
10:59:56: 
10:59:56: 
10:59:56: Profiler CPU results:
10:59:56: 
10:59:56: ==============================================================
10:59:56: video thread frame - [cpu time: avg 2.988 ms, total 29905.4 ms] [avg calls per frame: 1]
10:59:56: | scene->Preprocess - [cpu time: avg 2.366 ms, total 23681 ms] [avg calls per frame: 1]
10:59:56: | GPU download and conversion - [cpu time: avg 0.054 ms, total 546.003 ms] [avg calls per frame: 1]
10:59:56: | | flush - [cpu time: avg 0.029 ms, total 296.401 ms] [avg calls per frame: 1]
10:59:56: | | CopyResource - [cpu time: avg 0.012 ms, total 124.802 ms] [avg calls per frame: 1]
10:59:56: | | conversion to 4:2:0 - [cpu time: avg 0.001 ms, total 15.6 ms] [avg calls per frame: 1]
10:59:56: Convert444Threads - [cpu time: avg 0.813 ms, total 16239.7 ms] [avg calls per frame: 2]
10:59:56: | Convert444toNV12 - [cpu time: avg 0.811 ms, total 16208.5 ms] [avg calls per frame: 2]
10:59:56: encoder thread frame - [cpu time: avg 1.528 ms, total 19593.7 ms] [avg calls per frame: 1]
10:59:56: ==============================================================
10:59:56: 
10:59:56: =====Stream End: 2013-12-23, 10:59:56=================================================
11:14:57: =====Stream Start: 2013-12-23, 11:14:57===============================================
11:14:57:   Multithreaded optimizations: On
11:14:57:   Base resolution: 1920x1080
11:14:57:   Output resolution: 1280x720
11:14:57: ------------------------------------------
11:14:57: Loading up D3D10 on NVIDIA GeForce GTX 680 (Adapter 1)...
11:14:57: ------------------------------------------
11:14:57: Audio Format: 48000hz
11:14:57: Playback device Default
11:14:57: ------------------------------------------
11:14:57: Using desktop audio input: Speakers (High Definition Audio Device)
11:14:57: ------------------------------------------
11:14:57: Using auxilary audio input: Microphone (High Definition Audio Device)
11:14:57: ------------------------------------------
11:14:57: Audio Encoding: AAC
11:14:57:     bitrate: 128
11:14:57: Using graphics capture
11:14:57: Scene buffering time set to 700
11:14:57: ------------------------------------------
11:14:57: Video Encoding: x264
11:14:57:     fps: 30
11:14:57:     width: 1280, height: 720
11:14:57:     preset: superfast
11:14:57:     profile: main
11:14:57:     keyint: 60
11:14:57:     CBR: yes
11:14:57:     CFR: no
11:14:57:     max bitrate: 3500
11:14:57:     buffer size: 3500
11:14:57: ------------------------------------------
11:14:57: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 384000, samples per sec is 48000
11:14:57: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
11:14:58: Using Monitor Capture
11:14:59: Using RTMP service: Twitch / Justin.tv
11:14:59:   Server selection: rtmp://live-jfk.justin.tv/app
11:14:59:   Interface: Intel(R) 82567V-2 Gigabit Network Connection (ethernet, 100 mbps)
11:15:00: Completed handshake with rtmp://live-jfk.justin.tv/app in 184 ms.
11:15:00: SO_SNDBUF was at 8192
11:15:00: SO_SNDBUF is now 65536
11:15:02: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 2644 / 463872)
11:15:06: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 17582 / 463872)
11:16:02: Total frames encoded: 1923, total frames duplicated: 318 (16.54%)
11:16:02: Total frames rendered: 1690, number of late frames: 222 (13.14%) (it's okay for some frames to be late)
11:16:02: RTMPPublisher::SocketLoop: Graceful loop exit
11:16:02: Average send payload: 8499 bytes, average send interval: 18 ms
11:16:02: Number of times waited to send: 0, Waited for a total of 0 bytes
11:16:02: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
11:16:02: Number of bytes sent: 27538051
11:16:02: 
11:16:02: Profiler time results:
11:16:02: 
11:16:02: ==============================================================
11:16:02: video thread frame - [100%] [avg time: 35.773 ms] [children: 99%] [unaccounted: 1.04%]
11:16:02: | scene->Preprocess - [98.6%] [avg time: 35.288 ms]
11:16:02: | GPU download and conversion - [0.316%] [avg time: 0.113 ms] [children: 0.296%] [unaccounted: 0.0196%]
11:16:02: | | flush - [0.221%] [avg time: 0.079 ms]
11:16:02: | | CopyResource - [0.0475%] [avg time: 0.017 ms]
11:16:02: | | conversion to 4:2:0 - [0.028%] [avg time: 0.01 ms]
11:16:02: Convert444Threads - [100%] [avg time: 0.511 ms] [children: 99.4%] [unaccounted: 0.587%]
11:16:02: | Convert444toNV12 - [99.4%] [avg time: 0.508 ms]
11:16:02: encoder thread frame - [100%] [avg time: 0.885 ms]
11:16:02: ==============================================================
11:16:02: 
11:16:02: 
11:16:02: Profiler CPU results:
11:16:02: 
11:16:02: ==============================================================
11:16:02: video thread frame - [cpu time: avg 5.298 ms, total 8954.46 ms] [avg calls per frame: 1]
11:16:02: | scene->Preprocess - [cpu time: avg 4.892 ms, total 8268.05 ms] [avg calls per frame: 1]
11:16:02: | GPU download and conversion - [cpu time: avg 0.083 ms, total 140.402 ms] [avg calls per frame: 1]
11:16:02: | | flush - [cpu time: avg 0.064 ms, total 109.202 ms] [avg calls per frame: 1]
11:16:02: | | CopyResource - [cpu time: avg 0.009 ms, total 15.6 ms] [avg calls per frame: 1]
11:16:02: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
11:16:02: Convert444Threads - [cpu time: avg 0.585 ms, total 1950.01 ms] [avg calls per frame: 2]
11:16:02: | Convert444toNV12 - [cpu time: avg 0.585 ms, total 1950.01 ms] [avg calls per frame: 2]
11:16:02: encoder thread frame - [cpu time: avg 0.147 ms, total 280.801 ms] [avg calls per frame: 1]
11:16:02: ==============================================================
11:16:02: 
11:16:02: =====Stream End: 2013-12-23, 11:16:02=================================================
 

Sapiens

Forum Moderator
Monitor capture with Aero enabled is the worst possible way to capture. I'm also not sure how well your CPU can keep up with encoding 720p using the fast preset. Try a new scene with nothing but a game capture source, and if you still have issues test with the preset and faster and veryfast. Post new log files if the problem continues.
 

ColterTV

Member
Don't use monitor capture with Aero enabled and Windows7, it will bring your performance down (OBS itself should have warn you when adding it, you ignored the warning?)
Also your CPU is a little old so I would say don't mess with the preset, keep it at veryfast

You say you wanted to stream at 60 fps but your logs shows 30 fps. I don't recommend 60 fps with that CPU, but I guess it doesn't hurt to try and see
 

angelsg

New Member
Thanks for the quick replies. I was aware that monitor capture with games was not great I was just doing it as a test. I changed the preset to very fast, and it appears to be working just fine. The quality is a bit blurry -- anyway to resolve that?

Also in regards to increasing the performance to do 1080p / 60 FPS in the future, I was looking into purchasing a 4770k for myself for christmas. Would that be able to handle the job?
 

ColterTV

Member
I'm yet to believe that with 3500 bitrate you have a blurry image :D
Have a VOD to see it?

4770k is the top of the line I think so it will be a great upgrade!
 

ColterTV

Member
For 720p @30 2500 is a very good bitrate and more reasonable. If you go too high some viewers will have problems keeping up without buffering
 
Top