Question / Help OBS Taking a lot of resources

AmazingSully

New Member
So I use OBS as opposed to xsplit because OBS is lighter running and I have a crappy processor. Typically it takes 35-40% of my CPU as opposed to Xsplit taking 60-70%. I tried streaming today however and OBS was taking 65-70% of my CPU. This is the first time I've streamed since installing the new version so I am assuming that is the cause, but I am unsure. Did OBS make a change that would cause this type of issue? It makes it very difficult to stream at times.
 

FerretBomb

Active Member
Depending on how old a revision you are coming up from, some of the much older versions were accidentally skipping a lot of the work they were supposed to be doing, which has been rectified in the last few revisions. We'd really need to see a full live log though to get more information about any bottlenecks or hardware issues.
 

AmazingSully

New Member
Code:
16:01:09: Open Broadcaster Software v0.571b - 32bit (´・ω・`)
16:01:09: -------------------------------
16:01:09: CPU Name: Intel(R) Pentium(R) Dual  CPU  E2200  @ 2.20GHz
16:01:09: CPU Speed: 2194MHz
16:01:09: Physical Memory:  3069MB Total, 1703MB Free
16:01:09: stepping id: 13, model 15, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 2, total cores 2
16:01:09: monitor 1: pos={0, 0}, size={1280, 1024}
16:01:09: Windows Version: 6.0 Build 6002 S
16:01:09: Aero is Disabled
16:01:09: -------------------------------
16:01:09: OBS Modules:
16:01:09: Base Address     Module
16:01:09: 00D60000         OBS.exe
16:01:09: 69230000         OBSApi.dll
16:01:09: 74370000         DShowAudioPlugin.dll
16:01:09: 73410000         DShowPlugin.dll
16:01:09: 74170000         GraphicsCapture.dll
16:01:09: 733F0000         NoiseGate.dll
16:01:09: 733D0000         PSVPlugin.dll
16:01:09: ------------------------------------------
16:01:09: Adapter 1
16:01:09:   Video Adapter: ATI Radeon HD 2600 XT
16:01:09:   Video Adapter Dedicated Video Memory: 255037440
16:01:09:   Video Adapter Shared System Memory: 1341220864
16:01:09: =====Stream Start: 2013-10-16, 16:01:09===============================================
16:01:09:   Multithreaded optimizations: On
16:01:09:   Base resolution: 750x480
16:01:09:   Output resolution: 748x480
16:01:09: ------------------------------------------
16:01:09: Loading up D3D10 on ATI Radeon HD 2600 XT...
16:01:09: ------------------------------------------
16:01:09: Audio Format: 48000hz
16:01:09: Playback device {0.0.0.00000000}.{cca8aa77-0d69-41da-bbba-181365d4df03}
16:01:09: ------------------------------------------
16:01:09: Using desktop audio input: Speakers (Logitech USB Headset H540)
16:01:10: ------------------------------------------
16:01:10: Using auxilary audio input: Microphone (Logitech USB Headset H540)
16:01:10: ------------------------------------------
16:01:10: Audio Encoding: AAC
16:01:10:     bitrate: 128
16:01:10: Using Window Capture
16:01:10: Using Window Capture
16:01:10: ------------------------------------------
16:01:10:     device: Logitech HD Webcam C270,
16:01:10:     device id \\?\usb#vid_046d&pid_0825&mi_00#6&37e494c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
16:01:10:     chosen type: I420, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'I420'
16:01:10:     audio device: Disable,
16:01:10:     audio device id Disabled,
16:01:10: 
16:01:10: Using directshow input
16:01:10: Using Window Capture
16:01:10: Using text output
16:01:10: Using text output
16:01:11: ------------------------------------------
16:01:11: Video Encoding: x264
16:01:11:     fps: 30
16:01:11:     width: 748, height: 480
16:01:11:     preset: veryfast
16:01:11:     profile: high
16:01:11:     keyint: 60
16:01:11:     CBR: yes
16:01:11:     CFR: no
16:01:11:     max bitrate: 1500
16:01:11:     buffer size: 1500
16:01:11: ------------------------------------------
16:01:11: MMDeviceAudioSource: Frequency for device 'Speakers (Logitech USB Headset H540)' is 352800, samples per sec is 44100
16:01:11: MMDeviceAudioSource: Frequency for device 'Microphone (Logitech USB Headset H540)' is 352800, samples per sec is 44100
16:01:12: Using RTMP service: Twitch / Justin.tv
16:01:12:   Server selection: rtmp://live-jfk.justin.tv/app
16:01:12:   Interface: Intel(R) 82562V 10/100 Network Connection (ethernet, 100 mbps)
16:01:13: Completed handshake with rtmp://live-jfk.justin.tv/app in 327 ms.
16:01:14: SO_SNDBUF was at 8192
16:01:14: SO_SNDBUF is now 65536
16:01:18: Using Window Capture
16:01:19: Using Window Capture
16:01:32: Using Window Capture
Warning -- Capture BitBlt failed (6)..  just so you know
17:54:02: RTMPPublisher::SocketLoop: Received FD_CLOSE, 26 ms since last send (buffer: 0 / 207872)
17:54:02: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 0
17:54:03: Total frames encoded: 203152, total frames duplicated: 66915 (32.94%)
17:54:03: Number of frames skipped due to encoder lag: 14772 (7.27%)
17:54:03: Total frames rendered: 161613, number of late frames: 26270 (16.25%) (it's okay for some frames to be late)
17:54:03: Average send payload: 5483 bytes, average send interval: 26 ms
17:54:03: Number of times waited to send: 0, Waited for a total of 0 bytes
17:54:03: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:54:03: Number of bytes sent: 1383228187
17:54:03: 
17:54:03: Profiler time results:
17:54:03: 
17:54:03: ==============================================================
17:54:03: video thread frame - [100%] [avg time: 23.239 ms] [children: 92.1%] [unaccounted: 7.9%]
17:54:03: | scene->Preprocess - [92.1%] [avg time: 21.402 ms]
17:54:03: GPU download and conversion - [100%] [avg time: 11.536 ms] [children: 99.2%] [unaccounted: 0.806%]
17:54:03: | flush - [13.7%] [avg time: 1.576 ms]
17:54:03: | CopyResource - [84.4%] [avg time: 9.734 ms]
17:54:03: | conversion to 4:2:0 - [1.15%] [avg time: 0.133 ms]
17:54:03: Convert444Thread - [100%] [avg time: 1.409 ms] [children: 98.6%] [unaccounted: 1.42%]
17:54:03: | Convert444toNV12 - [98.6%] [avg time: 1.389 ms]
17:54:03: encoder thread frame - [100%] [avg time: 12.846 ms]
17:54:03: ==============================================================
17:54:03: 
17:54:03: 
17:54:03: Profiler CPU results:
17:54:03: 
17:54:03: ==============================================================
17:54:03: video thread frame - [cpu time: avg 10.629 ms, total 1.71787e+006 ms] [avg calls per frame: 1]
17:54:03: | scene->Preprocess - [cpu time: avg 9.753 ms, total 1.57636e+006 ms] [avg calls per frame: 1]
17:54:03: GPU download and conversion - [cpu time: avg 2.598 ms, total 419877 ms] [avg calls per frame: 1]
17:54:03: | flush - [cpu time: avg 0.436 ms, total 70512.4 ms] [avg calls per frame: 1]
17:54:03: | CopyResource - [cpu time: avg 2.125 ms, total 343545 ms] [avg calls per frame: 1]
17:54:03: | conversion to 4:2:0 - [cpu time: avg 0.005 ms, total 936.006 ms] [avg calls per frame: 1]
17:54:03: Convert444Thread - [cpu time: avg 1.07 ms, total 172912 ms] [avg calls per frame: 1]
17:54:03: | Convert444toNV12 - [cpu time: avg 1.062 ms, total 171710 ms] [avg calls per frame: 1]
17:54:03: encoder thread frame - [cpu time: avg 1.701 ms, total 345589 ms] [avg calls per frame: 1]
17:54:03: ==============================================================
17:54:03: 
17:54:03: =====Stream End: 2013-10-16, 17:54:03=================================================
17:54:14: =====Stream Start: 2013-10-16, 17:54:14===============================================
17:54:14:   Multithreaded optimizations: On
17:54:14:   Base resolution: 750x480
17:54:14:   Output resolution: 748x480
17:54:14: ------------------------------------------
17:54:14: Loading up D3D10 on ATI Radeon HD 2600 XT...
17:54:14: ------------------------------------------
17:54:14: Audio Format: 48000hz
17:54:14: Playback device {0.0.0.00000000}.{cca8aa77-0d69-41da-bbba-181365d4df03}
17:54:14: ------------------------------------------
17:54:14: Using desktop audio input: Speakers (Logitech USB Headset H540)
17:54:14: ------------------------------------------
17:54:14: Using auxilary audio input: Microphone (Logitech USB Headset H540)
17:54:14: ------------------------------------------
17:54:14: Audio Encoding: AAC
17:54:14:     bitrate: 128
17:54:14: Using Window Capture
17:54:14: Using Window Capture
17:54:14: ------------------------------------------
17:54:14:     device: Logitech HD Webcam C270,
17:54:14:     device id \\?\usb#vid_046d&pid_0825&mi_00#6&37e494c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
17:54:14:     chosen type: I420, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'I420'
17:54:14:     audio device: Disable,
17:54:14:     audio device id Disabled,
17:54:14: 
17:54:14: Using directshow input
17:54:14: Using Window Capture
17:54:14: Using text output
17:54:14: Using text output
17:54:15: ------------------------------------------
17:54:15: Video Encoding: x264
17:54:15:     fps: 30
17:54:15:     width: 748, height: 480
17:54:15:     preset: veryfast
17:54:15:     profile: high
17:54:15:     keyint: 60
17:54:15:     CBR: yes
17:54:15:     CFR: no
17:54:15:     max bitrate: 1500
17:54:15:     buffer size: 1500
17:54:15: ------------------------------------------
17:54:15: MMDeviceAudioSource: Frequency for device 'Speakers (Logitech USB Headset H540)' is 352800, samples per sec is 44100
17:54:15: MMDeviceAudioSource: Frequency for device 'Microphone (Logitech USB Headset H540)' is 352800, samples per sec is 44100
17:54:16: Using RTMP service: Twitch / Justin.tv
17:54:16:   Server selection: rtmp://live-jfk.justin.tv/app
17:54:16:   Interface: Intel(R) 82562V 10/100 Network Connection (ethernet, 100 mbps)
17:54:17: Completed handshake with rtmp://live-jfk.justin.tv/app in 207 ms.
17:54:18: SO_SNDBUF was at 8192
17:54:18: SO_SNDBUF is now 65536
17:56:31: Total frames encoded: 4076, total frames duplicated: 956 (23.45%)
17:56:31: Number of frames skipped due to encoder lag: 97 (2.38%)
17:56:31: Total frames rendered: 3862, number of late frames: 100 (2.59%) (it's okay for some frames to be late)
17:56:32: RTMPPublisher::SocketLoop: Graceful loop exit
17:56:32: Average send payload: 5028 bytes, average send interval: 25 ms
17:56:32: Number of times waited to send: 0, Waited for a total of 0 bytes
17:56:32: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:56:32: Number of bytes sent: 26561238
17:56:32: 
17:56:32: Profiler time results:
17:56:32: 
17:56:32: ==============================================================
17:56:32: video thread frame - [100%] [avg time: 10.29 ms] [children: 90%] [unaccounted: 10%]
17:56:32: | scene->Preprocess - [90%] [avg time: 9.257 ms]
17:56:32: GPU download and conversion - [100%] [avg time: 8.475 ms] [children: 98.9%] [unaccounted: 1.14%]
17:56:32: | flush - [14.4%] [avg time: 1.221 ms]
17:56:32: | CopyResource - [83.6%] [avg time: 7.087 ms]
17:56:32: | conversion to 4:2:0 - [0.826%] [avg time: 0.07 ms]
17:56:32: Convert444Thread - [100%] [avg time: 1.291 ms] [children: 98.4%] [unaccounted: 1.63%]
17:56:32: | Convert444toNV12 - [98.4%] [avg time: 1.27 ms]
17:56:32: encoder thread frame - [100%] [avg time: 4.112 ms]
17:56:32: ==============================================================
17:56:32: 
17:56:32: 
17:56:32: Profiler CPU results:
17:56:32: 
17:56:32: ==============================================================
17:56:32: video thread frame - [cpu time: avg 7.476 ms, total 28875.8 ms] [avg calls per frame: 1]
17:56:32: | scene->Preprocess - [cpu time: avg 6.846 ms, total 26442.2 ms] [avg calls per frame: 1]
17:56:32: GPU download and conversion - [cpu time: avg 2.859 ms, total 11044.9 ms] [avg calls per frame: 1]
17:56:32: | flush - [cpu time: avg 0.42 ms, total 1622.41 ms] [avg calls per frame: 1]
17:56:32: | CopyResource - [cpu time: avg 2.416 ms, total 9297.66 ms] [avg calls per frame: 1]
17:56:32: | conversion to 4:2:0 - [cpu time: avg 0.012 ms, total 46.801 ms] [avg calls per frame: 1]
17:56:32: Convert444Thread - [cpu time: avg 0.997 ms, total 3837.62 ms] [avg calls per frame: 1]
17:56:32: | Convert444toNV12 - [cpu time: avg 0.981 ms, total 3775.22 ms] [avg calls per frame: 1]
17:56:32: encoder thread frame - [cpu time: avg 1.447 ms, total 5881.24 ms] [avg calls per frame: 1]
17:56:32: ==============================================================
17:56:32: 
17:56:32: =====Stream End: 2013-10-16, 17:56:32=================================================
 

dodgepong

Administrator
Community Helper
Ah, you have a dual core CPU...alas. Dual core CPUs perform very badly when streaming.

Lower your FPS to 25, downscale your resolution by 1.25 or 1.5, and change your x264 preset to superfast or ultrafast, and see if that helps at all.
 

AmazingSully

New Member
I think it was the FPS that caused the issue. I normally had it set to 25, didn't realize it was 30. Not sure if that was the update or if it had been that way since I formatted my hard drive and just streamed so infrequently that I didn't notice. Thanks for the help either way.
 
Top