Question / Help OBS Stuttering Issue

GoGGleZ

New Member
Hello Everyone,

Apologies if this has been posted elsewhere but i'm really stressing out with OBS Studio.

So, the simple scenario is that certain games (Battlefield V & Rocket League) even with OBS open and not streaming I receive massive issues to the point where some games (not all) become unplayable. I have two options available to me, I can either use my main PC to stream which is a fairly high spec or can use NDI Output to my second PC which is running an i5 2500k.

When streaming and playing the games from my main PC the CPU load doesn't go above 40%
When streaming and playing the games from my second PC using NDI the CPU load doesnt go above 60%

Main PC Spec:
OS: Windows 10 Professional 64-Bit
144Hz Monitor Running @ 2560 x 1440 Res
i7 6700K
16GB DDR4 RAM
GTX 1070 TI
512GB SSD

Second PC Spec:
OS: Windows 10 Professional 64-Bit
144Hz Monitor Running @ 1920 x 1080 Res
i5 2500K
8GB DDR3 RAM
Using On-Chip Intel Graphics Card

Stream Settings:
Simple Mode
x264 Encoding
Base Canvas: 1920 x 1080
Downscale: 1920 x 1080 (no down-scaling)
FPS: 60
Bit-rate: 4000
(both settings the same on both machines)

I can stream more simple games like League of Legends without issues, only seems to be a select few - could maybe understand something like Battlefield struggling to stream using 1080p, however this happens on a graphically simple game like Rocket League too and when using a second PC as the work horse I don't see why I should still be having issues.

Dropping the Downscaling to 720p doesn't fix this issue either.

I can upload logs later if required and sorry for not posting straight away, just had a quiet few minutes at work and wanted to get this out there! :)

Looking forward to hearing from you all! :)

Edit: On the verge of buying an AMD Ryzen 1700X with a Mobo to replace my 2500k for streaming also, though unless I can get this fixed I don't see the point :(
 
Last edited:

GoGGleZ

New Member
So, I deleted all my Scenes and Sources and reconfigured my entire stream last night.
OBS is now running fine on the main PC after testing rocket league but trying to transcode (I think that's the right word) via NDI on my second PC the stream last and the CPU is now reaching 90%.

I guess this just confirms my thoughts in that I will to upgrade my dedicated streaming PC to run 1080p@60fps.

Anyone have a good build for this? :)
 

BK-Morpheus

Active Member
First make sure, that it's not the GPU, that's limiting you here.
Game + OBS should not max out the GPU load, otherwise, you risk rendering lag in OBS (rendering is done via GPU, even without recording/streaming).
 

GoGGleZ

New Member
First make sure, that it's not the GPU, that's limiting you here.
Game + OBS should not max out the GPU load, otherwise, you risk rendering lag in OBS (rendering is done via GPU, even without recording/streaming).

Ahh thanks Morpheus, i'm just using on-board graphics on my streaming PC at the moment - is there an easy way of finding out this information via logs or should I just buy the GTX 1050 Ti which i've been looking at purchasing for my new rig anyway and try it in my current streaming machine with the i5?
 

BK-Morpheus

Active Member
A log should show us, if the GPU is bottlenecking or not. If it's on the single PC setup, a simple ingame FPS limit could do the trick.
 

GoGGleZ

