Question / Help Diablo III and Twitch

Grumbul

Member
Hi all,

Bit of a bind here that I hope someone can shed some light on. Kind of a chicken and egg situation.

I've been having a lot of problems recently streaming Diablo III on Twitch. Everything is fine until around 30 minutes or 1 hour into a stream.

What happens is I hear a little ching in the background and the stream is cut off. I get an Error 3007 on my Diablo screen and I get a "disconnected by server" on the OBS pop up window.

So...is this a problem with Diablo III and my connection to Blizzard which just so happens to disconnect me from Twitch simultaneously, or is this an issue with Twitch/OBS.

I have no idea myself but it has been happening very consistently recently.

Any advice/tips much appreciated.
 

R1CH

Forum Admin
Developer
Sounds like your internet is dropping briefly. Maybe try without any 3rd party firewall / router / etc to minimize potential network disruption.
 

Grumbul

Member
Thanks for the feedback R1CH.

Just tested a few things and the only common factor is Diablo III. Any other games are fine.

Why would OBS disconnect from Twitch if I get disconnected from the Blizzard servers though?
 

R1CH

Forum Admin
Developer
When you lose connectivity you will disconnect from everything. This most likely is a router problem.
 

Grumbul

Member
But that is my point R1CH. This does not happen on any other game that I am streaming. I can stream anything else constantly but as soon as I start playing Diablo III if I lose connection to the Blizzard servers (which lets face it is probably the problem here) why does OBS simultaneously disconnect from Twitch -the client is still running, I just have to reconnect to Blizzard.

If I was having connection issues then I'd be disconnecting from Twitch all the time as well.
 

R1CH

Forum Admin
Developer
You are losing all connectivity which is why both D3 and OBS disconnect at the same time. Most likely your router is resetting or dropping due to the stress of D3 + Streaming.
 

Grumbul

Member
I don't think you are understanding the issue here R1CH.

I do not disconnect from Twitch streaming any other game. If I was disconnecting then I'd be losing my Twitch connection on other games.

This only happens when streaming Diablo. Why would OBS disconnect me from Twitch just because I lose the Blizzard connection - the Diablo client is still running.

Something does not add up here.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Hm, could you post a log file if possible? Would be interesting to see some details about your computer at least. You're right in that this definitely doesn't add up if it -only- happens for diablo 3. Though it depends on the other games you've tested it with, and what they all do network-wise. I'd have to compare and see what's going on. Streaming uses a lot of bandwidth and a requires lot of QoS scheduling so what R1CH is saying isn't necessarily incorrect, he's probably one of the most knowledgeable people when it comes to networking, and he's been testing the network code very rigorously under various circumstances lately without any real issues.

I'd like to know what network adapter you're using, and would like to know the router too. I'm also curious as to whether any network settings change anything, or, if possible, could you try "minimize network impact" in broadcast settings to see if that affects anything? I would definitely like to help you root out what's going on here.
 

Grumbul

Member
Hi both and first of all my apologies if that came across in any way as non-appreciative.

I've just re-read my own post and that probably did not come across quite as thankful as it should have done - certainly not my intention let me assure you.

To answer some of your questions Jim:

