Bug Report Problem with Window capture and Aero

kits

New Member
Hello, I have a bit of an odd problem.

With Windows Aero enabled in certain games and areas, whenever I hit 'start stream' or 'preview stream', the OBS preview window won't display anything, and becomes unresponsive. Or sometimes it will display the game I'm playing, but literally 5~ frames per minute even though the game itself is fine. After several seconds, it will disconnect and attempt to reconnect to the stream servers.

What is really strange is in some areas in Vindictus will run fine, even with Aero on, though after loading and entering certain dungeon maps then OBS will become unresponsive, and drop connections.

Also it might be worth noting that my friend and I have similar PC's, run the same game on the same stream settings, and he doesn't suffer from this problem.

Disabling Aero fixes all of these issues, but due to other reasons(screen tearing/desktop privacy etc.), I would like to keep Aero if a solution can be found.

Things I've tried
Various versions of OBS
Testing on the XSplit free version(Same problem happens)
Reverting / updating video drivers
Reverting / updating Flash.

I'm out of ideas. If anyone has any idea what is happening I would greatly appreciate it.

Here is the latest log pasted below if it can be of help at all.

Open Broadcaster Software v0.473b (magnificant test build 11) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
CPU Speed: 3300MHz
Physical Memory: 8104MB Total, 4507MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1280, 1024}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 560 Ti
Video Adapter Dedicated Video Memory: 1025966080
Video Adapter Shared System Memory: 3221106688
Using fixed low latency mode, factor 20
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (7- Logitech G35 Headset)
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (7- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
Using Window Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
fps: 60
width: 1280, height: 720
preset: veryfast
CBR: no
CFR: no
max bitrate: 3300
buffer size: 3300
quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-lax.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
librtmp error: WriteN, RTMP send error 10053 (79 bytes)
librtmp error: WriteN, RTMP send error 10038 (42 bytes)
Number of times waited to send: 3, Waited for a total of 8609 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
x264: frame I:3 Avg QP:22.15 size:136393
x264: frame P:107 Avg QP:28.32 size: 9201
x264: frame B:197 Avg QP:35.42 size: 54
x264: consecutive B-frames: 11.9% 5.2% 2.9% 80.0%
x264: mb I I16..4: 3.9% 22.4% 73.7%
x264: mb P I16..4: 1.8% 3.2% 0.9% P16..4: 15.1% 5.2% 2.4% 0.0% 0.0% skip:71.4%
x264: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.2% 0.0% 0.0% direct: 0.0% skip:99.7% L0:49.5% L1:48.9% BI: 1.6%
x264: 8x8 transform intra:44.3% inter:34.6%
x264: coded y,uvDC,uvAC intra: 76.3% 46.5% 20.2% inter: 3.5% 1.1% 0.1%
x264: i16 v,h,dc,p: 18% 35% 34% 13%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 19% 27% 7% 7% 6% 8% 6% 11%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 20% 15% 8% 10% 7% 11% 6% 11%
x264: i8c dc,h,v,p: 63% 21% 12% 4%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:2196.08
=====Stream End=======================================================================
Using fixed low latency mode, factor 20
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (7- Logitech G35 Headset)
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (7- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Actually I've heard that window capture doesn't always work with some multi-monitor setups on nvidia cards. I'm not entirely sure what's going on with it. I have an AMD card and don't get the issue myself, so I'm sort of baffled.
 

kits

New Member
Well, windows capture works fine for the most part, it's just that in some games Aero will make OBS freak out and drop frames or disconnect entirely
 

kits

New Member
Another log from a different game.

This time it didn't crash or hang, but any time anything with bright lights showed up or fast screen movement, the fps will plummet to a single digit and the latency meter will fluctuate between red/yellow then settle to green when there is little movement once again.

This doesn't happen when Aero is disabled, but I can't imagine it being my system or connection. Sounds like something is causing a conflict but I have no idea where to begin.
Oh, and once again it only happens in some games, not all.

I may have to reformat but I thought I would get some ideas/suggestions before I do that.

Open Broadcaster Software v0.473b (magnificant test build 11) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
CPU Speed: 3300MHz
Physical Memory: 8104MB Total, 4197MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1280, 1024}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 560 Ti
Video Adapter Dedicated Video Memory: 1025966080
Video Adapter Shared System Memory: 3221106688
Using fixed low latency mode, factor 20
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (7- Logitech G35 Headset)
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (7- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
Using bitmap image
Using Window Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
fps: 30
width: 1280, height: 720
preset: veryfast
CBR: no
CFR: no
max bitrate: 3300
buffer size: 3300
quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-lax.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
Total frames rendered: 2249, number of frames that lagged: 27 (1.20%) (it's okay for some frames to lag)
Total duplicated frames: 113 (5.02%)
RTMPPublisher::SocketLoop: Aborting due to loop exit
librtmp error: WriteN, RTMP send error 10035 (79 bytes)
librtmp error: WriteN, RTMP send error 10038 (42 bytes)
Number of times waited to send: 12, Waited for a total of 49164 bytes
Number of b-frames dropped: 2 (0.09%), Number of p-frames dropped: 0 (0%), Total 2 (0.09%)
x264: frame I:13 Avg QP:25.44 size:146227
x264: frame P:857 Avg QP:27.47 size: 13887
x264: frame B:1452 Avg QP:30.40 size: 2120
x264: consecutive B-frames: 8.0% 24.3% 4.1% 63.5%
x264: mb I I16..4: 6.0% 25.7% 68.3%
x264: mb P I16..4: 1.8% 4.6% 1.6% P16..4: 14.8% 6.1% 4.4% 0.0% 0.0% skip:66.7%
x264: mb B I16..4: 0.2% 0.4% 0.1% B16..8: 3.0% 1.8% 0.5% direct: 1.7% skip:92.4% L0:33.9% L1:46.0% BI:20.1%
x264: 8x8 transform intra:53.6% inter:36.1%
x264: coded y,uvDC,uvAC intra: 69.9% 48.6% 19.6% inter: 6.7% 3.4% 0.3%
x264: i16 v,h,dc,p: 34% 36% 19% 11%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 28% 18% 3% 4% 4% 7% 4% 7%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 25% 14% 6% 7% 7% 10% 5% 9%
x264: i8c dc,h,v,p: 56% 20% 18% 5%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:1744.71
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 8.892 ms] [avg calls per frame: 1] [children: 96.1%] [unaccounted: 3.88%]
| scene->Preprocess - [50.1%] [avg time: 4.458 ms] [avg calls per frame: 1]
| video encoding and uploading - [46%] [avg time: 4.089 ms] [avg calls per frame: 1] [children: 14.6%] [unaccounted: 31.4%]
| | CopyResource - [0.191%] [avg time: 0.017 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [1.1%] [avg time: 0.098 ms] [avg calls per frame: 0]
| | call to encoder - [13.2%] [avg time: 1.171 ms] [avg calls per frame: 1]
| | sending stuff out - [0.101%] [avg time: 0.009 ms] [avg calls per frame: 1]
==============================================================
 

kits

New Member
Hm, I was able to replicate the exact same problem in WoW by disabling VSync. Perhaps I will try force-enabling it on the other games I am having issues with. I'll report results
 

kits

New Member
Yeah, that was it. The games that didn't have VSync turned on had problems when Aero was turned on, so turning Aero off remedied the situation.

On the flip side, turning on VSync while leaving Aero on also fixes it, which is my preferred solution. Maybe this thread will help someone some day.
 

kits

New Member
Looks like I jumped the gun a bit there, 3 games I play were fixed with VSync, however Vindictus still has problems with aero even with vsync on. It helps if I change from Anisotropic filtering 16x to Trilinear / Bilinear, and if I lower anti aliasing, but I find it strange how those things would impact my OBS client even though my in-game FPS is fine.

Seems to only be Source engine games.

Open to suggestions if anyone has them
 

Warchamp7

Forum Admin
You're on a test build, you could try updating to the latest stable or test version and see if that helps.
 

kits

New Member
Yeah, I've tried many different versions including a test build, as well as other software that does the same thing, it always freezes when I look at certain areas or is incredibly choppy in the stream window(not in-game). with Aero enabled, even though a friend with similar hardware and settings doesn't(which is why I'm all the more curious)
 

reddy?

New Member
Jim said:
Actually I've heard that window capture doesn't always work with some multi-monitor setups on nvidia cards. I'm not entirely sure what's going on with it. I have an AMD card and don't get the issue myself, so I'm sort of baffled.
Ahh yes this is the same issue that I get. I have a nvidia card with 2 monitors and it just doesn't work. Shows a black box instead. I thought maybe I was doing something wrong.
 

xevious92

New Member
I have this exact same problem right now with a game I'm trying to stream, Continent of the Ninth Seal. When I have Aero enabled, my game maintains normal smooth FPS, but the stream preview's FPS ranges from 1-5 and the encoding bitrate goes up to ridiculous values like 20,000kbps. If I disable Aero while using window capture, it ends up capturing that entire monitor and the stream preview has good framerate, but the actual game seems to stutter. Game Capture does not work at all; it will detect the game, but results in a black screen when previewing the stream -- I reckon that's an issue with the game itself rather than with OBS. However, I still don't understand why having Aero enabled during Window Capture for this game makes OBS run extremely slow.

I have a GTX 770 and i5-4670k processor, with a dual-monitor setup.

Any possible solutions?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
You should post a log file whenever you want to report a problem.
 

xevious92

New Member
Sorry, here's a log file generated after replicating the problem.


Code:
14:01:12: Settings::Video: Enabling Aero
14:04:12: Open Broadcaster Software v0.592b - 32bit (´・ω・`)
14:04:12: -------------------------------
14:04:12: CPU Name: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
14:04:12: CPU Speed: 3392MHz
14:04:12: Physical Memory:  4095MB Total, 3691MB Free
14:04:12: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
14:04:12: monitor 1: pos={1920, 0}, size={1920, 1080}
14:04:12: monitor 2: pos={0, 0}, size={1920, 1080}
14:04:12: Windows Version: 6.1 Build 7601 S
14:04:12: Aero is Enabled
14:04:12: -------------------------------
14:04:12: OBS Modules:
14:04:12: Base Address     Module
14:04:12: 01290000         OBS.exe
14:04:12: 62960000         OBSApi.dll
14:04:12: 74090000         DShowPlugin.dll
14:04:12: 731B0000         GraphicsCapture.dll
14:04:12: 731D0000         NoiseGate.dll
14:04:12: 73190000         PSVPlugin.dll
14:04:12: ------------------------------------------
14:04:12: Adapter 1
14:04:12:   Video Adapter: NVIDIA GeForce GTX 770
14:04:12:   Video Adapter Dedicated Video Memory: 2087387136
14:04:12:   Video Adapter Shared System Memory: 2147807232
14:04:12:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
14:04:12:   Video Adapter Output 2: pos={1920, 0}, size={1920, 1080}, attached=true
14:04:12: ------------------------------------------
14:04:12: Adapter 2
14:04:12:   Video Adapter: Intel(R) HD Graphics 4600
14:04:12:   Video Adapter Dedicated Video Memory: 67108864
14:04:12:   Video Adapter Shared System Memory: 1711276032
14:04:12: =====Stream Start: 2014-01-04, 14:04:12===============================================
14:04:12:   Multithreaded optimizations: On
14:04:12:   Base resolution: 1920x1080
14:04:12:   Output resolution: 1096x616
14:04:12: ------------------------------------------
14:04:12: Loading up D3D10 on NVIDIA GeForce GTX 770 (Adapter 1)...
14:04:12: ------------------------------------------
14:04:12: Audio Format: 44100hz
14:04:12: Playback device Default
14:04:12: ------------------------------------------
14:04:12: Using desktop audio input: Speakers (Realtek High Definition Audio)
14:04:12: ------------------------------------------
14:04:12: Using auxilary audio input: Microphone (Realtek High Definition Audio)
14:04:12: ------------------------------------------
14:04:12: Audio Encoding: MP3
14:04:12:     bitrate: 128
14:04:12: Using Window Capture
14:04:12: Scene buffering time set to 100
14:04:12: ------------------------------------------
14:04:12: Video Encoding: x264
14:04:12:     fps: 25
14:04:12:     width: 1096, height: 616
14:04:12:     preset: medium
14:04:12:     profile: main
14:04:12:     keyint: 50
14:04:12:     CBR: no
14:04:12:     CFR: no
14:04:12:     max bitrate: 950
14:04:12:     buffer size: 900
14:04:12:     quality: 4
14:04:12: ------------------------------------------
14:04:12: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 768000, samples per sec is 96000
14:04:12: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
14:07:44: Total frames encoded: 5151, total frames duplicated: 5114 (99.28%)
14:07:46: Total frames rendered: 53, number of late frames: 18 (33.96%) (it's okay for some frames to be late)
14:07:46: 
14:07:46: Profiler time results:
14:07:46: 
14:07:46: ==============================================================
14:07:46: video thread frame - [100%] [avg time: 4015.91 ms] [children: 100%] [unaccounted: 0.0353%]
14:07:46: | scene->Preprocess - [100%] [avg time: 4014.31 ms]
14:07:46: | GPU download and conversion - [0.00448%] [avg time: 0.18 ms] [children: 0.00356%] [unaccounted: 0.000921%]
14:07:46: | | flush - [0.00209%] [avg time: 0.084 ms]
14:07:46: | | CopyResource - [0.000623%] [avg time: 0.025 ms]
14:07:46: | | conversion to 4:2:0 - [0.000847%] [avg time: 0.034 ms]
14:07:46: Convert444Threads - [100%] [avg time: 0.297 ms] [children: 99%] [unaccounted: 1.01%]
14:07:46: | Convert444toNV12 - [99%] [avg time: 0.294 ms]
14:07:46: encoder thread frame - [100%] [avg time: 0.643 ms]
14:07:46: ==============================================================
14:07:46: 
14:07:46: 
14:07:46: Profiler CPU results:
14:07:46: 
14:07:46: ==============================================================
14:07:46: video thread frame - [cpu time: avg 9.124 ms, total 483.603 ms] [avg calls per frame: 1]
14:07:46: | scene->Preprocess - [cpu time: avg 7.947 ms, total 421.203 ms] [avg calls per frame: 1]
14:07:46: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:07:46: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:07:46: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:07:46: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:07:46: Convert444Threads - [cpu time: avg 0.152 ms, total 15.6 ms] [avg calls per frame: 2]
14:07:46: | Convert444toNV12 - [cpu time: avg 0.152 ms, total 15.6 ms] [avg calls per frame: 2]
14:07:46: encoder thread frame - [cpu time: avg 0.078 ms, total 405.602 ms] [avg calls per frame: 1]
14:07:46: ==============================================================
14:07:46: 
14:07:46: =====Stream End: 2014-01-04, 14:07:46=================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
14:07:46: | scene->Preprocess - [100%] [avg time: 4014.31 ms]

*blinks*

...

*blinks, reads again*

...Is this real life?

Okay, all joking aside, that is.. not normal. In fact, that's never happened before and that should be impossible for your system. Although I did just notice something else: preset: medium

Change your preset back to veryfast.
 

xevious92

New Member
Well what do you know; after restarting my computer (I rarely shut it off as I often put it in sleep mode or leave it idle), I have slightly better results, but the problem still persists. It starts off at 25 frames, but periodically it will slow down drastically and drop to 1-2 frames, and then speed up again back to 25. It will keep oscillating between these two situations. Here's a log from a stream test with a preset of very fast. *Note that on a preset of medium it had similar if not nearly identical results.

Code:
01:54:24: Open Broadcaster Software v0.592b - 32bit (´・ω・`)
01:54:24: -------------------------------
01:54:24: CPU Name: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
01:54:24: CPU Speed: 3392MHz
01:54:24: Physical Memory:  4095MB Total, 4095MB Free
01:54:24: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
01:54:24: monitor 1: pos={1920, 0}, size={1920, 1080}
01:54:24: monitor 2: pos={0, 0}, size={1920, 1080}
01:54:24: Windows Version: 6.1 Build 7601 S
01:54:24: Aero is Enabled
01:54:24: -------------------------------
01:54:24: OBS Modules:
01:54:24: Base Address     Module
01:54:24: 010C0000         OBS.exe
01:54:24: 69160000         OBSApi.dll
01:54:24: 73B10000         DShowPlugin.dll
01:54:24: 709E0000         GraphicsCapture.dll
01:54:24: 709A0000         NoiseGate.dll
01:54:24: 69430000         PSVPlugin.dll
01:54:24: ------------------------------------------
01:54:24: Adapter 1
01:54:24:   Video Adapter: NVIDIA GeForce GTX 770
01:54:24:   Video Adapter Dedicated Video Memory: 2087387136
01:54:24:   Video Adapter Shared System Memory: 2147807232
01:54:24:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
01:54:24:   Video Adapter Output 2: pos={1920, 0}, size={1920, 1080}, attached=true
01:54:24: ------------------------------------------
01:54:24: Adapter 2
01:54:24:   Video Adapter: Intel(R) HD Graphics 4600
01:54:24:   Video Adapter Dedicated Video Memory: 67108864
01:54:24:   Video Adapter Shared System Memory: 1711276032
01:54:24: =====Stream Start: 2014-01-05, 01:54:24===============================================
01:54:24:   Multithreaded optimizations: On
01:54:24:   Base resolution: 1920x1080
01:54:24:   Output resolution: 1096x616
01:54:24: ------------------------------------------
01:54:24: Loading up D3D10 on NVIDIA GeForce GTX 770 (Adapter 1)...
01:54:24: ------------------------------------------
01:54:24: Audio Format: 44100hz
01:54:24: Playback device Default
01:54:24: ------------------------------------------
01:54:24: Using desktop audio input: Speakers (Realtek High Definition Audio)
01:54:24: ------------------------------------------
01:54:24: Using auxilary audio input: Microphone (Realtek High Definition Audio)
01:54:24: ------------------------------------------
01:54:24: Audio Encoding: MP3
01:54:24:     bitrate: 112
01:54:24: Using bitmap image
01:54:24: Using Window Capture
01:54:24: Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 5
01:54:24: Scene buffering time set to 100
01:54:24: ------------------------------------------
01:54:24: Video Encoding: x264
01:54:24:     fps: 25
01:54:24:     width: 1096, height: 616
01:54:24:     preset: veryfast
01:54:24:     profile: main
01:54:24:     keyint: 50
01:54:24:     CBR: no
01:54:24:     CFR: no
01:54:24:     max bitrate: 950
01:54:24:     buffer size: 900
01:54:24:     quality: 4
01:54:24: ------------------------------------------
01:54:24: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 768000, samples per sec is 96000
01:54:24: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
01:54:27: Using Window Capture
02:01:30: Total frames encoded: 10657, total frames duplicated: 7694 (72.20%)
02:01:30: Total frames rendered: 3557, number of late frames: 314 (8.83%) (it's okay for some frames to be late)
02:01:30: 
02:01:30: Profiler time results:
02:01:30: 
02:01:30: ==============================================================
02:01:30: video thread frame - [100%] [avg time: 91.892 ms] [children: 99.5%] [unaccounted: 0.453%]
02:01:30: | scene->Preprocess - [99.5%] [avg time: 91.406 ms]
02:01:30: | GPU download and conversion - [0.0762%] [avg time: 0.07 ms] [children: 0.0588%] [unaccounted: 0.0174%]
02:01:30: | | flush - [0.0261%] [avg time: 0.024 ms]
02:01:30: | | CopyResource - [0.0207%] [avg time: 0.019 ms]
02:01:30: | | conversion to 4:2:0 - [0.012%] [avg time: 0.011 ms]
02:01:30: Convert444Threads - [100%] [avg time: 0.289 ms] [children: 98.6%] [unaccounted: 1.38%]
02:01:30: | Convert444toNV12 - [98.6%] [avg time: 0.285 ms]
02:01:30: encoder thread frame - [100%] [avg time: 0.697 ms]
02:01:30: ==============================================================
02:01:30: 
02:01:30: 
02:01:30: Profiler CPU results:
02:01:30: 
02:01:30: ==============================================================
02:01:30: video thread frame - [cpu time: avg 0.723 ms, total 2574.02 ms] [avg calls per frame: 1]
02:01:30: | scene->Preprocess - [cpu time: avg 0.307 ms, total 1092.01 ms] [avg calls per frame: 1]
02:01:30: | GPU download and conversion - [cpu time: avg 0.043 ms, total 156.001 ms] [avg calls per frame: 1]
02:01:30: | | flush - [cpu time: avg 0.008 ms, total 31.2 ms] [avg calls per frame: 1]
02:01:30: | | CopyResource - [cpu time: avg 0.03 ms, total 109.201 ms] [avg calls per frame: 1]
02:01:30: | | conversion to 4:2:0 - [cpu time: avg 0.004 ms, total 15.6 ms] [avg calls per frame: 1]
02:01:30: Convert444Threads - [cpu time: avg 0.287 ms, total 2043.61 ms] [avg calls per frame: 2]
02:01:30: | Convert444toNV12 - [cpu time: avg 0.287 ms, total 2043.61 ms] [avg calls per frame: 2]
02:01:30: encoder thread frame - [cpu time: avg 0.027 ms, total 296.402 ms] [avg calls per frame: 1]
02:01:30: ==============================================================
02:01:30: 
02:01:30: =====Stream End: 2014-01-05, 02:01:30=================================================

Here is a link to a video I uploaded depicting the problem. The monitor on the left shows the game, the monitor on the right is the stream preview of OBS. Notice that the actual game maintains smooth framerate all throughout, while the stream preview drops framerates heavily at certain angles or moments.

http://www.youtube.com/watch?v=jgigW4_qsww&feature=youtu.be


Update:
I think I have solved the problem; I used the NVIDIA Control Panel and turned on Vsync and Triple Buffering for the game. Now Window Capture with Aero enabled streams fine with no framerate hits, I will keep this thread posted if I run into another problem.
 

Krazy

Town drunk
Can you look at your latest log to see if the scene->Preprocess line is normal? Normal for your system would be like...less than 1ms
 

xevious92

New Member
Here is the log from my latest stream. When you say scene->Preprocess, are you referring to the line under profiler time or Profiler CPU?

Code:
04:55:02: Settings::Video: Enabling Aero
04:56:44: =====Stream Start: 2014-01-05, 04:56:44===============================================
04:56:44:   Multithreaded optimizations: On
04:56:44:   Base resolution: 1920x1080
04:56:44:   Output resolution: 852x480
04:56:44: ------------------------------------------
04:56:44: Loading up D3D10 on NVIDIA GeForce GTX 770 (Adapter 1)...
04:56:44: ------------------------------------------
04:56:44: Audio Format: 44100hz
04:56:44: Playback device Default
04:56:44: ------------------------------------------
04:56:44: Using desktop audio input: Speakers (Realtek High Definition Audio)
04:56:44: ------------------------------------------
04:56:44: Using auxilary audio input: Microphone (Realtek High Definition Audio)
04:56:44: ------------------------------------------
04:56:44: Audio Encoding: MP3
04:56:44:     bitrate: 112
04:56:44: Using text output
04:56:44: Using bitmap image
04:56:44: Using Window Capture
04:56:44: Using Window Capture
04:56:44: Scene buffering time set to 100
04:56:44: ------------------------------------------
04:56:44: Video Encoding: x264
04:56:44:     fps: 25
04:56:44:     width: 852, height: 480
04:56:44:     preset: medium
04:56:44:     profile: main
04:56:44:     keyint: 50
04:56:44:     CBR: no
04:56:44:     CFR: no
04:56:44:     max bitrate: 800
04:56:44:     buffer size: 750
04:56:44:     quality: 4
04:56:44: ------------------------------------------
04:56:44: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 768000, samples per sec is 96000
04:56:44: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
04:56:46:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
04:56:47: Completed handshake with rtmp://live-jfk.twitch.tv/app in 205 ms.
04:56:47: SO_SNDBUF was at 8192
04:56:47: SO_SNDBUF is now 65536
04:56:50: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 131072)
05:14:09: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 131072)
07:00:23: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
07:00:23:   New Scene
07:00:23: Using text output
07:00:28: Total frames encoded: 185605, total frames duplicated: 11469 (6.18%)
07:00:28: Total frames rendered: 180715, number of late frames: 469 (0.26%) (it's okay for some frames to be late)
07:00:29: RTMPPublisher::SocketLoop: Aborting due to WSAEnumNetworkEvents failure, 10038
07:00:29: Average send payload: 3787 bytes, average send interval: 36 ms
07:00:29: Number of times waited to send: 0, Waited for a total of 0 bytes
07:00:29: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
07:00:29: Number of bytes sent: 761859429
07:00:29: 
07:00:29: Profiler time results:
07:00:29: 
07:00:29: ==============================================================
07:00:29: video thread frame - [100%] [avg time: 8 ms] [children: 93.3%] [unaccounted: 6.69%]
07:00:29: | scene->Preprocess - [92%] [avg time: 7.357 ms]
07:00:29: | GPU download and conversion - [1.35%] [avg time: 0.108 ms] [children: 1.04%] [unaccounted: 0.313%]
07:00:29: | | flush - [0.663%] [avg time: 0.053 ms]
07:00:29: | | CopyResource - [0.35%] [avg time: 0.028 ms]
07:00:29: | | conversion to 4:2:0 - [0.025%] [avg time: 0.002 ms]
07:00:29: Convert444Threads - [100%] [avg time: 0.175 ms] [children: 97.7%] [unaccounted: 2.29%]
07:00:29: | Convert444toNV12 - [97.7%] [avg time: 0.171 ms]
07:00:29: encoder thread frame - [100%] [avg time: 0.416 ms]
07:00:29: ==============================================================
07:00:29: 
07:00:29: 
07:00:29: Profiler CPU results:
07:00:29: 
07:00:29: ==============================================================
07:00:29: video thread frame - [cpu time: avg 0.682 ms, total 123334 ms] [avg calls per frame: 1]
07:00:29: | scene->Preprocess - [cpu time: avg 0.123 ms, total 22401.8 ms] [avg calls per frame: 1]
07:00:29: | GPU download and conversion - [cpu time: avg 0.078 ms, total 14274.1 ms] [avg calls per frame: 1]
07:00:29: | | flush - [cpu time: avg 0.035 ms, total 6505.24 ms] [avg calls per frame: 1]
07:00:29: | | CopyResource - [cpu time: avg 0.022 ms, total 4024.83 ms] [avg calls per frame: 1]
07:00:29: | | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 421.203 ms] [avg calls per frame: 1]
07:00:29: Convert444Threads - [cpu time: avg 0.182 ms, total 65972.8 ms] [avg calls per frame: 2]
07:00:29: | Convert444toNV12 - [cpu time: avg 0.181 ms, total 65442.4 ms] [avg calls per frame: 2]
07:00:29: encoder thread frame - [cpu time: avg 0.002 ms, total 499.202 ms] [avg calls per frame: 1]
07:00:29: ==============================================================
07:00:29: 
07:00:29: =====Stream End: 2014-01-05, 07:00:29=================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Yes, that is the line we're referring to. Your latest log looks much better.
 
Top