New Member
17:42:04.758: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
17:42:04.758: CPU Speed: 3293MHz
17:42:04.758: Physical Cores: 4, Logical Cores: 4
17:42:04.758: Physical Memory: 3792MB Total, 1453MB Free
17:42:04.758: Windows Version: 10.0 Build 17134 (revision: 228; 64-bit)
17:42:04.758: Running as administrator: true
17:42:04.758: Aero is Enabled (Aero is always on for windows 8 and above)
17:42:04.758: Windows 10 Gaming Features:
17:42:04.758: Game DVR: On
17:42:04.760: Sec. Software Status:
17:42:04.761: Windows Defender Antivirus: enabled (AV)
17:42:04.761: Windows Firewall: enabled (FW)
17:42:04.768: Windows Defender Antivirus: enabled (ASW)
17:42:04.768: Browser Hardware Acceleration: true
17:42:04.768: Portable mode: false
17:42:05.084: OBS 22.0.2 (64-bit, windows)
17:42:05.084: ---------------------------------
17:42:05.105: ---------------------------------
17:42:05.105: audio settings reset:
17:42:05.105: samples per sec: 44100
17:42:05.105: speakers: 2
17:42:05.160: ---------------------------------
17:42:05.160: Initializing D3D11...
17:42:05.160: Available Video Adapters:
17:42:05.163: Adapter 1: Intel(R) HD Graphics 3000
17:42:05.163: Dedicated VRAM: 268435456
17:42:05.163: Shared VRAM: 1577058304
17:42:05.163: output 1: pos={0, 0}, size={1920, 1080}, attached=true
17:42:05.187: Loading up D3D11 on adapter Intel(R) HD Graphics 3000 (0)
17:42:05.189: D3D11 loaded successfully, feature level used: 41216
17:42:06.406: ---------------------------------
17:42:06.406: video settings reset:
17:42:06.406: base resolution: 1920x1080
17:42:06.406: output resolution: 1920x1080
17:42:06.406: downscale filter: Bicubic
17:42:06.406: fps: 60/1
17:42:06.406: format: NV12
17:42:06.406: YUV mode: 601/Partial
17:42:06.407: Audio monitoring device:
17:42:06.407: name: Default
17:42:06.407: id: default
17:42:06.407: ---------------------------------
17:42:06.571: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
17:42:06.597: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
17:42:06.813: [AMF] AMF Test failed due to one or more errors.
17:42:06.813: Failed to initialize module 'enc-amf.dll'
17:42:07.651: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
17:42:07.701: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': The specified procedure could not be found.
17:42:07.701: (127)
17:42:07.701: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
17:42:07.839: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
17:42:08.081: [obs-browser]: Version 2.1.5
17:42:08.082: [obs-browser]: Blacklisted device detected, disabling browser source hardware acceleration.
17:42:08.381: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
17:42:08.381: (126)
17:42:08.706: [obs-ndi] hello ! (version 4.2)
17:42:08.706: [obs-ndi] Trying 'C:\Program Files\NewTek\NewTek NDI Redist\v3'
17:42:08.706: [obs-ndi] Found NDI library at 'C:/Program Files/NewTek/NewTek NDI Redist/v3/Processing.NDI.Lib.x64.dll'
17:42:08.847: [obs-ndi] NDI runtime loaded successfully
17:42:08.856: [obs-ndi] NDI library initialized successfully
17:42:09.823: Couldn't find VLC installation, VLC video source disabled
17:42:09.926: No blackmagic support
17:42:10.185: ---------------------------------
17:42:10.185: Loaded Modules:
17:42:10.185: win-wasapi.dll
17:42:10.185: win-mf.dll
17:42:10.185: win-dshow.dll
17:42:10.185: win-decklink.dll
17:42:10.185: win-capture.dll
17:42:10.185: vlc-video.dll
17:42:10.185: text-freetype2.dll
17:42:10.185: rtmp-services.dll
17:42:10.185: obs-x264.dll
17:42:10.185: obs-vst.dll
17:42:10.185: obs-transitions.dll
17:42:10.185: obs-text.dll
17:42:10.185: obs-qsv11.dll
17:42:10.185: obs-outputs.dll
17:42:10.185: obs-ndi.dll
17:42:10.185: obs-filters.dll
17:42:10.185: obs-ffmpeg.dll
17:42:10.185: obs-browser.dll
17:42:10.185: image-source.dll
17:42:10.185: frontend-tools.dll
17:42:10.185: enc-amf.dll
17:42:10.185: coreaudio-encoder.dll
17:42:10.185: ---------------------------------
17:42:10.186: ==== Startup complete ===============================================
17:42:10.357: All scene data cleared
17:42:10.357: ------------------------------------------------
17:42:10.511: WASAPI: Device 'Speakers (2- High Definition Audio Device)' initialized
17:42:10.530: WASAPI: Device 'CABLE Output (VB-Audio Virtual Cable)' initialized
17:42:10.543: [obs-ndi] started A/V threads for source 'CORSAIR-G900 (OBS Corsair-G900)'
17:42:10.543: [obs-ndi] video thread for 'Corsair-G900' started
17:42:10.543: [obs-ndi] audio thread for 'Corsair-G900' started
17:42:10.543: Switched to scene 'Primary'
17:42:10.544: ------------------------------------------------
17:42:10.544: Loaded scenes:
17:42:10.544: - scene 'Primary':
17:42:10.544: - source: 'Corsair-G900' (ndi_source)
17:42:10.544: ------------------------------------------------
17:42:10.609: adding 69 milliseconds of audio buffering, total audio buffering is now 69 milliseconds
17:42:10.740: CalculateFileHash: Failed to open file 'C:\Users\Cknot\AppData\Roaming\obs-studio\updates\whatsnew.json':
17:42:35.875: ---------------------------------
17:42:35.875: video settings reset:
17:42:35.875: base resolution: 1920x1080
17:42:35.875: output resolution: 1920x1080
17:42:35.875: downscale filter: Bicubic
17:42:35.875: fps: 60/1
17:42:35.875: format: NV12
17:42:35.875: YUV mode: 601/Partial
17:42:35.900: Settings changed (advanced)
17:42:35.900: ------------------------------------------------
17:48:41.889: ---------------------------------
17:48:41.889: [x264 encoder: 'simple_h264_stream'] preset: veryfast
17:48:41.896: [x264 encoder: 'simple_h264_stream'] settings:
17:48:41.896: rate_control: CBR
17:48:41.896: bitrate: 4000
17:48:41.896: buffer size: 4000
17:48:41.896: crf: 0
17:48:41.896: fps_num: 60
17:48:41.896: fps_den: 1
17:48:41.896: width: 1920
17:48:41.896: height: 1080
17:48:41.896: keyint: 120
17:48:41.896:
17:48:41.896: [x264 encoder: 'simple_h264_stream'] custom settings: scenecut=0
17:48:41.911: ---------------------------------
17:48:41.934: [FFmpeg aac encoder: 'simple_aac'] bitrate: 128, channels: 2, channel_layout: 3
17:48:41.934:
17:48:42.003: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://live-lhr.twitch.tv/app...
17:48:42.087: [rtmp stream: 'simple_stream'] Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
17:48:43.228: [rtmp stream: 'simple_stream'] Connection to rtmp://live-lhr.twitch.tv/app successful
17:48:43.235: ==== Streaming Start ===============================================
17:54:20.660: [rtmp stream: 'simple_stream'] Stream shutdown timeout reached (30 second(s))
17:54:20.660: [rtmp stream: 'simple_stream'] User stopped the stream
17:54:20.660: Output 'simple_stream': stopping
17:54:20.660: Output 'simple_stream': Total frames output: 12877
17:54:20.660: Output 'simple_stream': Total drawn frames: 15310 (20270 attempted)
17:54:20.660: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 4960 (24.5%)
17:54:21.359: Video stopped, number of skipped frames due to encoding lag: 12853/13013 (98.8%)
17:54:21.408: ==== Streaming Stop ================================================
17:58:26.616: Failed to read log file C:\Users\Cknot\AppData\Roaming\obs-studio/logs/2018-09-11 22-48-33.txt
 

