Question / Help OBS using over/near 60% CPU

Valiant

New Member
I seem to be having an issue with my OBS using a lot of my CPU, and I cannot seem to figure out why. Is it due to extra Sources that run from Stream Labs or something else I cannot find?

01:23:45.575: CPU Name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz
01:23:45.575: CPU Speed: 4125MHz
01:23:45.575: Physical Cores: 6, Logical Cores: 12
01:23:45.575: Physical Memory: 16324MB Total, 10466MB Free
01:23:45.575: Windows Version: 6.3 Build 9600 (revision: 17415; 64-bit)
01:23:45.575: Running as administrator: false
01:23:45.575: Aero is Enabled (Aero is always on for windows 8 and above)
01:23:45.575: Portable mode: false
01:23:45.592: OBS 20.0.1 (64bit, windows)
01:23:45.592: ---------------------------------
01:23:45.593: ---------------------------------
01:23:45.593: audio settings reset:
01:23:45.593: samples per sec: 48000
01:23:45.593: speakers: 2
01:23:45.594: ---------------------------------
01:23:45.594: Initializing D3D11...
01:23:45.594: Available Video Adapters:
01:23:45.594: Adapter 1: NVIDIA GeForce GTX 780 Ti
01:23:45.594: Dedicated VRAM: 3126644736
01:23:45.594: Shared VRAM: 4263927808
01:23:45.594: output 1: pos={0, 0}, size={1920, 1080}, attached=true
01:23:45.594: output 2: pos={-1360, -768}, size={1360, 768}, attached=true
01:23:45.594: output 3: pos={-1920, 0}, size={1920, 1080}, attached=true
01:23:45.594: output 4: pos={1920, 0}, size={1920, 1080}, attached=true
01:23:45.596: Loading up D3D11 on adapter NVIDIA GeForce GTX 780 Ti (0)
01:23:46.100: D3D11 loaded successfully, feature level used: 45056
01:23:46.693: ---------------------------------
01:23:46.694: video settings reset:
01:23:46.694: base resolution: 1920x1080
01:23:46.694: output resolution: 1280x720
01:23:46.694: downscale filter: Lanczos
01:23:46.694: fps: 30/1
01:23:46.694: format: NV12
01:23:46.697: Audio monitoring device:
01:23:46.697: name: Default
01:23:46.697: id: default
01:23:46.697: ---------------------------------
01:23:46.698: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
01:23:46.705: [CoreAudio encoder]: Adding CoreAudio AAC encoder
01:23:46.706: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
01:23:46.706: Failed to initialize module 'enc-amf.dll'
01:23:46.718: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
01:23:46.718: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
01:23:46.718: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
01:23:46.719: Failed to load 'en-US' text for module: 'obs-browser.dll'
01:23:46.719: [browser_source: 'Version: 1.29.0']
01:23:46.721: NVENC supported
01:23:47.799: VLC found, VLC video source enabled
01:23:47.801: No blackmagic support
01:23:47.810: ---------------------------------
01:23:47.810: Loaded Modules:
01:23:47.810: win-wasapi.dll
01:23:47.810: win-mf.dll
01:23:47.810: win-dshow.dll
01:23:47.810: win-decklink.dll
01:23:47.810: win-capture.dll
01:23:47.810: vlc-video.dll
01:23:47.810: text-freetype2.dll
01:23:47.810: rtmp-services.dll
01:23:47.810: obs-x264.dll
01:23:47.810: obs-vst.dll
01:23:47.810: obs-transitions.dll
01:23:47.810: obs-text.dll
01:23:47.810: obs-qsv11.dll
01:23:47.810: obs-outputs.dll
01:23:47.810: obs-filters.dll
01:23:47.810: obs-ffmpeg.dll
01:23:47.810: obs-browser.dll
01:23:47.810: image-source.dll
01:23:47.810: frontend-tools.dll
01:23:47.810: enc-amf.dll
01:23:47.810: coreaudio-encoder.dll
01:23:47.810: ---------------------------------
01:23:47.810: ==== Startup complete ===============================================
01:23:47.819: All scene data cleared
01:23:47.819: ------------------------------------------------
01:23:47.880: WASAPI: Device 'Speakers (Realtek High Definition Audio)' initialized
01:23:47.905: WASAPI: Device 'Microphone (Yeti Stereo Microphone)' initialized
01:23:47.921: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
01:23:48.049: Switched to scene 'Scene'
01:23:48.052: ------------------------------------------------
01:23:48.052: Loaded scenes:
01:23:48.052: - scene 'Scene':
01:23:48.052: - source: 'HDPVR2' (dshow_input)
01:23:48.052: - source: 'Main' (image_source)
01:23:48.052: - filter: 'Chroma Key' (chroma_key_filter)
01:23:48.052: - source: 'Chat' (window_capture)
01:23:48.052: - filter: 'Sharpen' (sharpness_filter)
01:23:48.052: - filter: 'Crop/Pad' (crop_filter)
01:23:48.052: - source: 'Follower' (browser_source)
01:23:48.052: - source: 'Bits' (browser_source)
01:23:48.052: - source: 'Donation Goal' (browser_source)
01:23:48.052: - source: 'Donation' (browser_source)
01:23:48.052: - source: 'Bits 1' (browser_source)
01:23:48.052: - source: 'Subscribers' (browser_source)
01:23:48.052: - source: 'Hosts' (browser_source)
01:23:48.052: - source: 'Recent Follower' (browser_source)
01:23:48.053: - source: 'Logo' (image_source)
01:23:48.053: - filter: 'Color Key' (color_key_filter)
01:23:48.053: - source: 'Text (GDI+) 2' (text_gdiplus)
01:23:48.053: - source: 'Camera' (dshow_input)
01:23:48.053: - filter: 'Video Delay (Async)' (async_delay_filter)
01:23:48.053: - filter: 'Chroma Key' (chroma_key_filter)
01:23:48.053: ------------------------------------------------
01:23:48.072: ---------------------------------
01:23:48.072: [DShow Device: 'HDPVR2'] settings updated:
01:23:48.072: video device: Hauppauge Siena Video Capture
01:23:48.072: video path: \\?\usb#vid_2040&pid_e502#e502-00-00a957d2#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{9b365890-165f-11d0-a195-0020afd156e4}
01:23:48.072: resolution: 720x480
01:23:48.072: fps: 59.94 (interval: 166833)
01:23:48.072: format: H264
01:23:48.072: using video device audio: yes
01:23:48.072: sample rate: 48000
01:23:48.072: channels: 2
01:23:48.072: audio type: Capture
01:23:48.083: ---------------------------------
01:23:48.083: [DShow Device: 'Camera'] settings updated:
01:23:48.083: video device: Microsoft LifeCam Studio
01:23:48.083: video path: \\?\usb#vid_045e&pid_0772&mi_00#7&2a549a57&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
01:23:48.083: resolution: 640x480
01:23:48.083: fps: 30.00 (interval: 333333)
01:23:48.083: format: YUY2
01:23:48.532: A sprite cannot be drawn without a width/height
01:23:54.829: Last log entry repeated for 40 more lines
01:23:54.829: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
01:23:54.997: adding 64 milliseconds of audio buffering, total audio buffering is now 128 milliseconds
01:23:56.047: adding 21 milliseconds of audio buffering, total audio buffering is now 149 milliseconds
01:24:01.572: adding 21 milliseconds of audio buffering, total audio buffering is now 170 milliseconds
01:25:12.490: ---------------------------------
01:25:12.490: [x264 encoder: 'simple_h264_stream'] preset: medium
01:25:12.490: [x264 encoder: 'simple_h264_stream'] settings:
01:25:12.490: rate_control: CBR
01:25:12.490: bitrate: 3500
01:25:12.490: buffer size: 3500
01:25:12.490: crf: 0
01:25:12.490: fps_num: 30
01:25:12.490: fps_den: 1
01:25:12.490: width: 1280
01:25:12.490: height: 720
01:25:12.490: keyint: 60
01:25:12.490:
01:25:12.490: [x264 encoder: 'simple_h264_stream'] custom settings: scenecut=0
01:25:12.496: [CoreAudio AAC: 'simple_aac']: settings:
01:25:12.496: mode: HE-AAC
01:25:12.496: bitrate: 48
01:25:12.496: sample rate: 48000
01:25:12.496: cbr: on
01:25:12.496: output buffer: 1536
01:25:13.846: ==== Streaming Start ===============================================
01:25:57.059: adding 42 milliseconds of audio buffering, total audio buffering is now 213 milliseconds
01:27:32.536: adding 21 milliseconds of audio buffering, total audio buffering is now 234 milliseconds
01:31:24.808: adding 21 milliseconds of audio buffering, total audio buffering is now 256 milliseconds
05:12:17.616: [rtmp stream: 'simple_stream'] User stopped the stream
05:12:17.616: Output 'simple_stream': stopping
05:12:17.616: Output 'simple_stream': Total frames output: 408575 (408644 attempted)
05:12:17.616: Output 'simple_stream': Total drawn frames: 408754
05:12:17.616: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 69 (0.0%)
05:12:17.616: Video stopped, number of skipped frames due to encoding lag: 3050/408713 (0.7%)
05:12:17.618: ==== Streaming Stop ================================================
05:12:18.550: ==== Shutting down ==================================================
05:12:18.553: Switched to scene '(null)'
05:12:18.836: WASAPI: Device 'Speakers (Realtek High Definition Audio)' Terminated
05:12:18.841: WASAPI: Device 'Microphone (Yeti Stereo Microphone)' Terminated
05:12:18.985: All scene data cleared
05:12:18.985: ------------------------------------------------
05:12:19.014: Freeing OBS context data
05:12:19.078: == Profiler Results =============================
05:12:19.079: run_program_init: 2563.25 ms
05:12:19.079: ┣OBSApp::AppInit: 11.842 ms
05:12:19.079: ┃ ┗OBSApp::InitLocale: 1.07 ms
05:12:19.079: ┗OBSApp::OBSInit: 2542.6 ms
05:12:19.079: ┣obs_startup: 0.71 ms
05:12:19.079: ┗OBSBasic::OBSInit: 2513.49 ms
05:12:19.079: ┣OBSBasic::InitBasicConfig: 0.464 ms
05:12:19.079: ┣OBSBasic::ResetAudio: 0.141 ms
05:12:19.079: ┣OBSBasic::ResetVideo: 1104.33 ms
05:12:19.079: ┣OBSBasic::InitOBSCallbacks: 0.006 ms
05:12:19.079: ┣OBSBasic::InitHotkeys: 0.035 ms
05:12:19.079: ┣obs_load_all_modules: 1112.42 ms
05:12:19.079: ┃ ┣obs_init_module(coreaudio-encoder.dll): 5.438 ms
05:12:19.079: ┃ ┣obs_init_module(enc-amf.dll): 0.311 ms
05:12:19.079: ┃ ┣obs_init_module(frontend-tools.dll): 1.289 ms
05:12:19.079: ┃ ┣obs_init_module(image-source.dll): 0.004 ms
05:12:19.079: ┃ ┣obs_init_module(obs-browser.dll): 0.063 ms
05:12:19.079: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.451 ms
05:12:19.079: ┃ ┣obs_init_module(obs-filters.dll): 0.009 ms
05:12:19.079: ┃ ┣obs_init_module(obs-outputs.dll): 0.004 ms
05:12:19.079: ┃ ┣obs_init_module(obs-qsv11.dll): 1068.14 ms
05:12:19.079: ┃ ┣obs_init_module(obs-text.dll): 0.859 ms
05:12:19.079: ┃ ┣obs_init_module(obs-transitions.dll): 0.004 ms
05:12:19.079: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
05:12:19.079: ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
05:12:19.079: ┃ ┣obs_init_module(rtmp-services.dll): 1.039 ms
05:12:19.079: ┃ ┣obs_init_module(text-freetype2.dll): 0.123 ms
05:12:19.079: ┃ ┣obs_init_module(vlc-video.dll): 0.824 ms
05:12:19.079: ┃ ┣obs_init_module(win-capture.dll): 0.123 ms
05:12:19.079: ┃ ┣obs_init_module(win-decklink.dll): 0.642 ms
05:12:19.079: ┃ ┣obs_init_module(win-dshow.dll): 4.884 ms
05:12:19.079: ┃ ┣obs_init_module(win-mf.dll): 0.912 ms
05:12:19.079: ┃ ┣obs_init_module(win-wasapi.dll): 0.005 ms
05:12:19.079: ┃ ┗reset_win32_symbol_paths: 0.061 ms
05:12:19.079: ┣OBSBasic::ResetOutputs: 6.083 ms
05:12:19.079: ┣OBSBasic::CreateHotkeys: 0.025 ms
05:12:19.079: ┣OBSBasic::InitService: 0.939 ms
05:12:19.079: ┣OBSBasic::InitPrimitives: 0.974 ms
05:12:19.079: ┗OBSBasic::Load: 235.534 ms
05:12:19.079: obs_hotkey_thread(25 ms): min=0.001 ms, median=0.008 ms, max=33.644 ms, 99th percentile=0.125 ms, 99.9996% below 25 ms
05:12:19.079: audio_thread(Audio): min=0 ms, median=0.762 ms, max=23.565 ms, 99th percentile=3.738 ms
05:12:19.079: ┗receive_audio: min=0.001 ms, median=0.57 ms, max=14.702 ms, 99th percentile=3.122 ms
05:12:19.079: ┣buffer_audio: min=0 ms, median=0.002 ms, max=4.986 ms, 99th percentile=0.003 ms
05:12:19.079: ┗do_encode: min=0.423 ms, median=1.595 ms, max=14.692 ms, 99th percentile=3.776 ms, 0.499997 calls per parent call
05:12:19.079: ┗encode(simple_aac): min=0.42 ms, median=1.565 ms, max=14.647 ms, 99th percentile=3.625 ms
05:12:19.079: obs_video_thread(33.3333 ms): min=0.213 ms, median=4.269 ms, max=90.21 ms, 99th percentile=10.183 ms, 99.9978% below 33.333 ms
05:12:19.079: ┣tick_sources: min=0 ms, median=0.431 ms, max=88.028 ms, 99th percentile=4.252 ms
05:12:19.079: ┣render_displays: min=0 ms, median=2.958 ms, max=33.599 ms, 99th percentile=6.303 ms
05:12:19.079: ┗output_frame: min=0.21 ms, median=0.817 ms, max=6.069 ms, 99th percentile=1.765 ms
05:12:19.079: ┣gs_context(video->graphics): min=0.107 ms, median=0.54 ms, max=5.504 ms, 99th percentile=1.395 ms
05:12:19.079: ┃ ┣render_video: min=0.02 ms, median=0.288 ms, max=4.801 ms, 99th percentile=0.579 ms
05:12:19.079: ┃ ┃ ┣render_main_texture: min=0.003 ms, median=0.231 ms, max=4.724 ms, 99th percentile=0.482 ms
05:12:19.079: ┃ ┃ ┣render_output_texture: min=0.002 ms, median=0.023 ms, max=1.672 ms, 99th percentile=0.046 ms
05:12:19.079: ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.021 ms, max=1.405 ms, 99th percentile=0.043 ms
05:12:19.079: ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.005 ms, max=2.519 ms, 99th percentile=0.008 ms
05:12:19.079: ┃ ┣download_frame: min=0 ms, median=0.003 ms, max=0.602 ms, 99th percentile=0.004 ms
05:12:19.079: ┃ ┗gs_flush: min=0.033 ms, median=0.221 ms, max=4.441 ms, 99th percentile=0.536 ms
05:12:19.079: ┗output_video_data: min=0.001 ms, median=0.274 ms, max=5.033 ms, 99th percentile=0.446 ms
05:12:19.079: video_thread(video): min=0 ms, median=1.329 ms, max=351.974 ms, 99th percentile=86.128 ms
05:12:19.079: ┗receive_video: min=0.596 ms, median=1.339 ms, max=322.002 ms, 99th percentile=83.045 ms
05:12:19.079: ┗do_encode: min=0.596 ms, median=1.338 ms, max=322.002 ms, 99th percentile=83.045 ms
05:12:19.080: ┗encode(simple_h264_stream): min=0.585 ms, median=1.308 ms, max=321.979 ms, 99th percentile=83.02 ms
05:12:19.080: =================================================
05:12:19.080: == Profiler Time Between Calls ==================
05:12:19.080: obs_hotkey_thread(25 ms): min=24.046 ms, median=25.012 ms, max=57.997 ms, 99.9314% within ±2% of 25 ms (0.0233466% lower, 0.0452341% higher)
05:12:19.080: obs_video_thread(33.3333 ms): min=3.693 ms, median=33.333 ms, max=90.22 ms, 91.2927% within ±2% of 33.333 ms (4.30833% lower, 4.399% higher)
05:12:19.080: =================================================
05:12:19.712: Number of memory leaks: 67
 

Attachments

  • 2017-09-23 01-25-29.txt
    23 KB · Views: 7

Fenrir

Forum Admin
01:25:12.490: [x264 encoder: 'simple_h264_stream'] preset: medium

You seem confused on how encoding works. At medium preset, I'm surprised it's not using more.

If you're concerned about CPU usage, set that back to veryfast, and try not to change settings you don't understand in the future.
 
Top