Question / Help Stream sometimes freezes for viewers.

snoGe

New Member
Here you go!
Code:
12:12:50: Settings::Video: Disabling Aero
12:13:57: Settings::Video: Enabling Aero
12:14:30: Open Broadcaster Software v0.583b - 32bit (´・ω・`)
12:14:30: -------------------------------
12:14:30: CPU Name: AMD FX(tm)-6100 Six-Core Processor
12:14:30: CPU Speed: 3299MHz
12:14:30: Physical Memory:  4077MB Total, 2392MB Free
12:14:30: stepping id: 2, model 1, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 6, total cores 3
12:14:30: monitor 1: pos={0, 0}, size={1280, 1024}
12:14:30: Windows Version: 6.1 Build 7601 S
12:14:30: Aero is Disabled
12:14:30: -------------------------------
12:14:30: OBS Modules:
12:14:30: Base Address     Module
12:14:30: 011A0000         OBS.exe
12:14:30: 61ED0000         OBSApi.dll
12:14:30: 68E10000         DShowPlugin.dll
12:14:30: 68EF0000         GraphicsCapture.dll
12:14:30: 68ED0000         NoiseGate.dll
12:14:30: 68DF0000         PSVPlugin.dll
12:14:30: ------------------------------------------
12:14:30: Adapter 1
12:14:30:   Video Adapter: ATI Radeon HD 4870 X2
12:14:30:   Video Adapter Dedicated Video Memory: 2131763200
12:14:30:   Video Adapter Shared System Memory: 1869205504
12:14:30:   Video Adapter Output 1: pos={0, 0}, size={1280, 1024}, attached=true
12:14:30: Using fixed low latency mode, factor 20
12:14:30: =====Stream Start: 2013-11-06, 12:14:30===============================================
12:14:30:   Multithreaded optimizations: On
12:14:30:   Base resolution: 1280x1024
12:14:30:   Output resolution: 1280x1024
12:14:30: ------------------------------------------
12:14:30: Loading up D3D10 on ATI Radeon HD 4870 X2...
12:14:30: ------------------------------------------
12:14:30: Audio Format: 48000hz
12:14:30: Playback device Default
12:14:30: ------------------------------------------
12:14:30: Using desktop audio input: Speakers (VIA High Definition Audio)
12:14:30: ------------------------------------------
12:14:30: Audio Encoding: AAC
12:14:30:     bitrate: 128
12:14:30: Using Window Capture
12:14:30: Scene buffering time set to 700
12:14:30: ------------------------------------------
12:14:30: Video Encoding: x264
12:14:30:     fps: 30
12:14:30:     width: 1280, height: 1024
12:14:30:     preset: medium
12:14:30:     profile: high
12:14:30:     keyint: 250
12:14:30:     CBR: yes
12:14:30:     CFR: no
12:14:30:     max bitrate: 2000
12:14:30:     buffer size: 2000
12:14:30: ------------------------------------------
12:14:30: MMDeviceAudioSource: Frequency for device 'Speakers (VIA High Definition Audio)' is 384000, samples per sec is 48000
12:14:34: Using RTMP service: Twitch / Justin.tv
12:14:34:   Server selection: rtmp://live-fra.justin.tv/app
12:14:35: Using text output
12:14:35:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
12:14:37: Using Monitor Capture
12:14:38: Using Monitor Capture
12:14:40: Completed handshake with rtmp://live-fra.justin.tv/app in 4728 ms.
12:14:41: SO_SNDBUF was at 8192
12:14:41: SO_SNDBUF is now 65536
12:14:41: Using graphics capture
12:14:43: Using graphics capture
12:14:52: Total frames encoded: 637, total frames duplicated: 11 (1.73%)
12:14:52: Total frames rendered: 637, number of late frames: 2 (0.31%) (it's okay for some frames to be late)
12:14:53: RTMPPublisher::SocketLoop: Graceful loop exit
12:14:53: Average send payload: 12192 bytes, average send interval: 101 ms
12:14:53: Number of times waited to send: 17, Waited for a total of 66040 bytes
12:14:53: Number of b-frames dropped: 97 (31%), Number of p-frames dropped: 97 (31%), Total 194 (62%)
12:14:53: Number of bytes sent: 1243609
12:14:53: 
12:14:53: Profiler time results:
12:14:53: 
12:14:53: ==============================================================
12:14:53: video thread frame - [100%] [avg time: 9.074 ms] [children: 95%] [unaccounted: 4.96%]
12:14:53: | scene->Preprocess - [76.9%] [avg time: 6.977 ms]
12:14:53: | GPU download and conversion - [18.2%] [avg time: 1.647 ms] [children: 17.3%] [unaccounted: 0.827%]
12:14:53: | | flush - [15.5%] [avg time: 1.405 ms]
12:14:53: | | CopyResource - [1.15%] [avg time: 0.104 ms]
12:14:53: | | conversion to 4:2:0 - [0.694%] [avg time: 0.063 ms]
12:14:53: Convert444Thread - [100%] [avg time: 2.465 ms] [children: 99.6%] [unaccounted: 0.365%]
12:14:53: | Convert444toNV12 - [99.6%] [avg time: 2.456 ms]
12:14:53: encoder thread frame - [100%] [avg time: 2.252 ms]
12:14:53: ==============================================================
12:14:53: 
12:14:53: 
12:14:53: Profiler CPU results:
12:14:53: 
12:14:53: ==============================================================
12:14:53: video thread frame - [cpu time: avg 5.485 ms, total 3494.42 ms] [avg calls per frame: 1]
12:14:53: | scene->Preprocess - [cpu time: avg 5.191 ms, total 3307.22 ms] [avg calls per frame: 1]
12:14:53: | GPU download and conversion - [cpu time: avg 0.171 ms, total 109.201 ms] [avg calls per frame: 1]
12:14:53: | | flush - [cpu time: avg 0.097 ms, total 62.4 ms] [avg calls per frame: 1]
12:14:53: | | CopyResource - [cpu time: avg 0.025 ms, total 15.601 ms] [avg calls per frame: 1]
12:14:53: | | conversion to 4:2:0 - [cpu time: avg 0.025 ms, total 15.6 ms] [avg calls per frame: 1]
12:14:53: Convert444Thread - [cpu time: avg 2.112 ms, total 1294.81 ms] [avg calls per frame: 1]
12:14:53: | Convert444toNV12 - [cpu time: avg 2.112 ms, total 1294.81 ms] [avg calls per frame: 1]
12:14:53: encoder thread frame - [cpu time: avg 1.164 ms, total 717.604 ms] [avg calls per frame: 1]
12:14:53: ==============================================================
12:14:53: 
12:14:53: =====Stream End: 2013-11-06, 12:14:53=================================================
12:14:54: =====Stream Start: 2013-11-06, 12:14:54===============================================
12:14:54:   Multithreaded optimizations: On
12:14:54:   Base resolution: 1280x1024
12:14:54:   Output resolution: 1280x1024
12:14:54: ------------------------------------------
12:14:54: Loading up D3D10 on ATI Radeon HD 4870 X2...
12:14:54: ------------------------------------------
12:14:54: Audio Format: 48000hz
12:14:54: Playback device Default
12:14:54: ------------------------------------------
12:14:54: Using desktop audio input: Speakers (VIA High Definition Audio)
12:14:54: ------------------------------------------
12:14:54: Audio Encoding: AAC
12:14:54:     bitrate: 128
12:14:54: Using Window Capture
12:14:54: Scene buffering time set to 700
12:14:54: ------------------------------------------
12:14:54: Video Encoding: x264
12:14:54:     fps: 30
12:14:54:     width: 1280, height: 1024
12:14:54:     preset: medium
12:14:54:     profile: high
12:14:54:     keyint: 250
12:14:54:     CBR: yes
12:14:54:     CFR: no
12:14:54:     max bitrate: 2000
12:14:54:     buffer size: 2000
12:14:54: ------------------------------------------
12:14:54: MMDeviceAudioSource: Frequency for device 'Speakers (VIA High Definition Audio)' is 384000, samples per sec is 48000
12:14:58: Using text output
12:15:28: Using text output
12:15:48: Using text output
12:16:26: Total frames encoded: 2737, total frames duplicated: 5 (0.18%)
12:16:26: Total frames rendered: 2742, number of late frames: 1 (0.04%) (it's okay for some frames to be late)
12:16:26: 
12:16:26: Profiler time results:
12:16:26: 
12:16:26: ==============================================================
12:16:26: video thread frame - [100%] [avg time: 7.889 ms] [children: 95.3%] [unaccounted: 4.68%]
12:16:26: | scene->Preprocess - [78.8%] [avg time: 6.216 ms]
12:16:26: | GPU download and conversion - [16.5%] [avg time: 1.304 ms] [children: 16%] [unaccounted: 0.57%]
12:16:26: | | flush - [8.1%] [avg time: 0.639 ms]
12:16:26: | | CopyResource - [1.58%] [avg time: 0.125 ms]
12:16:26: | | conversion to 4:2:0 - [6.27%] [avg time: 0.495 ms]
12:16:26: Convert444Thread - [100%] [avg time: 2.398 ms] [children: 99.7%] [unaccounted: 0.334%]
12:16:26: | Convert444toNV12 - [99.7%] [avg time: 2.39 ms]
12:16:26: encoder thread frame - [100%] [avg time: 1.78 ms]
12:16:26: ==============================================================
12:16:26: 
12:16:26: 
12:16:26: Profiler CPU results:
12:16:26: 
12:16:26: ==============================================================
12:16:26: video thread frame - [cpu time: avg 4.989 ms, total 13681.3 ms] [avg calls per frame: 1]
12:16:26: | scene->Preprocess - [cpu time: avg 4.756 ms, total 13041.7 ms] [avg calls per frame: 1]
12:16:26: | GPU download and conversion - [cpu time: avg 0.108 ms, total 296.403 ms] [avg calls per frame: 1]
12:16:26: | | flush - [cpu time: avg 0.039 ms, total 109.201 ms] [avg calls per frame: 1]
12:16:26: | | CopyResource - [cpu time: avg 0.005 ms, total 15.6 ms] [avg calls per frame: 1]
12:16:26: | | conversion to 4:2:0 - [cpu time: avg 0.011 ms, total 31.201 ms] [avg calls per frame: 1]
12:16:26: Convert444Thread - [cpu time: avg 2.348 ms, total 6380.44 ms] [avg calls per frame: 1]
12:16:26: | Convert444toNV12 - [cpu time: avg 2.348 ms, total 6380.44 ms] [avg calls per frame: 1]
12:16:26: encoder thread frame - [cpu time: avg 1.12 ms, total 3042.02 ms] [avg calls per frame: 1]
12:16:26: ==============================================================
12:16:26: 
12:16:26: =====Stream End: 2013-11-06, 12:16:26=================================================
12:16:28: Using fixed low latency mode, factor 20
12:16:28: =====Stream Start: 2013-11-06, 12:16:28===============================================
12:16:28:   Multithreaded optimizations: On
12:16:28:   Base resolution: 1280x1024
12:16:28:   Output resolution: 1280x1024
12:16:28: ------------------------------------------
12:16:28: Loading up D3D10 on ATI Radeon HD 4870 X2...
12:16:28: ------------------------------------------
12:16:28: Audio Format: 48000hz
12:16:28: Playback device Default
12:16:28: ------------------------------------------
12:16:28: Using desktop audio input: Speakers (VIA High Definition Audio)
12:16:28: ------------------------------------------
12:16:28: Audio Encoding: AAC
12:16:28:     bitrate: 128
12:16:28: Using Window Capture
12:16:28: Scene buffering time set to 700
12:16:28: ------------------------------------------
12:16:28: Video Encoding: x264
12:16:28:     fps: 30
12:16:28:     width: 1280, height: 1024
12:16:28:     preset: medium
12:16:28:     profile: high
12:16:28:     keyint: 250
12:16:28:     CBR: yes
12:16:28:     CFR: no
12:16:28:     max bitrate: 2000
12:16:28:     buffer size: 2000
12:16:28: ------------------------------------------
12:16:28: MMDeviceAudioSource: Frequency for device 'Speakers (VIA High Definition Audio)' is 384000, samples per sec is 48000
12:16:31: Using RTMP service: Twitch / Justin.tv
12:16:31:   Server selection: rtmp://live-fra.justin.tv/app
12:16:31:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
12:16:32: Completed handshake with rtmp://live-fra.justin.tv/app in 494 ms.
12:16:35: SO_SNDBUF was at 8192
12:16:35: SO_SNDBUF is now 65536
12:17:39: Using Window Capture
12:17:42: Using text output
12:17:47: Using text output
12:17:47: Using text output
12:17:47: Using text output
12:17:48: Using text output
12:17:52: Using graphics capture
12:17:53: Using Window Capture
12:17:58: Using Window Capture
12:18:18: RTMPPublisher::SocketLoop: Stalled for 2152 ms to write 15132 bytes (buffer: 256703 / 272384), unstable connection?
12:18:28: Total frames encoded: 3567, total frames duplicated: 113 (3.17%)
12:18:28: Total frames rendered: 3508, number of late frames: 16 (0.46%) (it's okay for some frames to be late)
12:18:30: RTMPPublisher::SocketLoop: Graceful loop exit
12:18:31: Average send payload: 13259 bytes, average send interval: 102 ms
12:18:31: Number of times waited to send: 329, Waited for a total of 1311476 bytes
12:18:31: Number of b-frames dropped: 871 (26%), Number of p-frames dropped: 719 (22%), Total 1590 (48%)
12:18:31: Number of bytes sent: 14532835
12:18:31: 
12:18:31: Profiler time results:
12:18:31: 
12:18:31: ==============================================================
12:18:31: video thread frame - [100%] [avg time: 7.405 ms] [children: 94.8%] [unaccounted: 5.2%]
12:18:31: | scene->Preprocess - [71.6%] [avg time: 5.299 ms]
12:18:31: | GPU download and conversion - [23.2%] [avg time: 1.721 ms] [children: 13.7%] [unaccounted: 9.55%]
12:18:31: | | flush - [12.7%] [avg time: 0.939 ms]
12:18:31: | | CopyResource - [0.905%] [avg time: 0.067 ms]
12:18:31: | | conversion to 4:2:0 - [0.108%] [avg time: 0.008 ms]
12:18:31: Convert444Thread - [100%] [avg time: 2.293 ms] [children: 99.6%] [unaccounted: 0.392%]
12:18:31: | Convert444toNV12 - [99.6%] [avg time: 2.284 ms]
12:18:31: encoder thread frame - [100%] [avg time: 2.158 ms]
12:18:31: ==============================================================
12:18:31: 
12:18:31: 
12:18:31: Profiler CPU results:
12:18:31: 
12:18:31: ==============================================================
12:18:31: video thread frame - [cpu time: avg 4.131 ms, total 14492.5 ms] [avg calls per frame: 1]
12:18:31: | scene->Preprocess - [cpu time: avg 4.006 ms, total 14055.7 ms] [avg calls per frame: 1]
12:18:31: | GPU download and conversion - [cpu time: avg 0.066 ms, total 234.001 ms] [avg calls per frame: 1]
12:18:31: | | flush - [cpu time: avg 0.053 ms, total 187.2 ms] [avg calls per frame: 1]
12:18:31: | | CopyResource - [cpu time: avg 0.004 ms, total 15.601 ms] [avg calls per frame: 1]
12:18:31: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:18:31: Convert444Thread - [cpu time: avg 2.163 ms, total 7534.85 ms] [avg calls per frame: 1]
12:18:31: | Convert444toNV12 - [cpu time: avg 2.163 ms, total 7534.85 ms] [avg calls per frame: 1]
12:18:31: encoder thread frame - [cpu time: avg 1.157 ms, total 4102.83 ms] [avg calls per frame: 1]
12:18:31: ==============================================================
12:18:31: 
12:18:31: =====Stream End: 2013-11-06, 12:18:31=================================================
 

FerretBomb

Active Member
The problem is that you're dropping almost 30% of your frames. This indicates a network issue; most commonly, trying to stream at too high a bitrate.

Run a 6MB test at http://testmy.net/upload making sure that you've selected a server reasonably close to the Twitch ingest you will be using.
Speedtest.net is worthless for livestreamers.
Also, be aware that you're only going to be able to use about 3/4 of the result for streaming (at most) to allow for network fluctuation, game communication overhead, and your audio stream (which isn't counted as part of the bitrate setting). 2000 is also about the maximum recommended for a non-partnered streamer, but it appears you do not have that.

You also are going to want to downscale; bear in mind that a 720p stream at 30fps is going to need 1500kbps to look passable.
Also, to comply with Twitch's standardization requirements, set your Keyframe Interval to 2 in the OBS settings area.

The bits that hilalpro recommended may be valid, but I'd go with the above first... the frame-dropping (at that percentage) is a MAJOR issue, and needs to be addressed ASAP.
 
Top