Question / Help Local Recording: Too long to decode... with 4570 Haswell CPU?

hashyx

New Member
Helle everyone,

first of all: Please excuse my bad english, I am not a native speaker ;)

My problem is related to LOCAL RECORDING only. I do not want to stream!!!

Every minute OBS tells me that it took too long to decode and will skip frames. I do not understand that problem. I guess that my computer configuration is quite better than the ones of some people here saying that their setup runs perfectly.

If you have any hints, please let me know, I am truly desperate. I have read all the tutorials conceirning this problem, I have played with bitrates, etc.

And I think that 1080p@30fps with 8000 Bitrate should be no barrier for my setup.

Or do I need a new cpu? i7? If that is the case which one can you guys recommend? 4790?

My Config:

i5 4570
Gigabyte H87-HD3
8 GB RAM
GT 660

LOG:

Code:
12:50:23: Open Broadcaster Software v0.625b - 64bit ( ^ω^)
12:50:23: -------------------------------
12:50:23: CPU Name: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
12:50:23: CPU Speed: 3193MHz
12:50:23: Physical Memory:  8070MB Total, 4338MB Free
12:50:23: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
12:50:23: monitor 1: pos={0, 0}, size={1920, 1080}
12:50:23: monitor 2: pos={1920, 0}, size={1920, 1080}
12:50:23: monitor 3: pos={3840, 0}, size={1920, 1080}
12:50:23: Windows Version: 6.2 Build 9200
12:50:23: Aero is Enabled
12:50:23: -------------------------------
12:50:23: OBS Modules:
12:50:23: Base Address     Module
12:50:23: 0000000083170000 OBS.exe
12:50:23: 00000000352D0000 OBSApi.dll
12:50:23: 0000000053380000 DShowPlugin.dll
12:50:23: 0000000052900000 GraphicsCapture.dll
12:50:23: 000000004BB20000 NoiseGate.dll
12:50:23: 000000004BAF0000 PSVPlugin.dll
12:50:23: ------------------------------------------
12:50:23: Adapter 1
12:50:23:   Video Adapter: NVIDIA GeForce GTX 660
12:50:23:   Video Adapter Dedicated Video Memory: 2086273024
12:50:23:   Video Adapter Shared System Memory: 2147807232
12:50:23:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
12:50:23:   Video Adapter Output 2: pos={1920, 0}, size={1920, 1080}, attached=true
12:50:23: ------------------------------------------
12:50:23: Adapter 2
12:50:23:   Video Adapter: Intel(R) HD Graphics 4600
12:50:23:   Video Adapter Dedicated Video Memory: 33554432
12:50:23:   Video Adapter Shared System Memory: 1845493760
12:50:23:   Video Adapter Output 1: pos={3840, 0}, size={1920, 1080}, attached=true
12:50:23: =====Stream Start: 2014-07-12, 12:50:23===============================================
12:50:23:   Multithreaded optimizations: On
12:50:23:   Base resolution: 1920x1080
12:50:23:   Output resolution: 1920x1080
12:50:23: ------------------------------------------
12:50:23: Loading up D3D10 on NVIDIA GeForce GTX 660 (Adapter 1)...
12:50:23: ------------------------------------------
12:50:23: Audio Format: 48000 Hz
12:50:23: ------------------------------------------
12:50:23: Audio Channels: 2 Ch
12:50:23: Playback device Default
12:50:23: ------------------------------------------
12:50:23: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
12:50:23: Global Audio time adjust: 0
12:50:23: ------------------------------------------
12:50:23: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
12:50:23: Mic time offset: 0
12:50:23: ------------------------------------------
12:50:23: Audio Encoding: AAC
12:50:23:     bitrate: 160
12:50:23: Using graphics capture
12:50:23: Using bitmap image
12:50:23: Trying to hook process: WildStar64.exe
12:50:23: Scene buffering time set to 700
12:50:23: Using custom x264 settings: "cfr=20"
12:50:23: The custom x264 command 'cfr=20' failed
12:50:23: ------------------------------------------
12:50:23: Video Encoding: x264
12:50:23:     fps: 30
12:50:23:     width: 1920, height: 1080
12:50:23:     preset: veryfast
12:50:23:     profile: high
12:50:23:     keyint: 250
12:50:23:     CBR: yes
12:50:23:     CFR: yes
12:50:23:     max bitrate: 8000
12:50:23:     buffer size: 8000
12:50:23: ------------------------------------------
12:50:23: SharedTexCapture hooked
12:52:52: Total frames encoded: 4434, total frames duplicated: 171 (3.86%)
12:52:52: Number of frames skipped due to encoder lag: 165 (3.72%)
12:52:52: Total frames rendered: 4289, number of late frames: 3 (0.07%) (it's okay for some frames to be late)
12:52:54:
12:52:54: Profiler time results:
12:52:54:
12:52:54: ==============================================================
12:52:54: video thread frame - [100%] [avg time: 0.814 ms] [children: 18.3%] [unaccounted: 81.7%]
12:52:54: | scene->Preprocess - [1.11%] [avg time: 0.009 ms]
12:52:54: | GPU download and conversion - [17.2%] [avg time: 0.14 ms] [children: 10.6%] [unaccounted: 6.63%]
12:52:54: | | flush - [7%] [avg time: 0.057 ms]
12:52:54: | | CopyResource - [3.32%] [avg time: 0.027 ms]
12:52:54: | | conversion to 4:2:0 - [0.246%] [avg time: 0.002 ms]
12:52:54: Convert444Threads - [100%] [avg time: 1.113 ms] [children: 99.6%] [unaccounted: 0.449%]
12:52:54: | Convert444toNV12 - [99.6%] [avg time: 1.108 ms]
12:52:54: encoder thread frame - [100%] [avg time: 3.798 ms] [children: 25.4%] [unaccounted: 74.6%]
12:52:54: | sending stuff out - [25.4%] [avg time: 0.964 ms]
12:52:54: ==============================================================
12:52:54:
12:52:54:
12:52:54: Profiler CPU results:
12:52:54:
12:52:54: ==============================================================
12:52:54: video thread frame - [cpu time: avg 0.109 ms, total 468.75 ms] [avg calls per frame: 1]
12:52:54: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:52:54: | GPU download and conversion - [cpu time: avg 0.043 ms, total 187.5 ms] [avg calls per frame: 1]
12:52:54: | | flush - [cpu time: avg 0.032 ms, total 140.625 ms] [avg calls per frame: 1]
12:52:54: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:52:54: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:52:54: Convert444Threads - [cpu time: avg 0.928 ms, total 7921.88 ms] [avg calls per frame: 2]
12:52:54: | Convert444toNV12 - [cpu time: avg 0.926 ms, total 7906.25 ms] [avg calls per frame: 2]
12:52:54: encoder thread frame - [cpu time: avg 1.343 ms, total 5953.13 ms] [avg calls per frame: 1]
12:52:54: | sending stuff out - [cpu time: avg 0.003 ms, total 15.625 ms] [avg calls per frame: 1]
12:52:54: ==============================================================
12:52:54:
12:52:54: =====Stream End: 2014-07-12, 12:52:54=================================================

Thanks for your time and hints!

hashyx
 
Last edited:

R1CH

Forum Admin
Developer
If it only happens every minute, there's probably something else on your system that is running every minute and taking up CPU time. Also you should check the local recording guide since your custom parameters are wrong.
 

hashyx

New Member
Hey R1ch,

thank you very much for your answer.

I have read the guide and played with the options. It happens every time with every possible setting. It does'nt matter of I choose x264, Quick Sync or Nvidia. My CPU time is every time of the record below 50%, so I think there is enough potential.

What do you think about the CPU? Is it strong enought?

What else can I do?
 

R1CH

Forum Admin
Developer
Your CPU should be OK, but I guess it's struggling just a tiny amount. Maybe try downscaling to 1280x720.
 

hashyx

New Member
Your CPU should be OK, but I guess it's struggling just a tiny amount. Maybe try downscaling to 1280x720.

Downscaling did not solve the problem. Recording in 720p doesn't solve the issue.

So I think the problem has to do with my system config. I stopped virus scanner -> no change.

I have used all settings from the guide for 1080p and 720p with crf=20.

Any hints left?

I mean: Where is the problem? CPU time maximum on 50% :(

Another question: Any hint why Quick Sync does not solve the problem, either?

A friend of mine records with OBS on a laptop with medium setup and everything works fine :(
 
Top