Code:
======================================================
16:53:38: Open Broadcaster Software v0.554b - 64bit ( ^ω^)
16:53:38: -------------------------------
16:53:38: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
16:53:38: CPU Speed: 3400MHz
16:53:38: Physical Memory:  8138MB Total, 5932MB Free
16:53:38: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
16:53:38: monitor 1: pos={0, 0}, size={1920, 1080}
16:53:38: Windows Version: 6.1 Build 7601 S
16:53:38: Aero is Enabled
16:53:38: -------------------------------
16:53:38: OBS Modules:
16:53:38: Base Address     Module
16:53:38: 000000003F180000 OBS.exe
16:53:38: 00000000EF040000 OBSApi.dll
16:53:38: 00000000F9D40000 DShowPlugin.dll
16:53:38: 00000000F9D10000 GraphicsCapture.dll
16:53:38: 00000000F9CF0000 NoiseGate.dll
16:53:38: 00000000F9760000 PSVPlugin.dll
16:53:38: ------------------------------------------
16:53:38: Adapter 1
16:53:38:   Video Adapter: NVIDIA GeForce GTX 780
16:53:38:   Video Adapter Dedicated Video Memory: 3140157440
16:53:38:   Video Adapter Shared System Memory: 3998703616
16:53:38: =====Stream Start: 2013-09-09, 16:53:38===============================================
16:53:38:   Multithreaded optimizations: On
16:53:38:   Base resolution: 1920x1080
16:53:38:   Output resolution: 1280x720
16:53:38: ------------------------------------------
16:53:38: Loading up D3D10 on NVIDIA GeForce GTX 780...
16:53:38: C:/Users/Grumbul/AppData/Roaming/OBS/shaderCache/shaders/DrawTexture.pShader.blob
16:53:38: C:/Users/Grumbul/AppData/Roaming/OBS/shaderCache/shaders/DrawSolid.pShader.blob
16:53:38: C:/Users/Grumbul/AppData/Roaming/OBS/shaderCache/shaders/DownscaleBilinear1YUV.pShader.blob
16:53:38: Playback device {0.0.0.00000000}.{524951ea-f95e-4b20-a572-c45f5029f245}
16:53:38: ------------------------------------------
16:53:38: Using desktop audio input: Speaker (Sound Blaster Recon3D)
16:53:39: ------------------------------------------
16:53:39: Using auxilary audio input: Microphone (Sound Blaster Recon3D)
16:53:39: ------------------------------------------
16:53:39: Audio Encoding: AAC
16:53:39:     bitrate: 128
16:53:39: Using graphics capture
16:53:39: C:/Users/Grumbul/AppData/Roaming/OBS/shaderCache/shaders/DrawTexture_ColorAdjust.pShader.blob
16:53:39: ------------------------------------------
16:53:39: Video Encoding: x264
16:53:39:     fps: 60
16:53:39:     width: 1280, height: 720
16:53:39:     preset: veryfast
16:53:39:     CBR: yes
16:53:39:     CFR: no
16:53:39:     max bitrate: 2500
16:53:39:     buffer size: 2500
16:53:39: ------------------------------------------
16:53:39: MMDeviceAudioSource: Frequency for device 'Speaker (Sound Blaster Recon3D)' is 384000, samples per sec is 48000
16:53:39: MMDeviceAudioSource: Frequency for device 'Microphone (Sound Blaster Recon3D)' is 384000, samples per sec is 48000
16:53:40: Using RTMP service: Twitch / Justin.tv
16:53:40:   Server selection: rtmp://live-lhr-backup.justin.tv/app
16:53:40:   Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps)
16:53:40: SharedTexCapture hooked
16:53:42: SO_SNDBUF was at 8192
16:53:42: SO_SNDBUF is now 65536
16:53:44: RTMPPublisher::Socketloop: Increasing send buffer to ISB 262144 (buffer: 56408 / 335872)
17:33:08: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 10053
17:33:08: Total frames rendered: 142161, number of late frames: 6 (0.00%) (it's okay for some frames to be late)
17:33:09: Number of times waited to send: 0, Waited for a total of 0 bytes
17:33:09: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:33:09: 
17:33:09: Profiler results:
17:33:09: 
17:33:09: ==============================================================
17:33:09: frame - [100%] [avg time: 1.186 ms (cpu time: avg 1.06 ms, total 150806 ms)] [avg calls per frame: 1] [children: 99.7%] [unaccounted: 0.253%]
17:33:09: | frame preprocessing and rendering - [25.9%] [avg time: 0.307 ms (cpu time: avg 0.27 ms, total 38469.8 ms)] [avg calls per frame: 1] [children: 0.0843%] [unaccounted: 25.8%]
17:33:09: | | scene->Preprocess - [0.0843%] [avg time: 0.001 ms (cpu time: avg 0 ms, total 124.802 ms)] [avg calls per frame: 1]
17:33:09: | video encoding and uploading - [73.9%] [avg time: 0.876 ms (cpu time: avg 0.789 ms, total 112180 ms)] [avg calls per frame: 1] [children: 72.8%] [unaccounted: 1.1%]
17:33:09: | | flush - [6.66%] [avg time: 0.079 ms (cpu time: avg 0.041 ms, total 5850.04 ms)] [avg calls per frame: 1]
17:33:09: | | CopyResource - [1.1%] [avg time: 0.013 ms (cpu time: avg 0.01 ms, total 1497.61 ms)] [avg calls per frame: 0]
17:33:09: | | conversion to 4:2:0 - [0.422%] [avg time: 0.005 ms (cpu time: avg 0.003 ms, total 499.202 ms)] [avg calls per frame: 0]
17:33:09: | | call to encoder - [63.3%] [avg time: 0.751 ms (cpu time: avg 0.717 ms, total 101931 ms)] [avg calls per frame: 0]
17:33:09: | | sending stuff out - [1.26%] [avg time: 0.015 ms (cpu time: avg 0.008 ms, total 1279.21 ms)] [avg calls per frame: 0]
17:33:09: | Convert444Threads - [2.81e+003%] [avg time: 33.325 ms (cpu time: avg 0.763 ms, total 108546 ms)] [avg calls per frame: 1]
17:33:09: ==============================================================
17:33:09: 
17:33:09: =====Stream End: 2013-09-09, 17:33:09=================================================
17:33:48: =====Stream Start: 2013-09-09, 17:33:48===============================================
17:33:48:   Multithreaded optimizations: On
17:33:48:   Base resolution: 1920x1080
17:33:48:   Output resolution: 1280x720
17:33:48: ------------------------------------------
17:33:48: Loading up D3D10 on NVIDIA GeForce GTX 780...
17:33:48: C:/Users/Grumbul/AppData/Roaming/OBS/shaderCache/shaders/DrawTexture.pShader.blob
17:33:48: C:/Users/Grumbul/AppData/Roaming/OBS/shaderCache/shaders/DrawSolid.pShader.blob
17:33:48: C:/Users/Grumbul/AppData/Roaming/OBS/shaderCache/shaders/DownscaleBilinear1YUV.pShader.blob
17:33:48: Playback device {0.0.0.00000000}.{524951ea-f95e-4b20-a572-c45f5029f245}
17:33:48: ------------------------------------------
17:33:48: Using desktop audio input: Speaker (Sound Blaster Recon3D)
17:33:48: ------------------------------------------
17:33:48: Using auxilary audio input: Microphone (Sound Blaster Recon3D)
17:33:48: ------------------------------------------
17:33:48: Audio Encoding: AAC
17:33:48:     bitrate: 128
17:33:48: Using graphics capture
17:33:48: C:/Users/Grumbul/AppData/Roaming/OBS/shaderCache/shaders/DrawTexture_ColorAdjust.pShader.blob
17:33:48: ------------------------------------------
17:33:48: Video Encoding: x264
17:33:48:     fps: 60
17:33:48:     width: 1280, height: 720
17:33:48:     preset: veryfast
17:33:48:     CBR: yes
17:33:48:     CFR: no
17:33:48:     max bitrate: 2500
17:33:48:     buffer size: 2500
17:33:48: ------------------------------------------
17:33:48: MMDeviceAudioSource: Frequency for device 'Speaker (Sound Blaster Recon3D)' is 384000, samples per sec is 48000
17:33:48: MMDeviceAudioSource: Frequency for device 'Microphone (Sound Blaster Recon3D)' is 384000, samples per sec is 48000
17:33:48: SharedTexCapture hooked
17:33:49: Using RTMP service: Twitch / Justin.tv
17:33:49:   Server selection: rtmp://live-lhr-backup.justin.tv/app
17:33:49:   Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps)
17:33:50: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:33:50: SharedTexCapture hooked
17:33:51: SO_SNDBUF was at 8192
17:33:51: SO_SNDBUF is now 65536
17:33:54: RTMPPublisher::Socketloop: Increasing send buffer to ISB 131072 (buffer: 0 / 335872)
17:33:56: RTMPPublisher::Socketloop: Increasing send buffer to ISB 262144 (buffer: 0 / 335872)
18:33:15: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 10053
18:33:16: Total frames rendered: 214057, number of late frames: 3 (0.00%) (it's okay for some frames to be late)
18:33:16: Number of times waited to send: 0, Waited for a total of 0 bytes
18:33:16: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:33:16: 
18:33:16: Profiler results:
18:33:16: 
18:33:16: ==============================================================
18:33:16: frame - [100%] [avg time: 1.191 ms (cpu time: avg 1.063 ms, total 227590 ms)] [avg calls per frame: 1] [children: 99.7%] [unaccounted: 0.252%]
18:33:16: | frame preprocessing and rendering - [26.1%] [avg time: 0.311 ms (cpu time: avg 0.267 ms, total 57361.6 ms)] [avg calls per frame: 1] [children: 0.084%] [unaccounted: 26%]
18:33:16: | | scene->Preprocess - [0.084%] [avg time: 0.001 ms (cpu time: avg 0.001 ms, total 265.201 ms)] [avg calls per frame: 1]
18:33:16: | video encoding and uploading - [73.6%] [avg time: 0.877 ms (cpu time: avg 0.794 ms, total 170088 ms)] [avg calls per frame: 1] [children: 72.5%] [unaccounted: 1.09%]
18:33:16: | | flush - [7.05%] [avg time: 0.084 ms (cpu time: avg 0.042 ms, total 9141.65 ms)] [avg calls per frame: 1]
18:33:16: | | CopyResource - [1.18%] [avg time: 0.014 ms (cpu time: avg 0.008 ms, total 1872.01 ms)] [avg calls per frame: 0]
18:33:16: | | conversion to 4:2:0 - [0.756%] [avg time: 0.009 ms (cpu time: avg 0.002 ms, total 561.603 ms)] [avg calls per frame: 0]
18:33:16: | | call to encoder - [62.7%] [avg time: 0.747 ms (cpu time: avg 0.724 ms, total 155112 ms)] [avg calls per frame: 0]
18:33:16: | | sending stuff out - [0.84%] [avg time: 0.01 ms (cpu time: avg 0.007 ms, total 1700.41 ms)] [avg calls per frame: 0]
18:33:16: | Convert444Threads - [2.8e+003%] [avg time: 33.327 ms (cpu time: avg 0.749 ms, total 160541 ms)] [avg calls per frame: 1]
18:33:16: ==============================================================
18:33:16: 
18:33:16: =====Stream End: 2013-09-09, 18:33:16=================================================


Last game capture log:
2013-09-09, 16:53:39: we're booting up: 
16:53:39: D3D9 Present
16:53:39: (half life scientist) everything..  seems to be in order
16:53:40: D3D9EndScene called
16:53:40: D3DPRESENT_PARAMETERS {
16:53:40: 	BackBufferWidth: 1920
16:53:40: 	BackBufferHeight: 1080
16:53:40: 	BackBufferFormat: D3DFMT_A8R8G8B8
16:53:40: 	BackBufferCount: 1
16:53:40: 	MultiSampleType: D3DMULTISAMPLE_NONE
16:53:40: 	MultiSampleQuality: 0
16:53:40: 	SwapEffect: D3DSWAPEFFECT_DISCARD
16:53:40: 	hDeviceWindow: 658326
16:53:40: 	Windowed: false
16:53:40: 	EnableAutoDepthStencil: false
16:53:40: 	AutoDepthStencilFormat: D3DFMT_UNKNOWN
16:53:40: 	Flags: None
16:53:40: 	FullScreen_RefreshRateInHz: 60
16:53:40: 	PresentationInterval: 0
16:53:40: };
16:53:40: successfully set up d3d9 hooks
16:53:40: D3D9Present called
16:53:40: DoD3D9GPUHook: success
16:53:40: D3DSURFACE_DESC {
16:53:40: 	Format: D3DFMT_A8R8G8B8
16:53:40: 	Type: D3DRTYPE_SURFACE
16:53:40: 	Usage: D3DUSAGE_RENDERTARGET 
16:53:40: 	Pool: D3DPOOL_DEFAULT
16:53:40: 	MultiSampleType: D3DMULTISAMPLE_NONE
16:53:40: 	MultiSampleQuality: 0
16:53:40: 	Width: 1920
16:53:40: 	Height: 1080
16:53:40: };
16:53:40: successfully capturing d3d9 frames via GPU
17:33:09: ---------------------- Cleared D3D9 Capture ----------------------
17:33:09: received restart event, capturing
17:33:09: DoD3D9GPUHook: success
17:33:09: D3D9EndScene called
17:33:09: D3D9Present called
17:33:49: D3D9Reset called
17:33:49: ---------------------- Cleared D3D9 Capture ----------------------
17:33:49: successfully set up d3d9 hooks
17:33:49: D3D9EndScene called
17:33:49: D3D9Present called
17:33:49: DoD3D9GPUHook: success
17:33:50: D3DSURFACE_DESC {
17:33:50: 	Format: D3DFMT_A8R8G8B8
17:33:50: 	Type: D3DRTYPE_SURFACE
17:33:50: 	Usage: D3DUSAGE_RENDERTARGET 
17:33:50: 	Pool: D3DPOOL_DEFAULT
17:33:50: 	MultiSampleType: D3DMULTISAMPLE_NONE
17:33:50: 	MultiSampleQuality: 0
17:33:50: 	Width: 1920
17:33:50: 	Height: 1080
17:33:50: };
17:33:50: successfully capturing d3d9 frames via GPU
18:33:16: ---------------------- Cleared D3D9 Capture ----------------------
18:33:16: received restart event, capturing
18:33:16: DoD3D9GPUHook: success
18:33:16: D3D9EndScene called
18:33:16: D3D9Present called

==========================================================

Network Adaptor: Intel(R) 82579V Gigabit Network Connection, Driver version 11.16.96.0
Router: Virgin Media Superhub

You mention using "minimize network impact". Would you be able to let me know what this actually does? I'm more than happy to try it but would like to know what that is actually doing before I run tests (a little OCD about changing settings I am unfamiliar with!)

Appreciate the help thus far chaps.
 

Grumbul

Member
Hi R1CH,

That was a temporary fix to the Blizzard Downloader issues on a VERY old firmware for the Superhub - long, long since resolved.

I also hardly think disabling firewall features on ones router is very advisable :)
 

R1CH

Forum Admin
Developer
Still, most routers have absolute crappy firewalls and "dos protection" features, I'd strongly recommend turning them off. You don't need a firewall if you're behind a router anyway since NAT will stop any incoming connection attempts, plus there is always Windows firewall.
 

dodgepong

Administrator
Community Helper
Someone correct me if I'm wrong, but I believe Minimize Network Impact simply sends data out less frequently in larger chunks, rather than more frequently in smaller chunks. It seems to help on some routers.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Well using minimize network impact may not do anything, but I wanted to test it to see if there was any difference. I just wanted to see if making it have better QoS affected anything, probably kind of an semi-ignorant suggestion on my part, could even make it worse, but I just wanted to see
 
Top