Question / Help why cant i have display capture and game capture in the same scene

Conrad_5

Member
okay so ive noticed this bug when im trying to play say overwatch or any other game in fullscreen if i have a display capture and game capture in the same scene, the obs preview starts to stutter when recording. is there any way to have both in one scene with this not occurring? this wasnt a problem beforehand when trying to stream overwatch and other games but im noticing it in the past week of trying to stream. any help would be greatly appreciated here. thanks
 

Conrad_5

Member
so update: if display capture and game capture in the same scene causes obs to stutter no matter what kind of computer you have. can anyone tell me why this is the case? didnt use to be a problem to have both of them in the same scene when you wanted to alt tab to see your monitor display
 

EBrito

Active Member
Game capture tries to capture any ful screen app
Display capture tries to capture the same app because it´s using the whole display

That`s why they conflict each other.
 

Conrad_5

Member
ive seen people be able to use both at the same time. its a obs problem with windows 10 that apparently is supposed to be fixed but isnt. ive seen streamers like c9sneaky with both of them in 1 scene and his obs works perfectly fine from what ive seen
 

Conrad_5

Member
wait so now i only try to use a display capture to play a game in fullscreen and it still does the same thing. can someone explain why display capture lags obs. its the only capture besides my webcam that i am using
 

WizardCM

Forum Moderator
Community Helper
Display Capture is known to be inefficient and the least performant of the 3 captures. If you're capturing a game, it is highly recommended to use game capture. If you need to capture something other than the game, say as part of your overlay, try and use window capture wherever possible.
 

Conrad_5

Member
i want to be able to capture my display and also be able to capture when i switch over to a game. is this not possible in 1 scene collection???
 

Sapiens

Forum Moderator
It's possible but not always practical depending on your setup. Still waiting for you to post a log file.
 

Conrad_5

Member
https://gist.github.com/e0d518595785916b03f03ca462f9d0de
here is the log. i saw only 150 dropped frames when looking in obs but i did not get an encoding overload message what so ever when i was streaming so nothing went wrong with the bitrate or connection from what im aware of. also here are my pc specs

pc specs:
i5-6600k skylake
g1.sniper z170 motherboard
8gb ddr4 ram
superclocked evga geforce gtx 970
3 monitors. ( 2 asus 60 hz and main asus 144hz monitor)
118gb sdd
and 1tb hardrive also


if theres anything you think i may have left out please let me know i would like to be able to resolve this streaming problem so i can stream on a daily occurrence. as of now i am unable to stream everyday which sucks because i feel like i can have some great content on twitch for the community. any help would be great and anyone willing to help set the obs scenes and settings up for me would be greatly appreciated or even paid for. thanks again forum
 

Sapiens

Forum Moderator
This log has no streaming/recording attempts and no game capture source. Running monitors with different refresh rates is known to cause some issues with capturing, and your 970 isn't going to drive a 144Hz monitor very well without maxing out, so some of the performance issues may stem from that.
 

Conrad_5

Member
Code:
10:13:08.941: CPU Name: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
10:13:08.941: CPU Speed: 3504MHz
10:13:08.941: Physical Cores: 4, Logical Cores: 4
10:13:08.941: Physical Memory: 8141MB Total, 4770MB Free
10:13:08.941: Windows Version: 10.0 Build 14393 (revision: 726; 64-bit)
10:13:08.941: Running as administrator: true
10:13:08.941: Aero is Enabled (Aero is always on for windows 8 and above)
10:13:08.941: Portable mode: false
10:13:08.953: OBS 18.0.0 (64bit, windows)
10:13:08.953: ---------------------------------
10:13:08.954: ---------------------------------
10:13:08.954: audio settings reset:
10:13:08.954:     samples per sec: 48000
10:13:08.954:     speakers:        2
10:13:08.957: ---------------------------------
10:13:08.957: Initializing D3D11..
10:13:08.957: Available Video Adapters:
10:13:08.958:     Adapter 1: NVIDIA GeForce GTX 970
10:13:08.958:      Dedicated VRAM: 4256628736
10:13:08.958:      Shared VRAM:    4268689408
10:13:08.958:      output 1: pos={0, 0}, size={1920, 1080}, attached=true
10:13:08.958:      output 2: pos={1920, 257}, size={1920, 1080}, attached=true
10:13:08.958:      output 3: pos={-2560, -364}, size={2560, 1440}, attached=true
10:13:08.960: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
10:13:08.977: D3D11 loaded sucessfully, feature level used: 45056
10:13:09.618: ---------------------------------
10:13:09.618: video settings reset:
10:13:09.618:     base resolution:   1920x1080
10:13:09.618:     output resolution: 1920x1080
10:13:09.618:     downscale filter:  Lanczos
10:13:09.618:     fps:               60/1
10:13:09.618:     format:            NV12
10:13:09.619: ---------------------------------
10:13:09.621: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
10:13:09.622: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
10:13:09.623: [AMF Encoder] Unable to load 'amfrt64.dll', error code 126.
10:13:09.629: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
10:13:09.629: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
10:13:09.630: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
10:13:09.630: Failed to load 'en-US' text for module: 'obs-browser.dll'
10:13:09.630: [browser_source: 'Version: 1.29.0']
10:13:09.632: NVENC supported
10:13:09.690: Couldn't find VLC installation, VLC video source disabled
10:13:09.693: No blackmagic support
10:13:09.717: ---------------------------------
10:13:09.717:   Loaded Modules:
10:13:09.717:     win-wasapi.dll
10:13:09.717:     win-mf.dll
10:13:09.717:     win-dshow.dll
10:13:09.717:     win-decklink.dll
10:13:09.717:     win-capture.dll
10:13:09.717:     vlc-video.dll
10:13:09.717:     text-freetype2.dll
10:13:09.717:     rtmp-services.dll
10:13:09.717:     obs-x264.dll
10:13:09.717:     obs-vst.dll
10:13:09.717:     obs-transitions.dll
10:13:09.717:     obs-text.dll
10:13:09.717:     obs-qsv11.dll
10:13:09.717:     obs-outputs.dll
10:13:09.717:     obs-filters.dll
10:13:09.717:     obs-ffmpeg.dll
10:13:09.717:     obs-browser.dll
10:13:09.717:     image-source.dll
10:13:09.717:     frontend-tools.dll
10:13:09.717:     enc-amf.dll
10:13:09.717:     coreaudio-encoder.dll
10:13:09.717: ==== Startup complete ===============================================
10:13:09.720: All scene data cleared
10:13:09.720: ------------------------------------------------
10:13:09.739: WASAPI: Device 'Headset Earphone (3- ASTRO Wireless Transmitter )' initialized
10:13:09.749: WASAPI: Device 'Headset Earphone (3- ASTRO Wireless Transmitter )' initialized
10:13:09.765: WASAPI: Device 'Headset Microphone (3- ASTRO Wireless Transmitter )' initialized
10:13:09.772: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds
10:13:09.778: [Media Source 'Media Source']: settings:
10:13:09.778:     input:                 
10:13:09.778:     input_format:            (null)
10:13:09.778:     is_looping:              no
10:13:09.778:     is_forcing_scale:        yes
10:13:09.778:     is_hw_decoding:          yes
10:13:09.778:     is_clear_on_media_end:   yes
10:13:09.778:     restart_on_activate:     yes
10:13:09.834: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
10:13:10.296: Switched to scene 'Gaming'
10:13:10.305: ------------------------------------------------
10:13:10.305: Loaded scenes:
10:13:10.305: - scene 'Intro':
10:13:10.305:     - source: 'Image' (image_source)
10:13:10.305:     - source: 'Media Source' (ffmpeg_source)
10:13:10.305: - scene 'Gaming':
10:13:10.305:     - source: 'Display Capture' (monitor_capture)
10:13:10.305:     - source: 'Video Capture Device' (dshow_input)
10:13:10.305:     - source: 'BrowserSource' (browser_source)
10:13:10.305:     - source: 'BrowserSource 2' (browser_source)
10:13:10.305: - scene 'intermission':
10:13:10.305:     - source: 'BRB' (image_source)
10:13:10.305:     - source: 'Video Capture Device' (dshow_input)
10:13:10.305:     - source: 'BrowserSource' (browser_source)
10:13:10.305: - scene 'stream ending':
10:13:10.305:     - source: 'Stream Ending' (image_source)
10:13:10.305:     - source: 'Video Capture Device' (dshow_input)
10:13:10.305:     - source: 'BrowserSource' (browser_source)
10:13:10.305: - scene 'Stream Offline':
10:13:10.305:     - source: 'Stream Off' (image_source)
10:13:10.305: ------------------------------------------------
10:13:10.316: ---------------------------------
10:13:10.316: [DShow Device: 'Video Capture Device'] settings updated:
10:13:10.316:     video device: Logitech HD Pro Webcam C920
10:13:10.316:     video path: \\?\usb#vid_046d&pid_082d&mi_00#6&ca8a92d&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
10:13:10.316:     resolution: 640x480
10:13:10.316:     fps: 30.00 (interval: 333333)
10:13:10.316:     format: I420
10:24:13.276: Device 'Headset Earphone (3- ASTRO Wireless Transmitter )' invalidated.  Retrying
10:24:13.279: Device 'Headset Earphone (3- ASTRO Wireless Transmitter )' invalidated.  Retrying
10:24:13.382: Device 'Headset Microphone (3- ASTRO Wireless Transmitter )' invalidated.  Retrying
10:24:16.296: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' initialized
10:24:16.299: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' initialized
10:24:16.411: [WASAPISource::TryInitialize]:[Headset Microphone (3- ASTRO Wireless Transmitter )] Failed to activate client context: 88890004
11:06:02.871: ---------------------------------
11:06:02.903: [NVENC encoder: 'streaming_h264'] settings:
11:06:02.903:     rate_control: CBR
11:06:02.903:     bitrate:      3500
11:06:02.903:     cqp:          0
11:06:02.903:     keyint:       120
11:06:02.903:     preset:       llhq
11:06:02.903:     profile:      main
11:06:02.903:     level:        auto
11:06:02.903:     width:        1920
11:06:02.903:     height:       1080
11:06:02.903:     2-pass:       false
11:06:02.903:     b-frames:     2
11:06:02.903:     GPU:          0
11:06:02.903:
11:06:03.541: [Media Foundation AAC: 'Track1']: encoder created
11:06:03.541:     bitrate: 160
11:06:03.541:     channels: 2
11:06:03.541:     sample rate: 48000
11:06:03.541:     bits-per-sample: 16
11:06:03.541:
11:06:03.565: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-iad.twitch.tv/app...
11:06:03.590: [rtmp stream: 'adv_stream'] Interface: Intel(R) Ethernet Connection (2) I219-V (ethernet, 1000 mbps)
11:06:04.852: [rtmp stream: 'adv_stream'] Connection to rtmp://live-iad.twitch.tv/app successful
11:06:04.855: ==== Streaming Start ===============================================
11:20:50.071: [rtmp stream: 'adv_stream'] User stopped the stream
11:20:50.071: Output 'adv_stream': stopping
11:20:50.071: Output 'adv_stream': Total encoded frames: 53192
11:20:50.071: Output 'adv_stream': Total drawn frames: 53192
11:20:50.071: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 167 (0.3%)
11:20:50.071: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 150 (0.3%)
11:20:50.074: ==== Streaming Stop ================================================
11:25:18.197: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
11:33:25.980: WASAPI: Device 'Headset Microphone (3- ASTRO Wireless Transmitter )' initialized
11:52:19.229: ==== Shutting down ==================================================
11:52:19.241: Switched to scene '(null)'
11:52:19.331: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' Terminated
11:52:19.338: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' Terminated
11:52:19.351: WASAPI: Device 'Headset Microphone (3- ASTRO Wireless Transmitter )' Terminated
11:52:19.352: All scene data cleared
11:52:19.352: ------------------------------------------------
11:52:19.391: Freeing OBS context data
11:52:20.035: == Profiler Results =============================
11:52:20.035: run_program_init: 1437.78 ms
11:52:20.035:  ┣OBSApp::AppInit: 1.797 ms
11:52:20.035:  ┃ ┗OBSApp::InitLocale: 1.137 ms
11:52:20.035:  ┗OBSApp::OBSInit: 1413.46 ms
11:52:20.035:    ┣obs_startup: 1.046 ms
11:52:20.035:    ┗OBSBasic::OBSInit: 1388.37 ms
11:52:20.035:      ┣OBSBasic::InitBasicConfig: 0.604 ms
11:52:20.035:      ┣OBSBasic::ResetAudio: 1.902 ms
11:52:20.035:      ┣OBSBasic::ResetVideo: 663.456 ms
11:52:20.035:      ┣OBSBasic::InitOBSCallbacks: 0.005 ms
11:52:20.035:      ┣OBSBasic::InitHotkeys: 0.035 ms
11:52:20.035:      ┣obs_load_all_modules: 97.773 ms
11:52:20.035:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.379 ms
11:52:20.035:      ┃ ┣obs_init_module(enc-amf.dll): 0.376 ms
11:52:20.035:      ┃ ┣obs_init_module(frontend-tools.dll): 1.283 ms
11:52:20.035:      ┃ ┣obs_init_module(image-source.dll): 0.023 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-browser.dll): 0.038 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.661 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-filters.dll): 0.008 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-outputs.dll): 0.004 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-qsv11.dll): 50.718 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-text.dll): 0.656 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-transitions.dll): 0.006 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-vst.dll): 0.002 ms
11:52:20.035:      ┃ ┣obs_init_module(obs-x264.dll): 0.003 ms
11:52:20.035:      ┃ ┣obs_init_module(rtmp-services.dll): 0.297 ms
11:52:20.035:      ┃ ┣obs_init_module(text-freetype2.dll): 0.049 ms
11:52:20.035:      ┃ ┣obs_init_module(vlc-video.dll): 0.034 ms
11:52:20.035:      ┃ ┣obs_init_module(win-capture.dll): 0.087 ms
11:52:20.035:      ┃ ┣obs_init_module(win-decklink.dll): 1.7 ms
11:52:20.035:      ┃ ┣obs_init_module(win-dshow.dll): 0.794 ms
11:52:20.035:      ┃ ┣obs_init_module(win-mf.dll): 20.392 ms
11:52:20.035:      ┃ ┣obs_init_module(win-wasapi.dll): 0.005 ms
11:52:20.035:      ┃ ┗reset_win32_symbol_paths: 0.087 ms
11:52:20.035:      ┣OBSBasic::ResetOutputs: 0.44 ms
11:52:20.035:      ┣OBSBasic::CreateHotkeys: 0.03 ms
11:52:20.035:      ┣OBSBasic::InitService: 0.108 ms
11:52:20.035:      ┣OBSBasic::InitPrimitives: 0.253 ms
11:52:20.035:      ┗OBSBasic::Load: 586.527 ms
11:52:20.035: obs_hotkey_thread(25 ms): min=0.001 ms, median=0.004 ms, max=603.412 ms, 99th percentile=0.033 ms, 99.9924% below 25 ms
11:52:20.035: audio_thread(Audio): min=0 ms, median=0.05 ms, max=24.773 ms, 99th percentile=0.756 ms
11:52:20.035:  ┗receive_audio: min=0.003 ms, median=0.251 ms, max=8.267 ms, 99th percentile=1.586 ms, 0.143143 calls per parent call
11:52:20.035:    ┣buffer_audio: min=0 ms, median=0 ms, max=2.426 ms, 99th percentile=0.001 ms
11:52:20.035:    ┗do_encode: min=0.06 ms, median=0.248 ms, max=8.264 ms, 99th percentile=1.568 ms
11:52:20.035:      ┗encode(Track1): min=0.059 ms, median=0.225 ms, max=8.251 ms, 99th percentile=1.459 ms
11:52:20.035: obs_video_thread(16.6667 ms): min=0.339 ms, median=1.011 ms, max=639.658 ms, 99th percentile=2.677 ms, 99.9882% below 16.667 ms
11:52:20.035:  ┣tick_sources: min=0.001 ms, median=0.129 ms, max=602.547 ms, 99th percentile=0.572 ms
11:52:20.035:  ┣render_displays: min=0 ms, median=0.181 ms, max=583.786 ms, 99th percentile=1.045 ms
11:52:20.035:  ┗output_frame: min=0.333 ms, median=0.676 ms, max=129.972 ms, 99th percentile=1.498 ms
11:52:20.035:    ┣gs_context(video->graphics): min=0.067 ms, median=0.302 ms, max=129.507 ms, 99th percentile=0.715 ms
11:52:20.035:    ┃ ┣render_video: min=0.021 ms, median=0.045 ms, max=129.424 ms, 99th percentile=0.384 ms
11:52:20.035:    ┃ ┃ ┣render_main_texture: min=0.001 ms, median=0.023 ms, max=6.612 ms, 99th percentile=0.21 ms
11:52:20.035:    ┃ ┃ ┣render_output_texture: min=0.003 ms, median=0.005 ms, max=5.881 ms, 99th percentile=0.043 ms
11:52:20.035:    ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.007 ms, max=7.808 ms, 99th percentile=0.049 ms
11:52:20.035:    ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.002 ms, max=129.392 ms, 99th percentile=0.267 ms
11:52:20.035:    ┃ ┣download_frame: min=0 ms, median=0.001 ms, max=23.544 ms, 99th percentile=0.411 ms
11:52:20.035:    ┃ ┗gs_flush: min=0.013 ms, median=0.22 ms, max=30.984 ms, 99th percentile=0.529 ms
11:52:20.035:    ┗output_video_data: min=0.273 ms, median=0.367 ms, max=17.143 ms, 99th percentile=0.9 ms
11:52:20.035: video_thread(video): min=0 ms, median=0.001 ms, max=130.893 ms, 99th percentile=1.471 ms
11:52:20.035:  ┗receive_video: min=0 ms, median=1.118 ms, max=130.891 ms, 99th percentile=2.002 ms, 0.14888 calls per parent call
11:52:20.035:    ┗do_encode: min=0.734 ms, median=1.117 ms, max=130.89 ms, 99th percentile=2.001 ms
11:52:20.035:      ┗encode(streaming_h264): min=0.718 ms, median=1.099 ms, max=130.536 ms, 99th percentile=1.972 ms
11:52:20.035: =================================================
11:52:20.035: == Profiler Time Between Calls ==================
11:52:20.035: obs_hotkey_thread(25 ms): min=24.526 ms, median=25.082 ms, max=630.071 ms, 92.1976% within ±2% of 25 ms (0% lower, 7.80235% higher)
11:52:20.035: obs_video_thread(16.6667 ms): min=0.869 ms, median=16.667 ms, max=639.712 ms, 94.9672% within ±2% of 16.667 ms (2.53756% lower, 2.49523% higher)
11:52:20.035: =================================================
11:52:20.232: Number of memory leaks: 18
 
Last edited by a moderator:

Conrad_5

Member
i have display capture not game capture because i was told if i have game capture and display capture in the same scene it will cause the issue that has been occurring. so for my 144 hz monitor should i put the refresh rate to 60hz as well? please help me out @Sapiens, id appreciate it a lot man
 

Sapiens

Forum Moderator
So did removing the game capture source fix the problem? I'm guessing not. A good starting point is going to be a log that actually contains a streaming/recording attempt where the problem happened. Streaming to Twitch at 1080p60 is also generally a terrible idea, 720p30 or 720p60 is going to look better.
 

Conrad_5

Member
no it did not. it still happens if i just have either a game capture or display capture. i dont know what to do. and okay ill switch it back to 720 60p but what about this lag occurring if i have game capture and display capture in the same scene? on windows 10 anniversary edition also
 

Conrad_5

Member
@Suslik V i changed the 144 hz monitor to 60 hz like it says to do and i still get the same problem. i dont understand why the hell this does this? need major help and obs needs to update this so this doesnt happen with windows 10 its annoying
 

Conrad_5

Member
now my game capture is a black screen while being able to hear the game audio and see the cursor???? obs is really doing its wonders
 
Top