Question / Help Jumpy/Laggy Stream, Smooth Gameplay

DTHPWN

New Member
For some reason my stream is really jumpy...like every 5 sec. or so it lags for a few frames. I'm not dropping hardly any frames according to OBS and my gameplay is still smooth (60+ FPS). It's not just the live stream either, as the recording of the stream also has the jumpy video. I had my bitrate and buffer set at 4000, and I read that for twitch anything over 3-3.5k is too much, so I set them both to 2000 for a test stream. Game graphics are on low, my FPS was a solid 60-80 FPS throughout the stream, although it doesn't show on the stream. Here's the video where you can see some of this lag, especially toward the end of the video: http://www.twitch.tv/dthpwn/b/444496136

Here's the OBS log for that stream:
Code:
03:23:05: Open Broadcaster Software v0.542b - 64bit 
03:23:05: -------------------------------
03:23:05: CPU Name: AMD Phenom(tm) II X4 965 Processor
03:23:05: CPU Speed: 3400MHz
03:23:05: Physical Memory:  8178MB Total, 5665MB Free
03:23:05: stepping id: 3, model 4, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, total cores 4
03:23:05: monitor 1: pos={0, 0}, size={1600, 900}
03:23:05: Windows Version: 6.1 Build 7601 S
03:23:05: Aero is Enabled
03:23:05: -------------------------------
03:23:05: OBS Modules:
03:23:05: Base Address     Module
03:23:05: 000000003F350000 OBS.exe
03:23:05: 00000000E96E0000 OBSApi.dll
03:23:05: 00000000ED8B0000 DShowPlugin.dll
03:23:05: 00000000F55C0000 GraphicsCapture.dll
03:23:05: 00000000ED910000 NoiseGate.dll
03:23:05: 00000000ED890000 PSVPlugin.dll
03:23:05: ------------------------------------------
03:23:05: Adapter 1
03:23:05:   Video Adapter: AMD Radeon HD 7700 Series
03:23:05:   Video Adapter Dedicated Video Memory: 1055068160
03:23:05:   Video Adapter Shared System Memory: 4019263488
03:23:05: =====Stream Start: 2013-08-12, 03:23:05===============================================
03:23:05:   Multithreaded optimizations: On
03:23:05:   Base resolution: 1600x900
03:23:05:   Output resolution: 1280x720
03:23:05: ------------------------------------------
03:23:05: Loading up D3D10...
03:23:05: Playback device Default
03:23:05: ------------------------------------------
03:23:05: Using desktop audio input: Speakers (Realtek High Definition Audio)
03:23:05: ------------------------------------------
03:23:05: Using auxilary audio input: Microphone (Realtek High Definition Audio)
03:23:05: ------------------------------------------
03:23:05: Audio Encoding: AAC
03:23:05:     bitrate: 128
03:23:05: Using graphics capture
03:23:05: ------------------------------------------
03:23:05: Video Encoding: x264
03:23:05:     fps: 30
03:23:05:     width: 1280, height: 720
03:23:05:     preset: veryfast
03:23:05:     CBR: yes
03:23:05:     CFR: no
03:23:05:     max bitrate: 2000
03:23:05: ------------------------------------------
03:24:40: Total frames rendered: 2824, number of frames that lagged: 1 (0.04%) (it's okay for some frames to lag)
03:24:40: =====Stream End: 2013-08-12, 03:24:40=================================================
03:24:42: =====Stream Start: 2013-08-12, 03:24:42===============================================
03:24:42:   Multithreaded optimizations: On
03:24:42:   Base resolution: 1600x900
03:24:42:   Output resolution: 1280x720
03:24:42: ------------------------------------------
03:24:42: Loading up D3D10...
03:24:42: Playback device Default
03:24:42: ------------------------------------------
03:24:42: Using desktop audio input: Speakers (Realtek High Definition Audio)
03:24:42: ------------------------------------------
03:24:42: Using auxilary audio input: Microphone (Realtek High Definition Audio)
03:24:42: ------------------------------------------
03:24:42: Audio Encoding: AAC
03:24:42:     bitrate: 128
03:24:42: Using graphics capture
03:24:42: ------------------------------------------
03:24:42: Video Encoding: x264
03:24:42:     fps: 30
03:24:42:     width: 1280, height: 720
03:24:42:     preset: veryfast
03:24:42:     CBR: yes
03:24:42:     CFR: no
03:24:42:     max bitrate: 2000
03:24:42: ------------------------------------------
03:28:34: Using Window Capture
03:28:51: Using Window Capture
03:28:58: Total frames rendered: 7133, number of frames that lagged: 43 (0.60%) (it's okay for some frames to lag)
03:28:58: =====Stream End: 2013-08-12, 03:28:58=================================================
03:29:06: =====Stream Start: 2013-08-12, 03:29:06===============================================
03:29:06:   Multithreaded optimizations: On
03:29:06:   Base resolution: 1600x900
03:29:06:   Output resolution: 1280x720
03:29:06: ------------------------------------------
03:29:06: Loading up D3D10...
03:29:07: Playback device Default
03:29:07: ------------------------------------------
03:29:07: Using desktop audio input: Speakers (Realtek High Definition Audio)
03:29:07: ------------------------------------------
03:29:07: Using auxilary audio input: Microphone (Realtek High Definition Audio)
03:29:07: ------------------------------------------
03:29:07: Audio Encoding: AAC
03:29:07:     bitrate: 128
03:29:07: Using Window Capture
03:29:07: ------------------------------------------
03:29:07: Video Encoding: x264
03:29:07:     fps: 30
03:29:07:     width: 1280, height: 720
03:29:07:     preset: veryfast
03:29:07:     CBR: yes
03:29:07:     CFR: no
03:29:07:     max bitrate: 2000
03:29:07: ------------------------------------------
03:29:11: Using RTMP service: Twitch / Justin.tv
03:29:11:   Server selection: rtmp://live-ord.justin.tv/app
03:29:12: SO_SNDBUF was at 8192
03:29:12: SO_SNDBUF is now 65536
03:30:28: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
03:32:29: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 262144
03:35:42: Total frames rendered: 7040, number of frames that lagged: 696 (9.89%) (it's okay for some frames to lag)
03:35:42: RTMPPublisher::SocketLoop: Aborting due to bStopping
03:35:42: Number of times waited to send: 11, Waited for a total of 45067 bytes
03:35:42: Number of b-frames dropped: 134 (1.9%), Number of p-frames dropped: 161 (2.3%), Total 295 (4.2%)
03:35:43: =====Stream End: 2013-08-12, 03:35:43=================================================
03:58:29: 
03:58:29: Profiler results:
03:58:29: 
03:58:29: ==============================================================
03:58:29: frame - [100%] [avg time: 17.304 ms (cpu time: avg 2.487 ms, total 42276.3 ms)] [avg calls per frame: 1] [children: 100%] [unaccounted: 0.0289%]
03:58:29: | frame preprocessing and rendering - [81.8%] [avg time: 14.151 ms (cpu time: avg 0.35 ms, total 5959.24 ms)] [avg calls per frame: 1] [children: 78.6%] [unaccounted: 3.22%]
03:58:29: | | scene->Preprocess - [78.6%] [avg time: 13.593 ms (cpu time: avg 0.091 ms, total 1560.01 ms)] [avg calls per frame: 1]
03:58:29: | video encoding and uploading - [18.2%] [avg time: 3.148 ms (cpu time: avg 2.136 ms, total 36317 ms)] [avg calls per frame: 1] [children: 17.9%] [unaccounted: 0.26%]
03:58:29: | | flush - [5.19%] [avg time: 0.898 ms (cpu time: avg 0.067 ms, total 1154.41 ms)] [avg calls per frame: 1]
03:58:29: | | CopyResource - [0.0693%] [avg time: 0.012 ms (cpu time: avg 0.01 ms, total 171.601 ms)] [avg calls per frame: 0]
03:58:29: | | conversion to 4:2:0 - [0.22%] [avg time: 0.038 ms (cpu time: avg 0.003 ms, total 62.4 ms)] [avg calls per frame: 0]
03:58:29: | | call to encoder - [12.1%] [avg time: 2.102 ms (cpu time: avg 2.018 ms, total 34304.6 ms)] [avg calls per frame: 0]
03:58:29: | | sending stuff out - [0.306%] [avg time: 0.053 ms (cpu time: avg 0.019 ms, total 327.602 ms)] [avg calls per frame: 0]
03:58:29: | Convert444Threads - [505%] [avg time: 87.451 ms (cpu time: avg 2.471 ms, total 42011.1 ms)] [avg calls per frame: 1]
03:58:29: ==============================================================
 

alpinlol

Active Member
log looks fine just a little bit of an high frame processing time and at some point you lagged a lot of frames

your vod also has no sound ... at least for me and the weird thing is the actual gaming content was okay just those splitscenes in the game were laggy as fuck
 

DTHPWN

New Member
Ok well the scenes at the start are supposed to be 'bad' and have little/no motion in them. The part I noticed it most was at the end when I was running. You can watch some of my other recent streams for more examples (L4D2). Any suggestions?

EDIT: if it matters, I'm running an AMD Phenom II 965 oc'd to 4GHz and a Radeon HD 7770 oc'd to 1100 MHz core/1175 MHz memory. Should I change my 'very fast' to 'super fast'?
 

Kharay

Member
I'm not quite sure why your processing time is so high, your hardware is superior to mine but your frame processing time is far, far higher than mine.
03:58:29: | | scene->Preprocess - [78.6%] [avg time: 13.593 ms (cpu time: avg 0.091 ms, total 1560.01 ms)] [avg calls per frame: 1]
03:58:29: | Convert444Threads - [505%] [avg time: 87.451 ms (cpu time: avg 2.471 ms, total 42011.1 ms)] [avg calls per frame: 1]
In particular those 2 steps take an awful amount of time. Could you try something? Read my guide and consider following it, step by step. And if you do follow it, step by step, try setting OBS back up at a bare level. What I mean is, just use 1 source, just the game. Using Game Capture if at all possible (just run the game in a Borderless Window/Fullscreen Window). I want to see if we can get that processing time down for you.
 
Top