Question / Help Stream choppy for viewers while live

Holophonist

New Member
Hi guys -

Here's an example video:
http://www.twitch.tv/holophonist/c/2541218

My PC Specs:

i7 2600
16 gb ram
msi 7970

I don't remember what mobo I have or what brand the ram is but I can find out anything you need to know.

And here should be the log file:
Code:
17:01:32: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
17:01:32: -------------------------------
17:01:32: CPU Name: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
17:01:32: CPU Speed: 3398MHz
17:01:32: Physical Memory:  16365MB Total, 13328MB Free
17:01:32: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
17:01:32: monitor 1: pos={0, 0}, size={1920, 1080}
17:01:32: Windows Version: 6.1 Build 7601 S
17:01:32: Aero is Disabled
17:01:32: -------------------------------
17:01:32: OBS Modules:
17:01:32: Base Address     Module
17:01:32: 000000003F270000 OBS.exe
17:01:32: 00000000E8200000 OBSApi.dll
17:01:32: 00000000F9BC0000 DShowPlugin.dll
17:01:32: 00000000F9B90000 GraphicsCapture.dll
17:01:32: 00000000F9B70000 NoiseGate.dll
17:01:32: ------------------------------------------
17:01:32: Adapter 1
17:01:32:   Video Adapter: AMD Radeon HD 7900 Series
17:01:32:   Video Adapter Dedicated Video Memory: 3186810880
17:01:32:   Video Adapter Shared System Memory: 4016656384
17:01:32: =====Stream Start: 2013-07-07, 17:01:32===============================================
17:01:32:   Multithreaded optimizations: On
17:01:32:   Base resolution: 1920x1080
17:01:32:   Output resolution: 1920x1080
17:01:32: ------------------------------------------
17:01:32: Loading up D3D10...
17:01:32: Playback device {0.0.0.00000000}.{a8e6c634-5dc6-4cfa-bdf0-2017869b865c}
17:01:32: ------------------------------------------
17:01:32: Using desktop audio input: Speakers (High Definition Audio Device)
17:01:32: ------------------------------------------
17:01:32: Using auxilary audio input: Microphone (Blue Snowball)
17:01:32: ------------------------------------------
17:01:32: Audio Encoding: AAC
17:01:32:     bitrate: 192
17:01:32: Using graphics capture
17:01:32: Using custom x264 settings: "crf=20"
17:01:32: ------------------------------------------
17:01:32: Video Encoding: x264
17:01:32:     fps: 60
17:01:32:     width: 1920, height: 1080
17:01:32:     preset: veryfast
17:01:32:     CBR: no
17:01:32:     CFR: yes
17:01:32:     max bitrate: 4000
17:01:32:     buffer size: 4000
17:01:32:     quality: 12
17:01:32: ------------------------------------------
17:01:32: SharedTexCapture hooked
17:01:33: Using RTMP service: Twitch / Justin.tv
17:01:33:   Server selection: rtmp://live-iad.justin.tv/app
17:01:35: SO_SNDBUF was at 8192
17:01:35: SO_SNDBUF is now 65536
17:03:38: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
17:24:08: Total frames rendered: 81133, number of frames that lagged: 628 (0.77%) (it's okay for some frames to lag)
17:24:08: Total duplicated frames: 295 (0.36%)
17:24:08: RTMPPublisher::SocketLoop: Aborting due to bStopping
17:24:08: Number of times waited to send: 549, Waited for a total of 1961875 bytes
17:24:08: Number of b-frames dropped: 7267 (9%), Number of p-frames dropped: 7694 (9.5%), Total 14961 (18%)
17:24:08: =====Stream End: 2013-07-07, 17:24:08=================================================
17:26:47: =====Stream Start: 2013-07-07, 17:26:47===============================================
17:26:47:   Multithreaded optimizations: On
17:26:47:   Base resolution: 1920x1080
17:26:47:   Output resolution: 1920x1080
17:26:47: ------------------------------------------
17:26:47: Loading up D3D10...
17:26:47: Playback device {0.0.0.00000000}.{a8e6c634-5dc6-4cfa-bdf0-2017869b865c}
17:26:47: ------------------------------------------
17:26:47: Using desktop audio input: Speakers (High Definition Audio Device)
17:26:47: ------------------------------------------
17:26:47: Using auxilary audio input: Microphone (Blue Snowball)
17:26:47: ------------------------------------------
17:26:47: Audio Encoding: AAC
17:26:47:     bitrate: 192
17:26:47: Using graphics capture
17:26:47: Using custom x264 settings: "crf=20"
17:26:47: ------------------------------------------
17:26:47: Video Encoding: x264
17:26:47:     fps: 60
17:26:47:     width: 1920, height: 1080
17:26:47:     preset: veryfast
17:26:47:     CBR: no
17:26:47:     CFR: yes
17:26:47:     max bitrate: 4000
17:26:47:     buffer size: 4000
17:26:47:     quality: 12
17:26:47: ------------------------------------------
17:26:48: Using RTMP service: Twitch / Justin.tv
17:26:48:   Server selection: rtmp://live-iad.justin.tv/app
17:26:50: SO_SNDBUF was at 8192
17:26:50: SO_SNDBUF is now 65536
17:26:51: SharedTexCapture hooked
17:27:00: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:27:00: SharedTexCapture hooked
17:27:05: GraphicsCaptureSource::NewCapture:  eliminating old capture
Warning -- D3D10Texture::CreateFromSharedHandle: Failed to open shared handle, result = 0x88760873
Warning -- SharedTexCapture::Init: Could not create shared texture
17:27:05: SharedTexCapture hooked
17:27:05: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:27:05: SharedTexCapture hooked
17:27:21: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:27:21: SharedTexCapture hooked
17:28:01: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:28:01: SharedTexCapture hooked
16:30:25: GraphicsCaptureSource::NewCapture:  eliminating old capture
16:30:25: SharedTexCapture hooked
16:48:03: GraphicsCaptureSource::NewCapture:  eliminating old capture
16:48:03: SharedTexCapture hooked
16:49:16: GraphicsCaptureSource::NewCapture:  eliminating old capture
16:49:16: SharedTexCapture hooked
17:18:06: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:18:06: SharedTexCapture hooked
17:21:28: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:21:28: SharedTexCapture hooked
17:22:16: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:22:16: SharedTexCapture hooked
17:27:25: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:27:25: SharedTexCapture hooked
17:28:06: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:28:06: SharedTexCapture hooked
16:47:18: Total frames rendered: 451789, number of frames that lagged: 150837 (33.39%) (it's okay for some frames to lag)
16:47:18: Total duplicated frames: 57473 (12.72%)
16:47:18: RTMPPublisher::SocketLoop: Aborting due to bStopping
16:47:18: Number of times waited to send: 2, Waited for a total of 8208 bytes
16:47:18: Number of b-frames dropped: 25 (0.0049%), Number of p-frames dropped: 68 (0.013%), Total 93 (0.018%)
16:47:18: =====Stream End: 2013-07-07, 16:47:18=================================================
16:47:27: =====Stream Start: 2013-07-07, 16:47:27===============================================
16:47:27:   Multithreaded optimizations: On
16:47:27:   Base resolution: 1920x1080
16:47:27:   Output resolution: 1280x720
16:47:27: ------------------------------------------
16:47:27: Loading up D3D10...
16:47:27: Playback device {0.0.0.00000000}.{a8e6c634-5dc6-4cfa-bdf0-2017869b865c}
16:47:27: ------------------------------------------
16:47:27: Using desktop audio input: Speakers (High Definition Audio Device)
16:47:27: ------------------------------------------
16:47:27: Using auxilary audio input: Microphone (Blue Snowball)
16:47:27: ------------------------------------------
16:47:27: Audio Encoding: AAC
16:47:27:     bitrate: 192
16:47:27: Using graphics capture
16:47:27: Using custom x264 settings: "crf=20"
16:47:27: ------------------------------------------
16:47:27: Video Encoding: x264
16:47:27:     fps: 60
16:47:27:     width: 1280, height: 720
16:47:27:     preset: veryfast
16:47:27:     CBR: no
16:47:27:     CFR: yes
16:47:27:     max bitrate: 4000
16:47:27:     buffer size: 4000
16:47:27:     quality: 12
16:47:27: ------------------------------------------
16:47:28: Using RTMP service: Twitch / Justin.tv
16:47:28:   Server selection: rtmp://live-iad.justin.tv/app
16:47:29: SharedTexCapture hooked
16:47:29: SO_SNDBUF was at 8192
16:47:29: SO_SNDBUF is now 65536
17:13:19: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:13:19: SharedTexCapture hooked
17:13:29: Capture window 0x0003024E invalid or changing, terminating capture
17:17:19: Total frames rendered: 107315, number of frames that lagged: 481 (0.45%) (it's okay for some frames to lag)
17:17:19: Total duplicated frames: 581 (0.54%)
17:17:19: RTMPPublisher::SocketLoop: Aborting due to bStopping
17:17:19: Number of times waited to send: 0, Waited for a total of 0 bytes
17:17:19: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:17:19: =====Stream End: 2013-07-07, 17:17:19=================================================
17:26:57: 
17:26:57: Profiler results:
17:26:57: 
17:26:57: ==============================================================
17:26:57: frame - [100%] [avg time: 8.902 ms] [avg calls per frame: 1] [children: 99.2%] [unaccounted: 0.764%]
17:26:57: | scene->Preprocess - [0.0112%] [avg time: 0.001 ms] [avg calls per frame: 1]
17:26:57: | video encoding and uploading - [99.2%] [avg time: 8.833 ms] [avg calls per frame: 1] [children: 30.1%] [unaccounted: 69.1%]
17:26:57: | | CopyResource - [1.24%] [avg time: 0.11 ms] [avg calls per frame: 0]
17:26:57: | | conversion to 4:2:0 - [0.0449%] [avg time: 0.004 ms] [avg calls per frame: 0]
17:26:57: | | call to encoder - [28.6%] [avg time: 2.544 ms] [avg calls per frame: 1]
17:26:57: | | sending stuff out - [0.225%] [avg time: 0.02 ms] [avg calls per frame: 1]
17:26:57: ==============================================================
17:26:57:

I say *should* be because I'm not really sure how the log files work. I streamed a couple different times today with slightly different settings (I think I changed the output resolution to 720p once), but I only have this one log file dated today. Let me know if you need something else.

Anyway as you can see in the video at 2:30 and 3:02 and many other times the stream freezes up. I can't say if it was exactly the same while live, but it should be roughly the same problem from what people tell me.
 

FerretBomb

Active Member
I'd recommend running a 6MB test at http://testmy.net/upload to get an idea of your real-world throughput. ShaperProbe will work as well (and detect traffic shaping), but I've found it to be a bit fragile (bombs out on my connection every time I try it).

Also note that Twitch dislikes being sent streams higher than 3500kbps; I'd personally recommend no higher than 3000kbps, unless you're a Partnered channel (and so have the downscale/transcoding options available).

Additionally, 1080p@60 doesn't really work well; Flash can't deal with the throughput needed. You'll have better results going with 1080p@30 (for low-motion) or 720p@60 (for FPSes and other high-motion games).
 

Holophonist

New Member
Thanks for the replies.

The 6MB test resoluted in Upload :: 18.9 Mbps 2.4 MB/s

The ShaperProbe results were:

Code:
Connected to server 80.239.142.215.

Estimating capacity:
Upstream: 16083 Kbps.
Downstream: 15780 Kbps.

The measurement will take upto 2.5 minutes. Please wait.

Checking for traffic shapers:

Upstream: No shaper detected.
Median received rate: 15754 Kbps.

Downstream: No shaper detected.
Median received rate: 15493 Kbps.


I'll try lowering the bitrate, are there any quality settings I should be changing accordingly? I'm not really sure what changing the bitrate (and buffer?) actually does. If it limits the amount of data I'm uploading at a time, what happens if I hit that limit?

I was having the same problem streaming in 720p@60 fps. Also, I've stream in 1080p@60 fps with no problems in the past. I did however take a somewhat long break from streaming and was doing other things with OBS (recording a different game locally) so the settings were changed. Now coming back to streaming I've noticed this problem and assumed some settings were off.
 
Top