Question / Help Choppy/stuttering local recording while the game is smooth

koevoetje

New Member
Hi all,

I just started using OBS local recording about a week ago.
The problem i have recording the game Rust (HL2: Source engine)is that the game feels smooth but the recording is choppy/stuttering.
Also I use OBS x64 with x264 preset: Veryfast (multithreated)

I tried crf= 18, 20 and quality 10.

Encoding
Use CBR: Disabled
Quality Balance: 10
Bitrate: 1000
Use custom buffer size: Enabled
Buffer size: 0

Advanced Options
Use custom x264 parameters: Enabled
Custom x264 parameters: crf=18

Hope to get some answers to get this fixed.
Appreciated.

Code:
14:13:33: Open Broadcaster Software v0.592b - 64bit ( ^ω^)
14:13:33: -------------------------------
14:13:33: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
14:13:33: CPU Speed: 3300MHz
14:13:33: Physical Memory:  16295MB Total, 12557MB Free
14:13:33: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
14:13:33: monitor 1: pos={0, 0}, size={1920, 1080}
14:13:33: Windows Version: 6.2 Build 9200 
14:13:33: Aero is Enabled
14:13:33: -------------------------------
14:13:33: OBS Modules:
14:13:33: Base Address     Module
14:13:33: 0000000012A30000 OBS.exe
14:13:33: 00000000A0490000 OBSApi.dll
14:13:33: 00000000A07D0000 DShowPlugin.dll
14:13:33: 00000000A0160000 GraphicsCapture.dll
14:13:33: 00000000A08A0000 NoiseGate.dll
14:13:33: 00000000A0140000 PSVPlugin.dll
14:13:33: ------------------------------------------
14:13:33: Adapter 1
14:13:33:   Video Adapter: AMD Radeon HD 7900 Series
14:13:33:   Video Adapter Dedicated Video Memory: 3193987072
14:13:33:   Video Adapter Shared System Memory: 4026531840
14:13:33:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
14:13:33: =====Stream Start: 2014-01-15, 14:13:33===============================================
14:13:33:   Multithreaded optimizations: On
14:13:33:   Base resolution: 1920x1080
14:13:33:   Output resolution: 1920x1080
14:13:33: ------------------------------------------
14:13:33: Loading up D3D10 on AMD Radeon HD 7900 Series (Adapter 1)...
14:13:33: ------------------------------------------
14:13:33: Audio Format: 48000hz
14:13:33: Playback device Default
14:13:33: ------------------------------------------
14:13:33: Using desktop audio input: Luidsprekers (Realtek High Definition Audio)
14:13:33: ------------------------------------------
14:13:33: Using auxilary audio input: Microfoon van hoofdtelefoon (AKG Perception 120 USB)
14:13:33: ------------------------------------------
14:13:33: Audio Encoding: AAC
14:13:33:     bitrate: 128
14:13:33: Using graphics capture
14:13:33: Scene buffering time set to 700
14:13:34: Failed to initialize QSV hardware session
14:13:34: Using custom x264 settings: "crf=18"
14:13:34: x264: VBV maxrate specified, but no bufsize, ignored
14:13:34: ------------------------------------------
14:13:34: Video Encoding: x264
14:13:34:     fps: 30
14:13:34:     width: 1920, height: 1080
14:13:34:     preset: veryfast
14:13:34:     profile: high
14:13:34:     keyint: 250
14:13:34:     CBR: no
14:13:34:     CFR: yes
14:13:34:     max bitrate: 1000
14:13:34:     buffer size: 0
14:13:34:     quality: 14
14:13:34: ------------------------------------------
14:13:34: MMDeviceAudioSource: Frequency for device 'Luidsprekers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
14:13:34: MMDeviceAudioSource: Frequency for device 'Microfoon van hoofdtelefoon (AKG Perception 120 USB)' is 176400, samples per sec is 44100
14:13:34: SharedTexCapture hooked
14:14:45: Total frames encoded: 2110, total frames duplicated: 40 (1.90%)
14:14:45: Total frames rendered: 2113, number of late frames: 1 (0.05%) (it's okay for some frames to be late)
14:14:45: 
14:14:45: Profiler time results:
14:14:45: 
14:14:45: ==============================================================
14:14:45: video thread frame - [100%] [avg time: 0.806 ms] [children: 54%] [unaccounted: 46%]
14:14:45: | scene->Preprocess - [0.124%] [avg time: 0.001 ms]
14:14:45: | GPU download and conversion - [53.8%] [avg time: 0.434 ms] [children: 49.4%] [unaccounted: 4.47%]
14:14:45: | | flush - [47.9%] [avg time: 0.386 ms]
14:14:45: | | CopyResource - [0.868%] [avg time: 0.007 ms]
14:14:45: | | conversion to 4:2:0 - [0.62%] [avg time: 0.005 ms]
14:14:45: Convert444Threads - [100%] [avg time: 0.906 ms] [children: 99.4%] [unaccounted: 0.552%]
14:14:45: | Convert444toNV12 - [99.4%] [avg time: 0.901 ms]
14:14:45: encoder thread frame - [100%] [avg time: 3.024 ms]
14:14:45: ==============================================================
14:14:45: 
14:14:45: 
14:14:45: Profiler CPU results:
14:14:45: 
14:14:45: ==============================================================
14:14:45: video thread frame - [cpu time: avg 0.066 ms, total 140.625 ms] [avg calls per frame: 1]
14:14:45: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:14:45: | GPU download and conversion - [cpu time: avg 0.051 ms, total 109.375 ms] [avg calls per frame: 1]
14:14:45: | | flush - [cpu time: avg 0.036 ms, total 78.125 ms] [avg calls per frame: 1]
14:14:45: | | CopyResource - [cpu time: avg 0.007 ms, total 15.625 ms] [avg calls per frame: 1]
14:14:45: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:14:45: Convert444Threads - [cpu time: avg 0.938 ms, total 3921.88 ms] [avg calls per frame: 2]
14:14:45: | Convert444toNV12 - [cpu time: avg 0.938 ms, total 3921.88 ms] [avg calls per frame: 2]
14:14:45: encoder thread frame - [cpu time: avg 1.009 ms, total 2109.38 ms] [avg calls per frame: 1]
14:14:45: ==============================================================
14:14:45: 
14:14:45: =====Stream End: 2014-01-15, 14:14:45=================================================


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

Boildown

Active Member
Re: Choppy/stuttering localrecording while the game is smoot

14:14:45: Total frames encoded: 2110, total frames duplicated: 40 (1.90%)
14:14:45: Total frames rendered: 2113, number of late frames: 1 (0.05%) (it's okay for some frames to be late)

Its because you have too many duplicated frames. You're going to have to use SuperFast instead of VeryFast.

Also your CRF is probably overkill, personally I use something around 24 while running SuperFast for my local recording, and it looks great.

Get your duplicated frames percentage a lot closer to 0.00 and you should see the stuttering go away. You might also try increasing the capture framerate to 60, but this will increase the potential for duplicated frames and you will most definitely need to move to SuperFast preset if you do that.
 

Ninjaguy_1000

New Member
Hi, I just noticed I am having this problem too. Here is the log file thing: Hopefully someone can help me with this. XD
 

Attachments

  • ar.txt
    9.9 KB · Views: 20
  • 2016-07-30-1704-12.log
    9.7 KB · Views: 19
Top