BK-Morpheus

Active Member
Ok, you got both problems at once....intel HD GPU can't keep up with rendering the scene (24,5% rendering lag) and the CPU is completely overloaded (98,8% encoding lag).
1080p 60fps x264 very fast is definitely too much for an i5-2500K (even overclocked) and 4000kbit/s CBR is way too low for decent quality (unless you stream content without much details+movement).
Try 720p 30fps with 4500kbit/s.
 

GoGGleZ

New Member
Ok, you got both problems at once....intel HD GPU can't keep up with rendering the scene (24,5% rendering lag) and the CPU is completely overloaded (98,8% encoding lag).
1080p 60fps x264 very fast is definitely too much for an i5-2500K (even overclocked) and 4000kbit/s CBR is way too low for decent quality (unless you stream content without much details+movement).
Try 720p 30fps with 4500kbit/s.

720p 30FPS is fine but I would really like to push 1080p@60fps from my streaming rig which I now know isn't an option with this machine, so now onto the fun part: UPGRADES! :)

Thinking the following:

Ryzen 1700x
GTX 1050 (normal or Ti)
8GB DDR4 Ram

Should do the trick I guess?

Thanks again for all your help Morpheus
 

BK-Morpheus

Active Member
If you stick with the two PC setup, I would recommend the Ryzen 8 core, yes.
Here in Germany, the 2700x is rather expensive, compared to the 1700 and 1700x, so I would pick up the older model, which is fast enough.
8GB RAM should be enough for Windows + OBS, as the game is running on the main PC. Maybe try to get 2x 4GB instead of 1x 8GB, just to take advantage of the performance increase that dual channel bandwidth will give.
The GTX1050 should definitely be fast enough for rendering the scene. Not sure, if the 1050TI is much better (maybe check if it has NVENC available, which could be useful for local recordings in high bitrate).
 

GoGGleZ

New Member
If you stick with the two PC setup, I would recommend the Ryzen 8 core, yes.
Here in Germany, the 2700x is rather expensive, compared to the 1700 and 1700x, so I would pick up the older model, which is fast enough.
8GB RAM should be enough for Windows + OBS, as the game is running on the main PC. Maybe try to get 2x 4GB instead of 1x 8GB, just to take advantage of the performance increase that dual channel bandwidth will give.
The GTX1050 should definitely be fast enough for rendering the scene. Not sure, if the 1050TI is much better (maybe check if it has NVENC available, which could be useful for local recordings in high bitrate).

both 1050's have the NVENC, only difference between the two is one has 2GB memory and the other 4GB, memory clock and speed are the same on both models though :) te GTX 1050 is the earliest/cheapest card with NVENC
 
Top