Question / Help High CPU usage (i7-4770k)

Hey guys,

I was streaming some Titanfall and when I got my transcoding options on twitch I fired up the bitrate from 1800 to 3k.
And I started to notice FPS drops and such due to my CPU hitting near 100% usage on cores. (I don't use any OC or anything)

I've got a fibre optics connection that is stable and tested and is not the cause if the problem (100/100)

CPU - i7 4770k
GPU: GTX 780
Ram: 16gb corsair vengeance
PSU Seasonic-x 750w
Mobo: Asus maximus vi hero

OS: Win 7
OBS: 64 bit

I've had the same isse a while back with TF2.

When I stream on 1800 bitrate my CPU is using roughly 60 to 70% of my CPU.

I can't figure out why as I use the following settings in my OBS.

- CBR &CBR Padding.
- Bitrate 1800 to 3k+ which is when trouble starts.
- AAC, 128bitrate, 48khz stero

- Resolution Downscale to 720p on Bilinear (fastest)
- FPS 45 (makes it look a lil smoother without pushing the 60 fps load
- Aero disabled

- Multithread optimzations enabled
- Scene buffering 700
- x264 cpu present: Faster (I don't even dare to touch medium)
- Encoding profile main
- Keyframe interval 1 second.
- CFR enabled

Anyone have a idea?
- I do use all the latest drivers on all my hardware, and run the latest bios as well.
- I do NOT experience overheating on any part in my PC and they are not being throttled due to that.
 
ofcourse this is taking the load off the CPU.
But other people running with the i7 4770k are getting lower loads on 60 fps and the medium preset.

It seems a lot of people with the latest build of OBS have CPU spike issues.
 
Update:
I tried using a custom resolution of 720p
Switched the keyint to 2
And went to a lower resolution webcam.

Still on faster and fast presets and playing a game like titanfall I wreck up 90%+ loads and on moments FPS drops on 45 fps as other people are playing triple aaa titles on 60 fps on medium with no issues on the same processor.

It seems a lot of people have CPU spikes these days. Something with the latest build with OBS?
 
Code:
12:43:53: CUDA loaded successfully
12:43:54: 1 CUDA capable devices found
12:43:54: [ GPU #0 - < GeForce GTX 780 > has Compute SM 3.5, NVENC Available ]
13:23:36: Open Broadcaster Software v0.60b - 64bit ( ^ω^)
13:23:36: -------------------------------
13:23:36: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
13:23:36: CPU Speed: 3500MHz
13:23:36: Physical Memory:  16322MB Total, 13615MB Free
13:23:36: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
13:23:36: monitor 1: pos={-1680, 0}, size={1680, 1050}
13:23:36: monitor 2: pos={0, 0}, size={1920, 1080}
13:23:36: Windows Version: 6.1 Build 7601 S
13:23:36: Aero is Disabled
13:23:36: -------------------------------
13:23:36: OBS Modules:
13:23:36: Base Address     Module
13:23:36: 000000003FF90000 OBS.exe
13:23:36: 00000000EA490000 OBSApi.dll
13:23:36: 00000000F6980000 DShowPlugin.dll
13:23:36: 00000000F6950000 GraphicsCapture.dll
13:23:36: 00000000FAD30000 NoiseGate.dll
13:23:36: 00000000F7FB0000 PSVPlugin.dll
13:23:36: ------------------------------------------
13:23:36: Adapter 1
13:23:36:   Video Adapter: NVIDIA GeForce GTX 780
13:23:36:   Video Adapter Dedicated Video Memory: 3140157440
13:23:36:   Video Adapter Shared System Memory: 3994267648
13:23:36:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
13:23:36:   Video Adapter Output 2: pos={-1680, 0}, size={1680, 1050}, attached=true
13:23:36: =====Stream Start: 2014-02-16, 13:23:36===============================================
13:23:36:   Multithreaded optimizations: On
13:23:36:   Base resolution: 1920x1080
13:23:36:   Output resolution: 1280x720
13:23:36: ------------------------------------------
13:23:36: Loading up D3D10 on NVIDIA GeForce GTX 780 (Adapter 1)...
13:23:36: ------------------------------------------
13:23:36: Audio Format: 48000hz
13:23:36: Playback device {0.0.0.00000000}.{6e551085-5c28-463b-8f31-93e34bd84839}
13:23:36: ------------------------------------------
13:23:36: Using desktop audio input: Speakers (2- Logitech G35 Headset)
13:23:36: Using 7.1 surround speaker setup
13:23:36: ------------------------------------------
13:23:36: Using auxilary audio input: Microphone (2- AT2020 USB               )
13:23:36: ------------------------------------------
13:23:36: Audio Encoding: AAC
13:23:36:     bitrate: 128
13:23:36: Using Slide Show
13:23:37: Using Slide Show
13:23:37: Using Slide Show
13:23:37: Using graphics capture
13:23:37: Using bitmap image
13:23:37: Using bitmap image
13:23:37: ------------------------------------------
13:23:37:     device: \\?\usb#vid_046d&pid_082d&mi_00#7&a9de7f2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
13:23:37:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&a9de7f2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
13:23:37:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000
13:23:37:     use buffering: false - 0, fourCC: 'I420'
13:23:37:     audio device: Disable,
13:23:37:     audio device id Disabled,
13:23:37: 
13:23:37: Using directshow input
13:23:38: Scene buffering time set to 700
13:23:38: ------------------------------------------
13:23:38: Video Encoding: x264
13:23:38:     fps: 45
13:23:38:     width: 1280, height: 720
13:23:38:     preset: faster
13:23:38:     profile: main
13:23:38:     keyint: 45
13:23:38:     CBR: yes
13:23:38:     CFR: yes
13:23:38:     max bitrate: 1750
13:23:38:     buffer size: 1750
13:23:38: ------------------------------------------
13:23:46: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
13:23:46:   New Scene
13:23:46: Using Window Capture
13:23:46: Using Window Capture
13:24:11: Total frames encoded: 1455, total frames duplicated: 0 (0.00%)
13:24:11: Total frames rendered: 1460, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
13:24:11: 
13:24:11: Profiler time results:
13:24:11: 
13:24:11: ==============================================================
13:24:11: video thread frame - [100%] [avg time: 1.677 ms] [children: 69.1%] [unaccounted: 30.9%]
13:24:11: | scene->Preprocess - [63.5%] [avg time: 1.065 ms]
13:24:11: | GPU download and conversion - [5.61%] [avg time: 0.094 ms] [children: 4.53%] [unaccounted: 1.07%]
13:24:11: | | flush - [3.52%] [avg time: 0.059 ms]
13:24:11: | | CopyResource - [0.894%] [avg time: 0.015 ms]
13:24:11: | | conversion to 4:2:0 - [0.119%] [avg time: 0.002 ms]
13:24:11: Convert444Threads - [100%] [avg time: 0.651 ms] [children: 99.4%] [unaccounted: 0.614%]
13:24:11: | Convert444toNV12 - [99.4%] [avg time: 0.647 ms]
13:24:11: encoder thread frame - [100%] [avg time: 0.745 ms]
13:24:11: ==============================================================
13:24:11: 
13:24:11: 
13:24:11: Profiler CPU results:
13:24:11: 
13:24:11: ==============================================================
13:24:11: video thread frame - [cpu time: avg 1.1 ms, total 1606.81 ms] [avg calls per frame: 1]
13:24:11: | scene->Preprocess - [cpu time: avg 0.619 ms, total 904.807 ms] [avg calls per frame: 1]
13:24:11: | GPU download and conversion - [cpu time: avg 0.032 ms, total 46.8 ms] [avg calls per frame: 1]
13:24:11: | | flush - [cpu time: avg 0.021 ms, total 31.2 ms] [avg calls per frame: 1]
13:24:11: | | CopyResource - [cpu time: avg 0.01 ms, total 15.6 ms] [avg calls per frame: 1]
13:24:11: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:24:11: Convert444Threads - [cpu time: avg 0.618 ms, total 1762.81 ms] [avg calls per frame: 2]
13:24:11: | Convert444toNV12 - [cpu time: avg 0.618 ms, total 1762.81 ms] [avg calls per frame: 2]
13:24:11: encoder thread frame - [cpu time: avg 0.12 ms, total 171.601 ms] [avg calls per frame: 1]
13:24:11: ==============================================================
13:24:11: 
13:24:11: =====Stream End: 2014-02-16, 13:24:11=================================================
15:04:27: =====Stream Start: 2014-02-16, 15:04:27===============================================
15:04:27:   Multithreaded optimizations: On
15:04:27:   Base resolution: 1920x1080
15:04:27:   Output resolution: 1280x720
15:04:27: ------------------------------------------
15:04:27: Loading up D3D10 on NVIDIA GeForce GTX 780 (Adapter 1)...
15:04:28: ------------------------------------------
15:04:28: Audio Format: 48000hz
15:04:28: Playback device {0.0.0.00000000}.{6e551085-5c28-463b-8f31-93e34bd84839}
15:04:28: ------------------------------------------
15:04:28: Using desktop audio input: Speakers (2- Logitech G35 Headset)
15:04:28: Using 7.1 surround speaker setup
15:04:28: ------------------------------------------
15:04:28: Using auxilary audio input: Microphone (2- AT2020 USB               )
15:04:28: ------------------------------------------
15:04:28: Audio Encoding: AAC
15:04:28:     bitrate: 128
15:04:28: Using Slide Show
15:04:28: Using Slide Show
15:04:28: Using Slide Show
15:04:28: Using graphics capture
15:04:28: Using bitmap image
15:04:28: Using bitmap image
15:04:28: ------------------------------------------
15:04:28:     device: \\?\usb#vid_046d&pid_082d&mi_00#7&a9de7f2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
15:04:28:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&a9de7f2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
15:04:28:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000
15:04:28:     use buffering: false - 0, fourCC: 'I420'
15:04:28:     audio device: Disable,
15:04:28:     audio device id Disabled,
15:04:28: 
15:04:28: Using directshow input
15:04:28: Scene buffering time set to 700
15:04:28: ------------------------------------------
15:04:28: Video Encoding: x264
15:04:28:     fps: 45
15:04:28:     width: 1280, height: 720
15:04:28:     preset: faster
15:04:28:     profile: main
15:04:28:     keyint: 45
15:04:28:     CBR: yes
15:04:28:     CFR: yes
15:04:28:     max bitrate: 1750
15:04:28:     buffer size: 1750
15:04:28: ------------------------------------------
15:04:31: Using RTMP service: Twitch / Justin.tv
15:04:31:   Server selection: rtmp://live-ams.justin.tv/app
15:04:31:   Interface: Intel(R) Ethernet Connection I217-V (ethernet, 1000 mbps)
15:04:31: Completed handshake with rtmp://live-ams.justin.tv/app in 352 ms.
15:04:32: SO_SNDBUF was at 8192
15:04:32: SO_SNDBUF is now 65536
15:04:33: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 7079 / 239616)
15:04:35: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 239616)
15:07:03: GetQPCTimeNS: WTF, clock went backwards! 139701626421 < 139701626422
15:11:52: Audio timestamp for device 'Microphone (2- AT2020 USB               )' was behind target timestamp by 70
15:13:52: GetQPCTimeNS: WTF, clock went backwards! 141100348370 < 141100348376
15:16:04: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
15:16:04:   New Scene
15:16:04: Using text output
15:16:04: Using text output
15:16:04: Using text output
15:16:04: Using text output
15:16:04: Using Window Capture
15:16:04: Using bitmap image
15:17:37: Audio timestamp for device 'Microphone (2- AT2020 USB               )' was behind target timestamp by 80
15:20:12: SharedTexCapture hooked
15:22:32: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
15:22:32:   New Scene
15:22:32: Using Window Capture
15:25:32: GetQPCTimeNS: WTF, clock went backwards! 143491957381 < 143491957382
15:25:44: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
15:25:44:   New Scene
15:25:44: Using text output
15:25:44: Using text output
15:25:44: Using text output
15:25:44: Using text output
15:28:34: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
15:28:34:   New Scene
15:28:34: Using Window Capture
16:07:15: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:07:15:   New Scene
16:07:15: Using text output
16:07:15: Using text output
16:07:15: Using text output
16:07:15: Using text output
16:07:23: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:07:23:   New Scene
16:07:23: Using Window Capture
16:07:53: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:07:53:   New Scene
16:07:53: Using text output
16:07:53: Using text output
16:07:53: Using text output
16:07:53: Using text output
16:08:54: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:08:54:   New Scene
16:08:54: Using Window Capture
16:18:07: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:18:07:   New Scene
16:18:07: Using text output
16:18:07: Using text output
16:18:07: Using text output
16:18:07: Using text output
16:18:34: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:18:34:   New Scene
16:18:34: Using Window Capture
16:22:26: Audio timestamp for device 'Microphone (2- AT2020 USB               )' was behind target timestamp by 100
16:38:36: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:38:36:   New Scene
16:38:36: Using text output
16:38:36: Using text output
16:38:36: Using text output
16:38:36: Using text output
16:39:08: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:39:08:   New Scene
16:39:08: Using Window Capture
16:47:33: GraphicsCaptureSource::NewCapture:  eliminating old capture
16:47:33: SharedTexCapture hooked
17:06:52: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:06:52:   New Scene
17:06:52: Using text output
17:06:52: Using text output
17:06:52: Using text output
17:06:52: Using text output
17:07:30: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:07:30:   New Scene
17:07:30: Using Window Capture
17:15:55: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:15:55:   New Scene
17:15:55: Using text output
17:15:55: Using text output
17:15:55: Using text output
17:15:55: Using text output
17:16:33: Settings::Encoding: Changing bitrate from 1750kb/s to 3000kb/s
17:18:14: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:18:14:   New Scene
17:24:04: Settings::Encoding: Changing bitrate from 3000kb/s to 2500kb/s
17:25:31: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:25:31:   New Scene
17:25:31: Using text output
17:25:31: Using text output
17:25:31: Using text output
17:25:31: Using text output
17:26:23: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:26:23:   New Scene
17:44:15: Audio timestamp for device 'Microphone (2- AT2020 USB               )' was behind target timestamp by 110
17:54:37: GetQPCTimeNS: WTF, clock went backwards! 174066109759 < 174066109767
17:57:14: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:57:14:   New Scene
17:57:14: Using text output
17:57:15: Using text output
17:57:15: Using text output
17:57:15: Using text output
17:57:52: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:57:52:   New Scene
18:08:14: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
18:08:14:   New Scene
18:08:14: Using text output
18:08:14: Using text output
18:08:14: Using text output
18:08:14: Using text output
18:08:50: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
18:08:50:   New Scene
18:19:24: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
18:19:24:   New Scene
18:19:24: Using text output
18:19:24: Using text output
18:19:24: Using text output
18:19:24: Using text output
18:20:00: Capture window 0x001006AE invalid or changing, terminating capture
18:20:27: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
18:20:27:   New Scene
18:21:01: Total frames encoded: 530643, total frames duplicated: 3268 (0.62%)
18:21:01: Total frames rendered: 530176, number of late frames: 91 (0.02%) (it's okay for some frames to be late)
18:21:02: RTMPPublisher::SocketLoop: Graceful loop exit
18:21:02: Average send payload: 5432 bytes, average send interval: 20 ms
18:21:02: Number of times waited to send: 23, Waited for a total of 92219 bytes
18:21:02: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:21:02: Number of bytes sent: 3169839576
18:21:02: 
18:21:02: Profiler time results:
18:21:02: 
18:21:02: ==============================================================
18:21:02: video thread frame - [100%] [avg time: 2.489 ms] [children: 77.3%] [unaccounted: 22.7%]
18:21:02: | scene->Preprocess - [73.3%] [avg time: 1.824 ms]
18:21:02: | GPU download and conversion - [4.06%] [avg time: 0.101 ms] [children: 2.25%] [unaccounted: 1.81%]
18:21:02: | | flush - [1.69%] [avg time: 0.042 ms]
18:21:02: | | CopyResource - [0.482%] [avg time: 0.012 ms]
18:21:02: | | conversion to 4:2:0 - [0.0804%] [avg time: 0.002 ms]
18:21:02: Convert444Threads - [100%] [avg time: 0.544 ms] [children: 99.6%] [unaccounted: 0.368%]
18:21:02: | Convert444toNV12 - [99.6%] [avg time: 0.542 ms]
18:21:02: encoder thread frame - [100%] [avg time: 0.832 ms]
18:21:02: ==============================================================
18:21:02: 
18:21:02: 
18:21:02: Profiler CPU results:
18:21:02: 
18:21:02: ==============================================================
18:21:02: video thread frame - [cpu time: avg 1.738 ms, total 921810 ms] [avg calls per frame: 1]
18:21:02: | scene->Preprocess - [cpu time: avg 1.224 ms, total 648964 ms] [avg calls per frame: 1]
18:21:02: | GPU download and conversion - [cpu time: avg 0.053 ms, total 28142.6 ms] [avg calls per frame: 1]
18:21:02: | | flush - [cpu time: avg 0.029 ms, total 15818.5 ms] [avg calls per frame: 1]
18:21:02: | | CopyResource - [cpu time: avg 0.012 ms, total 6380.44 ms] [avg calls per frame: 1]
18:21:02: | | conversion to 4:2:0 - [cpu time: avg 0.001 ms, total 982.806 ms] [avg calls per frame: 1]
18:21:02: Convert444Threads - [cpu time: avg 0.54 ms, total 573444 ms] [avg calls per frame: 2]
18:21:02: | Convert444toNV12 - [cpu time: avg 0.539 ms, total 571681 ms] [avg calls per frame: 2]
18:21:02: encoder thread frame - [cpu time: avg 0.208 ms, total 110761 ms] [avg calls per frame: 1]
18:21:02: ==============================================================
18:21:02: 
18:21:02: =====Stream End: 2014-02-16, 18:21:02=================================================

I believe this is the right Log, I"ve had several logs from the time & date that I stopt. weird.

This 2nd code is a test I ran after doing what I previously posted, still having the same high weird loads

Code:
23:16:06: Open Broadcaster Software v0.61b - 64bit ( ^ω^)
23:16:06: -------------------------------
23:16:06: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
23:16:06: CPU Speed: 3500MHz
23:16:06: Physical Memory:  16322MB Total, 13520MB Free
23:16:06: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
23:16:06: monitor 1: pos={-1680, 0}, size={1680, 1050}
23:16:06: monitor 2: pos={0, 0}, size={1920, 1080}
23:16:06: Windows Version: 6.1 Build 7601 S
23:16:06: Aero is Disabled
23:16:06: -------------------------------
23:16:06: OBS Modules:
23:16:06: Base Address     Module
23:16:06: 000000003F6A0000 OBS.exe
23:16:06: 00000000F6460000 OBSApi.dll
23:16:06: 00000000F7D00000 DShowPlugin.dll
23:16:06: 00000000F7CD0000 GraphicsCapture.dll
23:16:06: 00000000F7F70000 NoiseGate.dll
23:16:06: 00000000F7F10000 PSVPlugin.dll
23:16:06: ------------------------------------------
23:16:06: Adapter 1
23:16:06:   Video Adapter: NVIDIA GeForce GTX 780
23:16:06:   Video Adapter Dedicated Video Memory: 3140157440
23:16:06:   Video Adapter Shared System Memory: 3994267648
23:16:06:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
23:16:06:   Video Adapter Output 2: pos={-1680, 0}, size={1680, 1050}, attached=true
23:16:06: =====Stream Start: 2014-02-16, 23:16:06===============================================
23:16:06:   Multithreaded optimizations: On
23:16:06:   Base resolution: 1280x720
23:16:06:   Output resolution: 1280x720
23:16:06: ------------------------------------------
23:16:06: Loading up D3D10 on NVIDIA GeForce GTX 780 (Adapter 1)...
23:16:07: ------------------------------------------
23:16:07: Audio Format: 48000hz
23:16:07: Playback device {0.0.0.00000000}.{6e551085-5c28-463b-8f31-93e34bd84839}
23:16:07: ------------------------------------------
23:16:07: Using desktop audio input: Speakers (2- Logitech G35 Headset)
23:16:07: Using 7.1 surround speaker setup
23:16:07: ------------------------------------------
23:16:07: Using auxilary audio input: Microphone (2- AT2020 USB               )
23:16:07: ------------------------------------------
23:16:07: Audio Encoding: AAC
23:16:07:     bitrate: 128
23:16:07: Using Slide Show
23:16:07: Using Slide Show
23:16:07: Using Slide Show
23:16:07: Using graphics capture
23:16:07: Using bitmap image
23:16:07: Using bitmap image
23:16:07: ------------------------------------------
23:16:07:     device: \\?\usb#vid_046d&pid_082d&mi_00#7&a9de7f2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
23:16:07:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&a9de7f2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
23:16:07:     chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000
23:16:07:     use buffering: false - 0, fourCC: 'I420'
23:16:07:     audio device: Disable,
23:16:07:     audio device id Disabled,
23:16:07: 
23:16:07: Using directshow input
23:16:07: Scene buffering time set to 700
23:16:07: ------------------------------------------
23:16:07: Video Encoding: x264
23:16:07:     fps: 45
23:16:07:     width: 1280, height: 720
23:16:07:     preset: faster
23:16:07:     profile: main
23:16:07:     keyint: 90
23:16:07:     CBR: yes
23:16:07:     CFR: no
23:16:07:     max bitrate: 2500
23:16:07:     buffer size: 2500
23:16:07: ------------------------------------------
23:16:08: Audio timestamp for device 'Microphone (2- AT2020 USB               )' was behind target timestamp by 6951267
23:16:21: Total frames encoded: 552, total frames duplicated: 0 (0.00%)
23:16:21: Total frames rendered: 557, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
23:16:21: 
23:16:21: Profiler time results:
23:16:21: 
23:16:21: ==============================================================
23:16:21: video thread frame - [100%] [avg time: 0.827 ms] [children: 46.8%] [unaccounted: 53.2%]
23:16:21: | scene->Preprocess - [36.4%] [avg time: 0.301 ms]
23:16:21: | GPU download and conversion - [10.4%] [avg time: 0.086 ms] [children: 8.1%] [unaccounted: 2.3%]
23:16:21: | | flush - [6.65%] [avg time: 0.055 ms]
23:16:21: | | CopyResource - [1.21%] [avg time: 0.01 ms]
23:16:21: | | conversion to 4:2:0 - [0.242%] [avg time: 0.002 ms]
23:16:21: Convert444Threads - [100%] [avg time: 0.432 ms] [children: 99.3%] [unaccounted: 0.694%]
23:16:21: | Convert444toNV12 - [99.3%] [avg time: 0.429 ms]
23:16:21: encoder thread frame - [100%] [avg time: 0.743 ms] [children: 0.135%] [unaccounted: 99.9%]
23:16:21: | sending stuff out - [0.135%] [avg time: 0.001 ms]
23:16:21: ==============================================================
23:16:21: 
23:16:21: 
23:16:21: Profiler CPU results:
23:16:21: 
23:16:21: ==============================================================
23:16:21: video thread frame - [cpu time: avg 0.196 ms, total 109.2 ms] [avg calls per frame: 1]
23:16:21: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:16:21: | GPU download and conversion - [cpu time: avg 0.056 ms, total 31.2 ms] [avg calls per frame: 1]
23:16:21: | | flush - [cpu time: avg 0.056 ms, total 31.2 ms] [avg calls per frame: 1]
23:16:21: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:16:21: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:16:21: Convert444Threads - [cpu time: avg 0.314 ms, total 327.602 ms] [avg calls per frame: 2]
23:16:21: | Convert444toNV12 - [cpu time: avg 0.314 ms, total 327.602 ms] [avg calls per frame: 2]
23:16:21: encoder thread frame - [cpu time: avg 0.09 ms, total 46.8 ms] [avg calls per frame: 1]
23:16:21: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:16:21: ==============================================================
23:16:21: 
23:16:21: =====Stream End: 2014-02-16, 23:16:21=================================================
 

FerretBomb

Active Member
Obvious one, enable Aero. It speeds up window capture significantly.

We'd also need to see a log (minimum 5 minutes) where the whole thing is at 3000kbps; changing it mid-stream is possible, but makes it a lot harder to troubleshoot. I'd also say that Titanfall could definitely be a source of an issue; as it is beta, it may be misbehaving a bit now and then.

I'd also advise monitoring your Process list on task manager, as well as your CPU stepping rate and temperature. If it steps down for some reason, that could explain the maxed out utilization.

Confirmed, I'm entirely able to run TF2 at 1080 with a 720@60 downscale at 3000kbps on a first-gen Core i7 920. Including on the latest OBS. Seems like it's an issue with the system that needs to get run down.
 
I don't really use window capture anymore, it always gave me issues with Isaac so I kept it disabled. Ill enable it again.

my log is indeed changed several times mid stream.
Ill try to rock the 3k.

I can run 720@60 3k fine as long as I stay on very fast or something.
You would expect an i7 4770k to rock that near medium though.

So my system is fucking up. Wonder what part is dying now #Paranoid

I did monitore my Temp's for most of my stream after I started having some issues.
(which is when I fired up the bitrate.) And the temps are way below any kind of critial heat. They sit roughly around 60 to 70 degrees at max loads.

No clue how to check for "stepping" rate
 
As Ferretbomb suggested:

a longer stream with 3k+ bitrate!

Code:
14:17:16: Open Broadcaster Software v0.611b - 64bit ( ^ω^)
14:17:16: -------------------------------
14:17:16: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
14:17:16: CPU Speed: 3500MHz
14:17:16: Physical Memory:  16322MB Total, 11102MB Free
14:17:16: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
14:17:16: monitor 1: pos={-1680, 0}, size={1680, 1050}
14:17:16: monitor 2: pos={0, 0}, size={1920, 1080}
14:17:16: Windows Version: 6.1 Build 7601 S
14:17:16: Aero is Enabled
14:17:16: -------------------------------
14:17:16: OBS Modules:
14:17:16: Base Address     Module
14:17:16: 000000003F910000 OBS.exe
14:17:16: 00000000EC950000 OBSApi.dll
14:17:16: 00000000F7C10000 DShowPlugin.dll
14:17:16: 00000000F65C0000 GraphicsCapture.dll
14:17:16: 00000000F7BF0000 NoiseGate.dll
14:17:16: 00000000F7A40000 PSVPlugin.dll
14:17:16: ------------------------------------------
14:17:16: Adapter 1
14:17:16:   Video Adapter: NVIDIA GeForce GTX 780
14:17:16:   Video Adapter Dedicated Video Memory: 3140157440
14:17:16:   Video Adapter Shared System Memory: 3994267648
14:17:16:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
14:17:16:   Video Adapter Output 2: pos={-1680, 0}, size={1680, 1050}, attached=true
14:17:16: =====Stream Start: 2014-02-17, 14:17:16===============================================
14:17:16:   Multithreaded optimizations: On
14:17:16:   Base resolution: 1280x720
14:17:16:   Output resolution: 1280x720
14:17:16: ------------------------------------------
14:17:16: Loading up D3D10 on NVIDIA GeForce GTX 780 (Adapter 1)...
14:17:16: ------------------------------------------
14:17:16: Audio Format: 48000hz
14:17:16: Playback device {0.0.0.00000000}.{6e551085-5c28-463b-8f31-93e34bd84839}
14:17:16: ------------------------------------------
14:17:16: Using desktop audio input: Speakers (2- Logitech G35 Headset)
14:17:16: Using 7.1 surround speaker setup
14:17:16: ------------------------------------------
14:17:16: Using auxilary audio input: Microphone (2- AT2020 USB               )
14:17:16: ------------------------------------------
14:17:16: Audio Encoding: AAC
14:17:16:     bitrate: 128
14:17:16: Using graphics capture
14:17:16: Using bitmap image
14:17:16: Using Window Capture
14:17:16: Scene buffering time set to 700
14:17:16: ------------------------------------------
14:17:16: Video Encoding: x264
14:17:16:     fps: 45
14:17:16:     width: 1280, height: 720
14:17:16:     preset: faster
14:17:16:     profile: main
14:17:16:     keyint: 90
14:17:16:     CBR: yes
14:17:16:     CFR: no
14:17:16:     max bitrate: 3000
14:17:16:     buffer size: 3000
14:17:16: ------------------------------------------
14:17:16: SharedTexCapture hooked
14:17:19: Using RTMP service: Twitch / Justin.tv
14:17:19:   Server selection: rtmp://live-ams.justin.tv/app
14:17:19:   Interface: Intel(R) Ethernet Connection I217-V (ethernet, 1000 mbps)
14:17:19: Completed handshake with rtmp://live-ams.justin.tv/app in 359 ms.
14:17:20: SO_SNDBUF was at 8192
14:17:20: SO_SNDBUF is now 65536
14:17:22: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 7158 / 400384)
14:17:54: GraphicsCaptureSource::NewCapture:  eliminating old capture
14:17:54: SharedTexCapture hooked
14:18:19: Capture window 0x0017059E invalid or changing, terminating capture
14:18:41: SharedTexCapture hooked
14:18:41: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 128547 / 400384)
14:18:41: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 400384)
14:18:56: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 1048576 (buffer: 0 / 400384)
14:29:50: Capture window 0x0017070E invalid or changing, terminating capture
14:29:53: Total frames encoded: 34026, total frames duplicated: 191 (0.56%)
14:29:53: Total frames rendered: 33987, number of late frames: 5 (0.01%) (it's okay for some frames to be late)
14:29:53: RTMPPublisher::SocketLoop: Graceful loop exit
14:29:54: Average send payload: 6995 bytes, average send interval: 18 ms
14:29:54: Number of times waited to send: 0, Waited for a total of 0 bytes
14:29:54: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
14:29:54: Number of bytes sent: 283398475
14:29:54: 
14:29:54: Profiler time results:
14:29:54: 
14:29:54: ==============================================================
14:29:54: video thread frame - [100%] [avg time: 0.68 ms] [children: 43.2%] [unaccounted: 56.8%]
14:29:54: | scene->Preprocess - [26.6%] [avg time: 0.181 ms]
14:29:54: | GPU download and conversion - [16.6%] [avg time: 0.113 ms] [children: 14.1%] [unaccounted: 2.5%]
14:29:54: | | flush - [12.2%] [avg time: 0.083 ms]
14:29:54: | | CopyResource - [1.76%] [avg time: 0.012 ms]
14:29:54: | | conversion to 4:2:0 - [0.147%] [avg time: 0.001 ms]
14:29:54: Convert444Threads - [100%] [avg time: 0.527 ms] [children: 99.4%] [unaccounted: 0.569%]
14:29:54: | Convert444toNV12 - [99.4%] [avg time: 0.524 ms]
14:29:54: encoder thread frame - [100%] [avg time: 0.968 ms] [children: 1.65%] [unaccounted: 98.3%]
14:29:54: | sending stuff out - [1.65%] [avg time: 0.016 ms]
14:29:54: ==============================================================
14:29:54: 
14:29:54: 
14:29:54: Profiler CPU results:
14:29:54: 
14:29:54: ==============================================================
14:29:54: video thread frame - [cpu time: avg 0.041 ms, total 1419.61 ms] [avg calls per frame: 1]
14:29:54: | scene->Preprocess - [cpu time: avg 0.001 ms, total 46.8 ms] [avg calls per frame: 1]
14:29:54: | GPU download and conversion - [cpu time: avg 0.007 ms, total 265.203 ms] [avg calls per frame: 1]
14:29:54: | | flush - [cpu time: avg 0.004 ms, total 156.001 ms] [avg calls per frame: 1]
14:29:54: | | CopyResource - [cpu time: avg 0 ms, total 31.2 ms] [avg calls per frame: 1]
14:29:54: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:29:54: Convert444Threads - [cpu time: avg 0.366 ms, total 24913.4 ms] [avg calls per frame: 2]
14:29:54: | Convert444toNV12 - [cpu time: avg 0.364 ms, total 24726.2 ms] [avg calls per frame: 2]
14:29:54: encoder thread frame - [cpu time: avg 0.38 ms, total 12932.5 ms] [avg calls per frame: 1]
14:29:54: | sending stuff out - [cpu time: avg 0.022 ms, total 764.407 ms] [avg calls per frame: 1]
14:29:54: ==============================================================
14:29:54: 
14:29:54: =====Stream End: 2014-02-17, 14:29:54=================================================

I still have highloads like this, getting in the 70% and sometimes 80%
My CPU is suppose to rock medium just fine!

Another caster told me to use my integrated graphics to make quicksync an option so I can stream with the medium preset and very low cpu usage. Should have the same~ish quality then compared to what I generate now.

Also I've been told I experience minimal screen tearing every now and then on my cast.
 

Boildown

Active Member
I have a 4770k and it can do 720p on Medium... if its doing NOTHING else! You're playing a game, a game in beta, a game that uses CPU itself and is probably pooly optimized. You can't do them both at the same time!

Second, turn Constant Frame Rate back on! Turning it off just disguises problems and makes Twitch and any video editors mad.

Third, a little trick you might be able to use: on the Advanced page, add "threads=9" to the command line for x264. By default x264 opens 12 threads, which in my testing is too many on a 4 core + hyperthreading like your 4770k.
 
A lot of people that use the i7 4770k rock decent bitrates on triple aaa titles on medium and 60 fps with no problem on their end. Hence I'm worried.

I prefer CFR on as well, I just tried to see if that was a possible cause for my high CPU (It was not)

I don't know about the custom encoder settings to just randomly try it. can any respected source confirm?
- and ofcourse people from OBS, check my latest log if you can find anything that could explain all the things!
 

FerretBomb

Active Member
WolfsGoRawr said:
I don't really use window capture anymore, it always gave me issues with Isaac so I kept it disabled. Ill enable it again.
Er... your first log file showed a number of window captures being used throughout the testing. Likewise with the most recent log, shows a window capture in use. Though Aero on now, so that's an improvement.

Also, QSV is something you'd have to play with and test. Hardware encoding is going to decrease quality (noticeably). QSV is more of a crutch to allow underpowered systems to both stream and play at the same time, sacrificing a bit on how the stream looks to offload CPU usage. Some people just throw it on and don't give a crap, then others parrot the advice without knowing any of the down sides, doing any testing, etc. You'll get poor image fidelity with QSV as compared to standard CPU-based encoding. Had someone else complaining yesterday that his stream looked like shit... and he was using NVENC because someone told him to do it, and he couldn't understand why he was getting pixellation and artifacts all over the place, running at 3500kbps. Then proceeded to argue that it couldn't possibly be the NVENC, because XYZ told him so.
 
I use window capture for my Twitch (pop out) chat, I don't use it for games or anything else.

Aye, I always thought QSV was only used for 2 pc's but somebody said it really helped him out in a setup of 1 pc but with GPU + intrgrated graphics. I'm not eager to go down that road as I should be fine with my processor right?

And I don't understand the costum encoder setting "threads=9" either. What is the actual effect, do I lose quality etc etc. Because if it is a known bug in the current encoder, why would OBS not say anything about it in their program itself when they Detect a quad core CPU? nor can I find a OBS post on it.
 

Videophile

Elgato
The "threads=X" option limits how many threads OBS(X264) can use. By default, X264 will use 1.5x the cores you have, so 12. However, your computer only has 8 real cores, so opening more threads is not necessarily better. Limiting the thread count can help with performance, and actually increase performance sometimes.

-Shrimp
 

Boildown

Active Member
More specifically, the CPU only has 4 real cores, doubled to 8 with hyperthreading. But those 8 cores aren't as good as 8 actual non-hyperthreaded cores, but x264 doesn't make the distinction. And when you multiply it out by 1.5, its just too many threads and actually slows things down somewhat.

Interesting note: I run two instances of OBS at once, and when I do that I get my best performance by keeping both OBS instances at 12 threads. Which I would think means there's 24 threads at work. Which doesn't make any sense whatsoever why that would be better. Yet the evidence is conclusive, I get better performance with two OBS instances open when I don't limit the threads on either one. Maybe x264 somehow detects both instances of OBS and only opens 12 threads for the both of them, I dunno. I've experimented with 13 and more threads each and performance went down again.

So the thing to learn here is that theory be damned, experiment and use what actually works best, try to understand and write a new theory later. For many of us setting threads=9 (or threads=10) works (for one OBS instance in my case), but if you find otherwise, do otherwise.
 

alpinlol

Active Member
either titanfall is really a bitch and uses a shitton of cpu or theres something wrong since even my old sandy i7 2700k @4,5ghz can stream 720p60 on fast in most games ... and faster with bf4
 
Top