Question / Help Video Freezes Completely

flavored

Member
Hello,

I've been trying to stream/test some Bureau: XCOM Declassified (which doesn't have windowed fullscreen mode, unfortunately, so I'm using fullscreen) just now with 0.56.04 madness but for whatever reason once I get ingame video (not just game, but the scene as a whole) just stops. The issue is illustrated in this clip: http://youtu.be/-YJElTN1K5I

Played around with CFR, CBR, Framerate number, Bitrate number, buffer - nothing helped so far. Other fullscreen games normally get captured just fine.

Any advice on how to combat this so I could expand my understanding is greatly appreciated!

Thank you.

Log:
Code:
16:10:29=================================================
16:11:30: =====Stream Start: 2013-09-20, 16:11:30===============================================
16:11:30:   Multithreaded optimizations: On
16:11:30:   Base resolution: 1920x1080
16:11:30:   Output resolution: 1280x720
16:11:30: ------------------------------------------
16:11:30: Loading up D3D10 on AMD Radeon HD 6900 Series...
16:11:30: ------------------------------------------
16:11:30: Audio Format: 44100hz
16:11:30: Playback device Default
16:11:30: ------------------------------------------
16:11:30: Using desktop audio input: Speakers (High Definition Audio Device)
16:11:30: ------------------------------------------
16:11:30: Using auxilary audio input: Microphone (High Definition Audio Device)
16:11:30: ------------------------------------------
16:11:30: Audio Encoding: AAC
16:11:30:     bitrate: 320
16:11:30: Using text output
16:11:30: Using text output
16:11:30: Using text output
16:11:30: Using bitmap image
16:11:30: ------------------------------------------
16:11:30:     device: AVerMedia HD Capture,
16:11:30:     device id \\?\pci#ven_1a0a&dev_6202&subsys_620c1461&rev_01#6&1089e960&0&00100018#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{ede957b0-eaa5-4bf4-acf3-6e10cb4836c3},
16:11:30:     chosen type: UYVY, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333667-333667, fourCC: 'UYVY'
16:11:30:     audio device: Disable,
16:11:30:     audio device id Disabled,
16:11:30: 
16:11:30: Using directshow input
16:11:30: Using custom x264 settings: "opencl=true"
16:11:30: ------------------------------------------
16:11:30: Video Encoding: x264
16:11:30:     fps: 30
16:11:30:     width: 1280, height: 720
16:11:30:     preset: veryfast
16:11:30:     CBR: yes
16:11:30:     CFR: yes
16:11:30:     max bitrate: 8000
16:11:30:     buffer size: 8000
16:11:30: ------------------------------------------
16:11:30: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 1536000, samples per sec is 192000
16:11:30: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 1536000, samples per sec is 192000
16:11:30: 
16:11:30: Profiler result for the last frame:
16:11:30: ==============================================================
16:11:30: video thread frame - [time: 13.3 ms (cpu time: 0 ms)]
16:11:30: | frame preprocessing and rendering - [time: 13.294 ms (cpu time: 0 ms)]
16:11:30: | | scene->Preprocess - [time: 9.32 ms (cpu time: 0 ms)]
16:11:30: | GPU download and color conversion - [time: 0.003 ms (cpu time: 0 ms)]
16:11:30: | | flush - [time: 0.002 ms (cpu time: 0 ms)]
16:11:30: ==============================================================
16:11:30: 
16:13:24: Total frames encoded: 3369, total frames duplicated: 2113 (62.72%)
16:13:24: Number of frames skipped due to encoder lag: 2075 (61.59%)
16:13:24: Total frames rendered: 1293, number of late frames: 35 (2.71%) (it's okay for some frames to be late)
16:13:25: 
16:13:25: Profiler results:
16:13:25: 
16:13:25: ==============================================================
16:13:25: video thread frame - [100%] [avg time: 3.483 ms (cpu time: avg 2.002 ms, total 2589.62 ms)] [avg calls per frame: 1] [children: 99.9%] [unaccounted: 0.115%]
16:13:25: | frame preprocessing and rendering - [88%] [avg time: 3.064 ms (cpu time: avg 1.942 ms, total 2511.62 ms)] [avg calls per frame: 1] [children: 75.9%] [unaccounted: 12.1%]
16:13:25: | | scene->Preprocess - [75.9%] [avg time: 2.642 ms (cpu time: avg 1.833 ms, total 2371.22 ms)] [avg calls per frame: 1]
16:13:25: | GPU download and color conversion - [11.9%] [avg time: 0.415 ms (cpu time: avg 0.048 ms, total 62.4 ms)] [avg calls per frame: 1] [children: 6.46%] [unaccounted: 5.46%]
16:13:25: | | flush - [5.94%] [avg time: 0.207 ms (cpu time: avg 0.036 ms, total 46.8 ms)] [avg calls per frame: 1]
16:13:25: | | CopyResource - [0.258%] [avg time: 0.009 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
16:13:25: | | conversion to 4:2:0 - [0.258%] [avg time: 0.009 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
16:13:25: Convert444Threads - [100%] [avg time: 0.39 ms (cpu time: avg 0.633 ms, total 1575.61 ms)] [avg calls per frame: 2] [children: 99%] [unaccounted: 1.03%]
16:13:25: | Convert444toNV12 - [99%] [avg time: 0.386 ms (cpu time: avg 0.633 ms, total 1575.61 ms)] [avg calls per frame: 2]
16:13:25: encoder thread frame - [100%] [avg time: 22.111 ms (cpu time: avg 0.525 ms, total 1747.21 ms)] [avg calls per frame: 1]
16:13:25: ==============================================================
16:13:25: 
16:13:25: =====Stream End: 2013-09-20, 16:13:25=================================================
16:22:58: CLR host plugin instance deleted; removing dynamically loaded localization strings
16:22:58: Server Ping plugin instance deleted; removing dynamically loaded localization strings
16:22:59: Memory Leaks Were Detected.
16:22:59:
 

R1CH

Forum Admin
Developer
Notice the "Number of frames skipped due to encoder lag: 2075 (61.59%)" - your game is most likely using all the GPU, so x264 isn't able to get enough GPU time for the opencl lookahead. Try disabling it. If possible try to limit the FPS in your game too as OBS will not perform well if the GPU is always maxed out. Also when posting a log, try to post the full log since that includes your CPU info and other useful stuff.
 

flavored

Member
R1CH said:
Notice the "Number of frames skipped due to encoder lag: 2075 (61.59%)" - your game is most likely using all the GPU, so x264 isn't able to get enough GPU time for the opencl lookahead. Try disabling it. If possible try to limit the FPS in your game too as OBS will not perform well if the GPU is always maxed out. Also when posting a log, try to post the full log since that includes your CPU info and other useful stuff.

Not using opencl in this case solved the problem, thanks a lot :)
 
Top