Question / Help Lag Spikes in the video

Sio

New Member
I have no problems at all recording a video with OBS, but when I look at the video it got lag spikes all over the place.

Here's a video of it: http://youtu.be/cxxNpdZWUSo
As you can see in the bottom right hand corner I have around 200 fps while recording.

OS: Windows 8.1 Pro
CPU: Intel Core i5 2500k 3,3GHz (Not overclocked)
GPU: Nvidia GeForce GTX 560Ti

Thanks in advance!
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Does this happen when you output to file and view it in a media player as well? If so, please post a log file so I can see further details.
 

Sio

New Member
Jim said:
Does this happen when you output to file and view it in a media player as well? If so, please post a log file so I can see further details.
I use "File output only" and this happens when I view it in media player too. Where can I obtain the log file?

Edit: Log:
Code:
12:35:14: Open Broadcaster Software v0.592b - 32bit (´・ω・`)
12:35:14: -------------------------------
12:35:14: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
12:35:14: CPU Speed: 3293MHz
12:35:14: Physical Memory:  4095MB Total, 3989MB Free
12:35:14: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
12:35:14: monitor 1: pos={0, 0}, size={1920, 1080}
12:35:14: monitor 2: pos={-1280, 0}, size={1280, 1024}
12:35:14: Windows Version: 6.2 Build 9200 
12:35:14: Aero is Enabled
12:35:14: -------------------------------
12:35:14: OBS Modules:
12:35:14: Base Address     Module
12:35:14: 00C10000         OBS.exe
12:35:14: 007C0000         OBSApi.dll
12:35:14: 0F2E0000         DShowPlugin.dll
12:35:14: 0FB20000         GraphicsCapture.dll
12:35:14: 0F850000         NoiseGate.dll
12:35:14: 0F040000         PSVPlugin.dll
12:35:14: ------------------------------------------
12:35:14: Adapter 1
12:35:14:   Video Adapter: NVIDIA GeForce GTX 560 Ti  
12:35:14:   Video Adapter Dedicated Video Memory: 1018621952
12:35:14:   Video Adapter Shared System Memory: 3221106688
12:35:14:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
12:35:14:   Video Adapter Output 2: pos={-1280, 0}, size={1280, 1024}, attached=true
12:35:14: ------------------------------------------
12:35:14: Adapter 2
12:35:14:   Video Adapter: Intel(R) HD Graphics 3000
12:35:14:   Video Adapter Dedicated Video Memory: 33554432
12:35:14:   Video Adapter Shared System Memory: 1711276032
12:35:14: =====Stream Start: 2014-01-24, 12:35:14===============================================
12:35:14:   Multithreaded optimizations: On
12:35:14:   Base resolution: 1920x1080
12:35:14:   Output resolution: 1920x1080
12:35:14: ------------------------------------------
12:35:14: Loading up D3D10 on NVIDIA GeForce GTX 560 Ti (Adapter 1)...
12:35:15: ------------------------------------------
12:35:15: Audio Format: 48000hz
12:35:15: Playback device Default
12:35:15: ------------------------------------------
12:35:15: Using desktop audio input: Speakers (Razer Surround Audio Controller)
12:35:15: Using 7.1 surround speaker setup
12:35:15: ------------------------------------------
12:35:15: Using auxilary audio input: Microphone (High Definition Audio Device)
12:35:15: ------------------------------------------
12:35:15: Audio Encoding: AAC
12:35:15:     bitrate: 128
12:35:15: Using graphics capture
12:35:15: Scene buffering time set to 700
12:35:15: ------------------------------------------
12:35:15: Video Encoding: x264
12:35:15:     fps: 30
12:35:15:     width: 1920, height: 1080
12:35:15:     preset: veryfast
12:35:15:     profile: high
12:35:15:     keyint: 250
12:35:15:     CBR: no
12:35:15:     CFR: yes
12:35:15:     max bitrate: 5000
12:35:15:     buffer size: 5000
12:35:15:     quality: 7
12:35:15: ------------------------------------------
12:35:15: MMDeviceAudioSource: Frequency for device 'Speakers (Razer Surround Audio Controller)' is 1536000, samples per sec is 48000
12:35:15: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
12:35:15: SharedTexCapture hooked
12:37:37: Total frames encoded: 4255, total frames duplicated: 912 (21.43%)
12:37:37: Number of frames skipped due to encoder lag: 809 (19.01%)
12:37:37: Total frames rendered: 3443, number of late frames: 44 (1.28%) (it's okay for some frames to be late)
12:37:37: 
12:37:37: Profiler time results:
12:37:37: 
12:37:37: ==============================================================
12:37:37: video thread frame - [100%] [avg time: 0.727 ms] [children: 17.1%] [unaccounted: 82.9%]
12:37:37: | scene->Preprocess - [0.138%] [avg time: 0.001 ms]
12:37:37: | GPU download and conversion - [16.9%] [avg time: 0.123 ms] [children: 9.22%] [unaccounted: 7.7%]
12:37:37: | | flush - [5.91%] [avg time: 0.043 ms]
12:37:37: | | CopyResource - [3.03%] [avg time: 0.022 ms]
12:37:37: | | conversion to 4:2:0 - [0.275%] [avg time: 0.002 ms]
12:37:37: Convert444Threads - [100%] [avg time: 1.155 ms] [children: 99.1%] [unaccounted: 0.866%]
12:37:37: | Convert444toNV12 - [99.1%] [avg time: 1.145 ms]
12:37:37: encoder thread frame - [100%] [avg time: 11.62 ms]
12:37:37: ==============================================================
12:37:37: 
12:37:37: 
12:37:37: Profiler CPU results:
12:37:37: 
12:37:37: ==============================================================
12:37:37: video thread frame - [cpu time: avg 0.222 ms, total 765.625 ms] [avg calls per frame: 1]
12:37:37: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:37:37: | GPU download and conversion - [cpu time: avg 0.027 ms, total 93.75 ms] [avg calls per frame: 1]
12:37:37: | | flush - [cpu time: avg 0.018 ms, total 62.5 ms] [avg calls per frame: 1]
12:37:37: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:37:37: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:37:37: Convert444Threads - [cpu time: avg 1.032 ms, total 7062.5 ms] [avg calls per frame: 2]
12:37:37: | Convert444toNV12 - [cpu time: avg 1.03 ms, total 7046.88 ms] [avg calls per frame: 2]
12:37:37: encoder thread frame - [cpu time: avg 1.454 ms, total 6156.25 ms] [avg calls per frame: 1]
12:37:37: ==============================================================
12:37:37: 
12:37:37: =====Stream End: 2014-01-24, 12:37:37=================================================


Last game capture log:
2014-01-24, 12:35:15: we're booting up: 
12:35:15: CaptureThread: attached to process csgo.exe
12:35:15: D3D9 Present
12:35:15: D3D9EndScene called
12:35:15: D3DPRESENT_PARAMETERS {
12:35:15: 	BackBufferWidth: 1920
12:35:15: 	BackBufferHeight: 1080
12:35:15: 	BackBufferFormat: D3DFMT_A8R8G8B8
12:35:15: 	BackBufferCount: 1
12:35:15: 	MultiSampleType: D3DMULTISAMPLE_NONE
12:35:15: 	MultiSampleQuality: 0
12:35:15: 	SwapEffect: D3DSWAPEFFECT_DISCARD
12:35:15: 	hDeviceWindow: 68768
12:35:15: 	Windowed: true
12:35:15: 	EnableAutoDepthStencil: true
12:35:15: 	AutoDepthStencilFormat: D3DFMT_D24S8
12:35:15: 	Flags: None
12:35:15: 	FullScreen_RefreshRateInHz: 0
12:35:15: 	PresentationInterval: 2147483648
12:35:15: };
12:35:15: successfully set up d3d9 hooks
12:35:15: D3D9Present called
12:35:15: DoD3D9GPUHook: success
12:35:15: D3DSURFACE_DESC {
12:35:15: 	Format: D3DFMT_A8R8G8B8
12:35:15: 	Type: D3DRTYPE_SURFACE
12:35:15: 	Usage: D3DUSAGE_RENDERTARGET 
12:35:15: 	Pool: D3DPOOL_DEFAULT
12:35:15: 	MultiSampleType: D3DMULTISAMPLE_NONE
12:35:15: 	MultiSampleQuality: 0
12:35:15: 	Width: 1920
12:35:15: 	Height: 1080
12:35:15: };
12:35:15: successfully capturing d3d9 frames via GPU
12:35:15: NV Capture available
12:35:15: FBO available
12:35:15: GL Present
12:35:15: (half life scientist) everything..  seems to be in order
12:37:37: ---------------------- Cleared D3D9 Capture ----------------------
12:37:37: D3D9EndScene called
12:37:37: D3D9Present called
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Ah okay, I see the problem. Try using 1.5 downscale in video settings or more, and it should solve the problem. You're just using too high of a resolution, and your computer can't really encode it very well (I should know because I have the same CPU)
 
Top