Hi, I'm working on an application with an OpenGL renderer and I'm trying to make it as compatible with OBS as I can. It currently works fine with game capture and monitor capture but window capture only works if I disable Aero(Windows 7). With aero enabled it captures whatever is behind the window rather than the actual window. My main tester is also having the same issue on Windows 10 and it happens in both OBS classic and studio.
I'm not using any libraries for my Win32 layer so I'm thinking there is something I'm doing wrong but nothing I've tried so far has worked. I haven't been able to find any posts about this particular issue either. I'd prefer people use it in game capture but I also just want it to work with as little fuss for the end user as possible. So anything I can do to improve compatibility is a win. I know I can't get any sure answers without posting source code but I'm just hoping for maybe some clues about what OBS likes when it comes to things like Window styles and rendering. I plan to dig around the OBS studio source code when I have more time.
Another issue I've had is that if I close my app while it's the active source in obs my app will crash instead of a clean close. Again this is something I need to fix in my platform layer but I'm not sure what obs is doing that causes my program to close incorrectly. Thanks for any help.
I'm not using any libraries for my Win32 layer so I'm thinking there is something I'm doing wrong but nothing I've tried so far has worked. I haven't been able to find any posts about this particular issue either. I'd prefer people use it in game capture but I also just want it to work with as little fuss for the end user as possible. So anything I can do to improve compatibility is a win. I know I can't get any sure answers without posting source code but I'm just hoping for maybe some clues about what OBS likes when it comes to things like Window styles and rendering. I plan to dig around the OBS studio source code when I have more time.
Another issue I've had is that if I close my app while it's the active source in obs my app will crash instead of a clean close. Again this is something I need to fix in my platform layer but I'm not sure what obs is doing that causes my program to close incorrectly. Thanks for any help.
Code:
13:00:45.119: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
13:00:45.120: CPU Speed: 3500MHz
13:00:45.120: Physical Cores: 4, Logical Cores: 8
13:00:45.120: Physical Memory: 12175MB Total, 8239MB Free
13:00:45.120: Windows Version: 6.1 Build 7601 (revision: 23392)
13:00:45.120: Aero is Enabled
13:00:45.127: OBS 0.14.2 (64bit, windows)
13:00:45.127: ---------------------------------
13:00:45.127: ---------------------------------
13:00:45.127: audio settings reset:
13:00:45.127: samples per sec: 44100
13:00:45.127: speakers: 2
13:00:45.498: ---------------------------------
13:00:45.499: video settings reset:
13:00:45.499: base resolution: 1920x1200
13:00:45.499: output resolution: 1152x720
13:00:45.499: fps: 30/1
13:00:45.499: format: NV12
13:00:45.499: ---------------------------------
13:00:45.500: Loading module: coreaudio-encoder.dll
13:00:45.500: [CoreAudio encoder]: Failed loading library 'CoreAudioToolbox.dll'
13:00:45.500: [CoreAudio encoder]: Couldn't load CoreAudio AAC encoder
13:00:45.500: ---------------------------------
13:00:45.500: Loading module: image-source.dll
13:00:45.500: ---------------------------------
13:00:45.501: Loading module: obs-ffmpeg.dll
13:00:45.501: NVENC supported
13:00:45.501: ---------------------------------
13:00:45.502: Loading module: obs-filters.dll
13:00:45.502: ---------------------------------
13:00:45.502: Loading module: obs-outputs.dll
13:00:45.502: ---------------------------------
13:00:45.503: Loading module: obs-qsv11.dll
13:00:45.519: ---------------------------------
13:00:45.520: Loading module: obs-transitions.dll
13:00:45.520: ---------------------------------
13:00:45.520: Loading module: obs-x264.dll
13:00:45.520: ---------------------------------
13:00:45.520: Loading module: rtmp-services.dll
13:00:45.521: ---------------------------------
13:00:45.521: Loading module: text-freetype2.dll
13:00:45.531: ---------------------------------
13:00:45.531: Loading module: win-capture.dll
13:00:48.073: ---------------------------------
13:00:48.079: Loading module: win-decklink.dll
13:00:48.103: No blackmagic support
13:00:48.103: Failed to start search for DeckLink devices
13:00:48.103: ---------------------------------
13:00:48.149: Loading module: win-dshow.dll
13:00:48.182: ---------------------------------
13:00:48.220: Loading module: win-mf.dll
13:00:48.256: [Media Foundation encoder]: plugin is disabled for performance reasons on Windows versions less than 8
13:00:49.339: ---------------------------------
13:00:49.359: Loading module: win-wasapi.dll
13:00:49.359: =====================================================================
13:00:49.384: output 'simple_stream' (rtmp_output) created
13:00:49.385: encoder 'simple_h264_stream' (obs_x264) created
13:00:49.385: AAC encoder bitrate mapping:
13:00:49.385: 32 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 64 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 96 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 128 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 160 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 192 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 224 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 256 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 288 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: 320 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
13:00:49.385: encoder 'simple_aac' (ffmpeg_aac) created
13:00:49.391: output 'simple_file_output' (ffmpeg_muxer) created
13:00:49.392: Service '' not found
13:00:49.392: service 'default_service' (rtmp_common) created
13:00:49.468: All scene data cleared
13:00:49.468: ------------------------------------------------
13:00:49.521: WASAPI: Device 'Speakers (High Definition Audio Device)' initialized
13:00:49.522: source 'Desktop Audio' (wasapi_output_capture) created
13:00:49.527: WASAPI: Device 'Digital Audio (S/PDIF) (High Definition Audio Device)' initialized
13:00:49.527: source 'Mic/Aux' (wasapi_input_capture) created
13:00:49.527: source 'Scene' (scene) created
13:00:49.527: source 'Window Capture' (window_capture) created
13:00:49.527: source 'Game Capture' (game_capture) created
13:00:49.618: adding 69 milliseconds of audio buffering, total audio buffering is now 69 milliseconds
13:00:49.733: == Profiler Results =============================
13:00:49.733: run_program_init: 4779.44 ms
13:00:49.733: ┣OBSApp::AppInit: 17.281 ms
13:00:49.733: ┃ ┗OBSApp::InitLocale: 0.815 ms
13:00:49.733: ┗OBSApp::OBSInit: 4651.78 ms
13:00:49.733: ┣obs_startup: 0.908 ms
13:00:49.733: ┗OBSBasic::OBSInit: 4596.21 ms
13:00:49.733: ┣OBSBasic::InitBasicConfig: 0.22 ms
13:00:49.733: ┣OBSBasic::ResetAudio: 0.128 ms
13:00:49.733: ┣OBSBasic::ResetVideo: 371.836 ms
13:00:49.733: ┣OBSBasic::InitOBSCallbacks: 0.02 ms
13:00:49.733: ┣OBSBasic::InitHotkeys: 0.046 ms
13:00:49.733: ┣obs_load_all_modules: 3860.51 ms
13:00:49.733: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.362 ms
13:00:49.733: ┃ ┣obs_init_module(image-source.dll): 0.001 ms
13:00:49.733: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.476 ms
13:00:49.733: ┃ ┣obs_init_module(obs-filters.dll): 0.01 ms
13:00:49.733: ┃ ┣obs_init_module(obs-outputs.dll): 0.002 ms
13:00:49.733: ┃ ┣obs_init_module(obs-qsv11.dll): 16.234 ms
13:00:49.733: ┃ ┣obs_init_module(obs-transitions.dll): 0.005 ms
13:00:49.733: ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
13:00:49.733: ┃ ┣obs_init_module(rtmp-services.dll): 0.178 ms
13:00:49.733: ┃ ┣obs_init_module(text-freetype2.dll): 9.399 ms
13:00:49.733: ┃ ┣obs_init_module(win-capture.dll): 2542.52 ms
13:00:49.733: ┃ ┣obs_init_module(win-decklink.dll): 3.77 ms
13:00:49.733: ┃ ┣obs_init_module(win-dshow.dll): 1.009 ms
13:00:49.733: ┃ ┣obs_init_module(win-mf.dll): 1084.07 ms
13:00:49.733: ┃ ┣obs_init_module(win-wasapi.dll): 0.007 ms
13:00:49.733: ┃ ┗reset_win32_symbol_paths: 0.098 ms
13:00:49.733: ┣OBSBasic::ResetOutputs: 32.132 ms
13:00:49.733: ┣OBSBasic::CreateHotkeys: 0.161 ms
13:00:49.734: ┣OBSBasic::InitService: 0.091 ms
13:00:49.734: ┣OBSBasic::InitPrimitives: 0.209 ms
13:00:49.734: ┗OBSBasic::Load: 203.653 ms
13:00:49.734: =================================================
13:01:08.052: rtmp-common.c: [initialize_output] Could not find service ''
13:01:08.052: rtmp-common.c: [initialize_output] Could not find service ''
13:01:08.052: rtmp-common.c: [initialize_output] Could not find service ''
13:01:08.052: ---------------------------------
13:01:08.052: [x264 encoder: 'simple_h264_stream'] preset: veryfast
13:01:08.075: [x264 encoder: 'simple_h264_stream'] settings:
13:01:08.075: rate_control:
13:01:08.075: bitrate: 3500
13:01:08.075: buffer size: 3500
13:01:08.075: crf: 23
13:01:08.075: fps_num: 30
13:01:08.075: fps_den: 1
13:01:08.075: width: 1152
13:01:08.075: height: 720
13:01:08.075: keyint: 250
13:01:08.075: vfr: off
13:01:08.075:
13:01:08.085: ---------------------------------
13:01:08.106: [FFmpeg aac encoder: 'simple_aac'] bitrate: 160, channels: 2
13:01:08.212: ==== Recording Start ===============================================
13:01:08.212: [ffmpeg muxer: 'simple_file_output'] Writing file 'C:\Users\Me\Videos/2016-07-14 13-01-08.flv'...
13:01:09.941: [rtmp-services plugin] Remote update of URL "https://obsproject.com/obs2_update/rtmp-services/package.json" failed: schannel: failed to receive handshake, SSL/TLS connection failed
13:01:11.446: [ffmpeg muxer: 'simple_file_output'] Output of file 'C:\Users\Me\Videos/2016-07-14 13-01-08.flv' stopped
13:01:11.447: Output 'simple_file_output': stopping
13:01:11.447: Output 'simple_file_output': Total encoded frames: 97
13:01:11.447: Output 'simple_file_output': Total drawn frames: 97
13:01:11.447: ==== Recording Stop ================================================
[\code\
Last edited: