Question / Help Stream flashes green when streaming a video on MPC-HC.

danbooru

New Member
Whenever I stream any video on MPC-HC with Game Capture, my stream video and preview video on obs flashes green randomly at a very high rate. Changing my encoding and video settings do not fix this issue. I have tried reinstalling, and the issue persisted.

Here's a VOD of what happens when I stream:
http://www.twitch.tv/kimchiboi/b/499836210

Here is my log of that VOD:
Code:
18:15:51: Open Broadcaster Software v0.592b - 32bit (´・ω・`)
18:15:51: -------------------------------
18:15:51: CPU Name: AMD Phenom(tm) II X4 965 Processor
18:15:51: CPU Speed: 3400MHz
18:15:51: Physical Memory:  4095MB Total, 4095MB Free
18:15:51: stepping id: 3, model 4, family 16, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, total cores 4
18:15:51: monitor 1: pos={-1920, 0}, size={1920, 1080}
18:15:51: monitor 2: pos={0, 0}, size={1920, 1080}
18:15:51: Windows Version: 6.1 Build 7601 S
18:15:51: Aero is Enabled
18:15:51: -------------------------------
18:15:51: OBS Modules:
18:15:51: Base Address     Module
18:15:51: 00980000         OBS.exe
18:15:51: 68690000         OBSApi.dll
18:15:51: 690C0000         DShowPlugin.dll
18:15:51: 6C070000         GraphicsCapture.dll
18:15:51: 6C050000         NoiseGate.dll
18:15:51: 690A0000         PSVPlugin.dll
18:15:51: ------------------------------------------
18:15:51: Adapter 1
18:15:51:   Video Adapter: AMD Radeon HD 7800 Series
18:15:51:   Video Adapter Dedicated Video Memory: 2128793600
18:15:51:   Video Adapter Shared System Memory: 2166108160
18:15:51:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
18:15:51:   Video Adapter Output 2: pos={-1920, 0}, size={1920, 1080}, attached=true
18:15:51: =====Stream Start: 2014-01-31, 18:15:51===============================================
18:15:51:   Multithreaded optimizations: On
18:15:51:   Base resolution: 1920x1080
18:15:51:   Output resolution: 852x480
18:15:51: ------------------------------------------
18:15:51: Loading up D3D10 on AMD Radeon HD 7800 Series (Adapter 1)...
18:15:51: ------------------------------------------
18:15:51: Audio Format: 44100hz
18:15:51: Playback device Default
18:15:51: ------------------------------------------
18:15:51: Using desktop audio input: Speakers (VIA High Definition Audio)
18:15:51: ------------------------------------------
18:15:51: Audio Encoding: AAC
18:15:51:     bitrate: 128
18:15:51: Using graphics capture
18:15:51: Scene buffering time set to 400
18:15:51: ------------------------------------------
18:15:51: Video Encoding: x264
18:15:51:     fps: 60
18:15:51:     width: 852, height: 480
18:15:51:     preset: veryfast
18:15:51:     profile: high
18:15:51:     keyint: 120
18:15:51:     CBR: yes
18:15:51:     CFR: yes
18:15:51:     max bitrate: 3500
18:15:51:     buffer size: 3500
18:15:51: ------------------------------------------
18:15:51: MMDeviceAudioSource: Frequency for device 'Speakers (VIA High Definition Audio)' is 384000, samples per sec is 48000
18:15:53: Using RTMP service: Twitch / Justin.tv
18:15:53:   Server selection: rtmp://live.justin.tv/app
18:15:53:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
18:15:53: Completed handshake with rtmp://live.justin.tv/app in 90 ms.
18:15:53: SO_SNDBUF was at 8192
18:15:53: SO_SNDBUF is now 65536
18:15:56: SharedTexCapture hooked
18:16:00: Capture window 0x00082458 invalid or changing, terminating capture
18:16:04: SharedTexCapture hooked
18:16:05: GraphicsCaptureSource::NewCapture:  eliminating old capture
18:16:05: SharedTexCapture hooked
18:16:28: Total frames encoded: 2201, total frames duplicated: 67 (3.04%)
18:16:28: Total frames rendered: 2204, number of late frames: 10 (0.45%) (it's okay for some frames to be late)
18:16:28: RTMPPublisher::SocketLoop: Aborting due to WSAEnumNetworkEvents failure, 10038
18:16:29: Average send payload: 7482 bytes, average send interval: 16 ms
18:16:29: Number of times waited to send: 0, Waited for a total of 0 bytes
18:16:29: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:16:29: Number of bytes sent: 15975747
18:16:29: 
18:16:29: Profiler time results:
18:16:29: 
18:16:29: ==============================================================
18:16:29: video thread frame - [100%] [avg time: 0.904 ms] [children: 33.6%] [unaccounted: 66.4%]
18:16:29: | scene->Preprocess - [0.111%] [avg time: 0.001 ms]
18:16:29: | GPU download and conversion - [33.5%] [avg time: 0.303 ms] [children: 25.3%] [unaccounted: 8.19%]
18:16:29: | | flush - [20%] [avg time: 0.181 ms]
18:16:29: | | CopyResource - [4.76%] [avg time: 0.043 ms]
18:16:29: | | conversion to 4:2:0 - [0.553%] [avg time: 0.005 ms]
18:16:29: Convert444Threads - [100%] [avg time: 0.382 ms] [children: 97.6%] [unaccounted: 2.36%]
18:16:29: | Convert444toNV12 - [97.6%] [avg time: 0.373 ms]
18:16:29: encoder thread frame - [100%] [avg time: 0.866 ms]
18:16:29: ==============================================================
18:16:29: 
18:16:29: 
18:16:29: Profiler CPU results:
18:16:29: 
18:16:29: ==============================================================
18:16:29: video thread frame - [cpu time: avg 0.268 ms, total 592.802 ms] [avg calls per frame: 1]
18:16:29: | scene->Preprocess - [cpu time: avg 0.007 ms, total 15.6 ms] [avg calls per frame: 1]
18:16:29: | GPU download and conversion - [cpu time: avg 0.099 ms, total 218.4 ms] [avg calls per frame: 1]
18:16:29: | | flush - [cpu time: avg 0.063 ms, total 140.4 ms] [avg calls per frame: 1]
18:16:29: | | CopyResource - [cpu time: avg 0.014 ms, total 31.2 ms] [avg calls per frame: 1]
18:16:29: | | conversion to 4:2:0 - [cpu time: avg 0.007 ms, total 15.6 ms] [avg calls per frame: 1]
18:16:29: Convert444Threads - [cpu time: avg 0.305 ms, total 1326.01 ms] [avg calls per frame: 2]
18:16:29: | Convert444toNV12 - [cpu time: avg 0.301 ms, total 1310.41 ms] [avg calls per frame: 2]
18:16:29: encoder thread frame - [cpu time: avg 0.465 ms, total 1014.01 ms] [avg calls per frame: 1]
18:16:29: ==============================================================
18:16:29: 
18:16:29: =====Stream End: 2014-01-31, 18:16:29=================================================


Last game capture log:
2014-01-31, 18:16:04: we're booting up: 
18:16:04: CaptureThread: attached to process mpc-hc.exe
18:16:04: D3D9 Present
18:16:04: D3D9EndScene called
18:16:04: D3DPRESENT_PARAMETERS {
18:16:04: 	BackBufferWidth: 1280
18:16:04: 	BackBufferHeight: 720
18:16:04: 	BackBufferFormat: D3DFMT_X8R8G8B8
18:16:04: 	BackBufferCount: 4
18:16:04: 	MultiSampleType: D3DMULTISAMPLE_NONE
18:16:04: 	MultiSampleQuality: 0
18:16:04: 	SwapEffect: D3DSWAPEFFECT_FLIPEX
18:16:04: 	hDeviceWindow: 795250
18:16:04: 	Windowed: true
18:16:04: 	EnableAutoDepthStencil: false
18:16:04: 	AutoDepthStencilFormat: D3DFMT_UNKNOWN
18:16:04: 	Flags: None
18:16:04: 	FullScreen_RefreshRateInHz: 0
18:16:04: 	PresentationInterval: 1
18:16:04: };
18:16:04: successfully set up d3d9 hooks
18:16:04: D3D9Present called
18:16:04: DoD3D9GPUHook: success - d3d9ex
18:16:04: D3DSURFACE_DESC {
18:16:04: 	Format: D3DFMT_A8R8G8B8
18:16:04: 	Type: D3DRTYPE_SURFACE
18:16:04: 	Usage: D3DUSAGE_RENDERTARGET 
18:16:04: 	Pool: D3DPOOL_DEFAULT
18:16:04: 	MultiSampleType: D3DMULTISAMPLE_NONE
18:16:04: 	MultiSampleQuality: 0
18:16:04: 	Width: 1280
18:16:04: 	Height: 720
18:16:04: };
18:16:04: successfully capturing d3d9 frames via GPU
18:16:04: NV Capture available
18:16:04: FBO available
18:16:04: GL Present
18:16:04: (half life scientist) everything..  seems to be in order
18:16:05: D3D9ResetEx called
18:16:05: ---------------------- Cleared D3D9 Capture ----------------------
18:16:05: D3DPRESENT_PARAMETERS {
18:16:05: 	BackBufferWidth: 1920
18:16:05: 	BackBufferHeight: 1080
18:16:05: 	BackBufferFormat: D3DFMT_X8R8G8B8
18:16:05: 	BackBufferCount: 4
18:16:05: 	MultiSampleType: D3DMULTISAMPLE_NONE
18:16:05: 	MultiSampleQuality: 0
18:16:05: 	SwapEffect: D3DSWAPEFFECT_FLIPEX
18:16:05: 	hDeviceWindow: 795250
18:16:05: 	Windowed: true
18:16:05: 	EnableAutoDepthStencil: false
18:16:05: 	AutoDepthStencilFormat: D3DFMT_UNKNOWN
18:16:05: 	Flags: None
18:16:05: 	FullScreen_RefreshRateInHz: 0
18:16:05: 	PresentationInterval: 1
18:16:05: };
18:16:05: successfully set up d3d9 hooks
18:16:05: D3D9EndScene called
18:16:05: D3D9Present called
18:16:05: DoD3D9GPUHook: success - d3d9ex
18:16:05: D3DSURFACE_DESC {
18:16:05: 	Format: D3DFMT_A8R8G8B8
18:16:05: 	Type: D3DRTYPE_SURFACE
18:16:05: 	Usage: D3DUSAGE_RENDERTARGET 
18:16:05: 	Pool: D3DPOOL_DEFAULT
18:16:05: 	MultiSampleType: D3DMULTISAMPLE_NONE
18:16:05: 	MultiSampleQuality: 0
18:16:05: 	Width: 1920
18:16:05: 	Height: 1080
18:16:05: };
18:16:05: successfully capturing d3d9 frames via GPU
18:16:28: ---------------------- Cleared D3D9 Capture ----------------------
18:16:28: D3D9EndScene called
18:16:28: D3D9Present called
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Okay, please forgive me if this is a bit harsh, but you chose a seriously bad video to really give an example of that particular problem. Could you try making an example with something with a little bit more calm imagery?
 

Boildown

Active Member
I don't see a problem with that VOD.

Well other than Twitch might be pissed that its not a game, not that they'll catch it.
 

danbooru

New Member
Boildown said:
I don't see a problem with that VOD.

Well other than Twitch might be pissed that its not a game, not that they'll catch it.
I just updated VOD with a video that shows the problem more clearly.
I've been doing this for a while for a friend, so let's hope that they don't.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I see the issue now, thanks for the video. Hm, though now that I see it, not entirely sure what's going on. You might have to use a different means of capture, or perhaps try vlc instead for the time being. I'll probably have to investigate MPC at some point.
 

R1CH

Forum Admin
Developer
MPC-HC is not a game, trying to use game capture with it is asking for problems.
 

danbooru

New Member
Jim said:
I see the issue now, thanks for the video. Hm, though now that I see it, not entirely sure what's going on. You might have to use a different means of capture, or perhaps try vlc instead for the time being. I'll probably have to investigate MPC at some point.
Thank you

R1CH said:
MPC-HC is not a game, trying to use game capture with it is asking for problems.
Which capture should I be using? Using window capture only shows a black screen and monitor capture doesn't stream at a stable framerate.
 

R1CH

Forum Admin
Developer
You should avoid capturing media players as generally they will use hardware overlays or other acceleration that makes capture difficult or impossible. If you want to stream a video, use the video source plugin.
 

danbooru

New Member
R1CH said:
You should avoid capturing media players as generally they will use hardware overlays or other acceleration that makes capture difficult or impossible. If you want to stream a video, use the video source plugin.
Thank you for your help.
 
Top