Question / Help Stream lag spikes on 500 bitrate when i have 2 Mbps upload

sonynapalony

New Member
So every thread on forum or even your page where i can choose my pc components and internet connection
give me advices to choose bitrate 1250+/- something like that + more other options.
But i have strange problem.

On offline game :
http://www.twitch.tv/sonynapalony/b/494458782
First seconds on this stream are pretty ok but look at 40sec+
On online i have 600 ping in game and the same problem like in offline (video)

This is my upload speed
http://screenshooter.net/0934033/lfyharo

This is what xsplit show when i use setup wizard
http://screenshooter.net/0934033/thgqfvx

And this is my OBS logs for sure
20:08:35: Open Broadcaster Software v0.592b - 32bit (´・ω・`)
20:08:35: -------------------------------
20:08:35: CPU Name: AMD Phenom(tm) II X4 960T Processor
20:08:35: CPU Speed: 3000MHz
20:08:35: Physical Memory: 3326MB Total, 1340MB Free
20:08:35: stepping id: 0, model 10, family 16, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, total cores 4
20:08:35: monitor 1: pos={0, 0}, size={1360, 768}
20:08:35: Windows Version: 6.0 Build 6002 S
20:08:35: Aero is Disabled
20:08:35: -------------------------------
20:08:35: OBS Modules:
20:08:35: Base Address Module
20:08:35: 003E0000 OBS.exe
20:08:35: 59AC0000 OBSApi.dll
20:08:35: 72890000 DShowPlugin.dll
20:08:35: 72C10000 GraphicsCapture.dll
20:08:35: 72800000 NoiseGate.dll
20:08:35: 703D0000 PSVPlugin.dll
20:08:35: ------------------------------------------
20:08:35: Adapter 1
20:08:35: Video Adapter: ATI Radeon HD 4800 Series
20:08:35: Video Adapter Dedicated Video Memory: 1067192320
20:08:35: Video Adapter Shared System Memory: 1475964928
20:08:35: Video Adapter Output 1: pos={0, 0}, size={1360, 768}, attached=true
20:08:35: =====Stream Start: 2014-01-11, 20:08:35===============================================
20:08:35: Multithreaded optimizations: On
20:08:35: Base resolution: 1280x720
20:08:35: Output resolution: 852x480
20:08:35: ------------------------------------------
20:08:35: Loading up D3D10 on ATI Radeon HD 4800 Series (Adapter 1)...
20:08:35: ------------------------------------------
20:08:35: Audio Format: 44100hz
20:08:35: Playback device Default
20:08:35: ------------------------------------------
20:08:35: Using desktop audio input: Głośniki (VIA High Definition Audio)
20:08:35: ------------------------------------------
20:08:35: Using auxilary audio input: Plantronics (VIA High Definition Audio)
20:08:35: ------------------------------------------
20:08:35: Audio Encoding: MP3
20:08:35: bitrate: 128
20:08:35: Using Window Capture
20:08:35: Scene buffering time set to 700
20:08:35: ------------------------------------------
20:08:35: Video Encoding: x264
20:08:35: fps: 25
20:08:35: width: 852, height: 480
20:08:35: preset: faster
20:08:35: profile: main
20:08:35: keyint: 50
20:08:35: CBR: yes
20:08:35: CFR: yes
20:08:35: max bitrate: 500
20:08:35: buffer size: 500
20:08:35: ------------------------------------------
20:08:35: MMDeviceAudioSource: Frequency for device 'Głośniki (VIA High Definition Audio)' is 352800, samples per sec is 44100
20:08:35: MMDeviceAudioSource: Frequency for device 'Plantronics (VIA High Definition Audio)' is 1536000, samples per sec is 192000
20:08:35: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
20:08:44: Using Window Capture
20:09:00: Total frames encoded: 611, total frames duplicated: 0 (0.00%)
20:09:00: Total frames rendered: 612, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
20:09:00:
20:09:00: Profiler time results:
20:09:00:
20:09:00: ==============================================================
20:09:00: video thread frame - [100%] [avg time: 2.309 ms] [children: 66%] [unaccounted: 34%]
20:09:00: | scene->Preprocess - [54.3%] [avg time: 1.253 ms]
20:09:00: | GPU download and conversion - [11.7%] [avg time: 0.271 ms] [children: 10.3%] [unaccounted: 1.47%]
20:09:00: | | flush - [9.22%] [avg time: 0.213 ms]
20:09:00: | | CopyResource - [0.65%] [avg time: 0.015 ms]
20:09:00: | | conversion to 4:2:0 - [0.39%] [avg time: 0.009 ms]
20:09:00: Convert444Threads - [100%] [avg time: 0.626 ms] [children: 98.4%] [unaccounted: 1.6%]
20:09:00: | Convert444toNV12 - [98.4%] [avg time: 0.616 ms]
20:09:00: encoder thread frame - [100%] [avg time: 0.983 ms]
20:09:00: ==============================================================
20:09:00:
20:09:00:
20:09:00: Profiler CPU results:
20:09:00:
20:09:00: ==============================================================
20:09:00: video thread frame - [cpu time: avg 1.274 ms, total 780.005 ms] [avg calls per frame: 1]
20:09:00: | scene->Preprocess - [cpu time: avg 0.917 ms, total 561.604 ms] [avg calls per frame: 1]
20:09:00: | GPU download and conversion - [cpu time: avg 0.127 ms, total 78 ms] [avg calls per frame: 1]
20:09:00: | | flush - [cpu time: avg 0.101 ms, total 62.4 ms] [avg calls per frame: 1]
20:09:00: | | CopyResource - [cpu time: avg 0.026 ms, total 15.6 ms] [avg calls per frame: 1]
20:09:00: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:09:00: Convert444Threads - [cpu time: avg 0.906 ms, total 1076.41 ms] [avg calls per frame: 2]
20:09:00: | Convert444toNV12 - [cpu time: avg 0.906 ms, total 1076.41 ms] [avg calls per frame: 2]
20:09:00: encoder thread frame - [cpu time: avg 0.657 ms, total 390.002 ms] [avg calls per frame: 1]
20:09:00: ==============================================================
20:09:00:
20:09:00: =====Stream End: 2014-01-11, 20:09:00=================================================
20:09:07: =====Stream Start: 2014-01-11, 20:09:07===============================================
20:09:07: Multithreaded optimizations: On
20:09:07: Base resolution: 1280x720
20:09:07: Output resolution: 852x480
20:09:07: ------------------------------------------
20:09:07: Loading up D3D10 on ATI Radeon HD 4800 Series (Adapter 1)...
20:09:07: ------------------------------------------
20:09:07: Audio Format: 44100hz
20:09:07: Playback device Default
20:09:07: ------------------------------------------
20:09:07: Using desktop audio input: Głośniki (VIA High Definition Audio)
20:09:08: ------------------------------------------
20:09:08: Using auxilary audio input: Plantronics (VIA High Definition Audio)
20:09:08: ------------------------------------------
20:09:08: Audio Encoding: MP3
20:09:08: bitrate: 128
20:09:08: Using Window Capture
20:09:08: Scene buffering time set to 700
20:09:08: ------------------------------------------
20:09:08: Video Encoding: x264
20:09:08: fps: 25
20:09:08: width: 852, height: 480
20:09:08: preset: faster
20:09:08: profile: main
20:09:08: keyint: 50
20:09:08: CBR: yes
20:09:08: CFR: yes
20:09:08: max bitrate: 500
20:09:08: buffer size: 500
20:09:08: ------------------------------------------
20:09:08: MMDeviceAudioSource: Frequency for device 'Głośniki (VIA High Definition Audio)' is 352800, samples per sec is 44100
20:09:08: MMDeviceAudioSource: Frequency for device 'Plantronics (VIA High Definition Audio)' is 1536000, samples per sec is 192000
20:09:08: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
20:09:10: Using RTMP service: Twitch / Justin.tv
20:09:10: Server selection: rtmp://live-ams.justin.tv/app
20:09:10: Interface: Atheros AR8131 PCI-E Gigabit Ethernet Controller (ethernet, 100 mbps)
20:09:11: Completed handshake with rtmp://live-ams.justin.tv/app in 475 ms.
20:09:12: SO_SNDBUF was at 8192
20:09:12: SO_SNDBUF is now 65536
20:09:45: RTMPPublisher::SocketLoop: Stalled for 2571 ms to write 129710 bytes (buffer: 0 / 131072), unstable connection?
20:09:47: RTMPPublisher::SocketLoop: Stalled for 2472 ms to write 130779 bytes (buffer: 0 / 131072), unstable connection?
20:09:49: RTMPPublisher::SocketLoop: Stalled for 2199 ms to write 130510 bytes (buffer: 0 / 131072), unstable connection?
20:09:52: RTMPPublisher::SocketLoop: Stalled for 2379 ms to write 130462 bytes (buffer: 0 / 131072), unstable connection?
20:09:54: RTMPPublisher::SocketLoop: Stalled for 2224 ms to write 130226 bytes (buffer: 0 / 131072), unstable connection?
20:09:56: RTMPPublisher::SocketLoop: Stalled for 2237 ms to write 129220 bytes (buffer: 0 / 131072), unstable connection?
20:09:58: RTMPPublisher::SocketLoop: Stalled for 2169 ms to write 130229 bytes (buffer: 0 / 131072), unstable connection?
20:10:01: RTMPPublisher::SocketLoop: Stalled for 2462 ms to write 129965 bytes (buffer: 0 / 131072), unstable connection?
20:10:03: RTMPPublisher::SocketLoop: Stalled for 2340 ms to write 130319 bytes (buffer: 0 / 131072), unstable connection?
20:10:05: RTMPPublisher::SocketLoop: Stalled for 2277 ms to write 128735 bytes (buffer: 0 / 131072), unstable connection?
20:10:08: RTMPPublisher::SocketLoop: Stalled for 2205 ms to write 130675 bytes (buffer: 0 / 131072), unstable connection?
20:10:10: RTMPPublisher::SocketLoop: Stalled for 2452 ms to write 129395 bytes (buffer: 0 / 131072), unstable connection?
20:10:12: RTMPPublisher::SocketLoop: Stalled for 2219 ms to write 130171 bytes (buffer: 0 / 131072), unstable connection?
20:10:14: RTMPPublisher::SocketLoop: Stalled for 2109 ms to write 131050 bytes (buffer: 0 / 131072), unstable connection?
20:10:17: RTMPPublisher::SocketLoop: Stalled for 2195 ms to write 129788 bytes (buffer: 0 / 131072), unstable connection?
20:10:17: Total frames encoded: 1715, total frames duplicated: 0 (0.00%)
20:10:17: Total frames rendered: 1717, number of late frames: 1 (0.06%) (it's okay for some frames to be late)
20:10:19: RTMPPublisher::SocketLoop: Aborting due to WSAEnumNetworkEvents failure, 10038
20:10:19: Average send payload: 5530 bytes, average send interval: 81 ms
20:10:19: Number of times waited to send: 16, Waited for a total of 40654 bytes
20:10:19: Number of b-frames dropped: 212 (13%), Number of p-frames dropped: 255 (16%), Total 467 (29%)
20:10:19: Number of bytes sent: 4330424
20:10:19:
20:10:19: Profiler time results:
20:10:19:
20:10:19: ==============================================================
20:10:19: video thread frame - [100%] [avg time: 2.897 ms] [children: 71.7%] [unaccounted: 28.3%]
20:10:19: | scene->Preprocess - [59.3%] [avg time: 1.719 ms]
20:10:19: | GPU download and conversion - [12.4%] [avg time: 0.359 ms] [children: 8.04%] [unaccounted: 4.35%]
20:10:19: | | flush - [7.21%] [avg time: 0.209 ms]
20:10:19: | | CopyResource - [0.552%] [avg time: 0.016 ms]
20:10:19: | | conversion to 4:2:0 - [0.276%] [avg time: 0.008 ms]
20:10:19: Convert444Threads - [100%] [avg time: 0.568 ms] [children: 98.4%] [unaccounted: 1.58%]
20:10:19: | Convert444toNV12 - [98.4%] [avg time: 0.559 ms]
20:10:19: encoder thread frame - [100%] [avg time: 1.015 ms]
20:10:19: ==============================================================
20:10:19:
20:10:19:
20:10:19: Profiler CPU results:
20:10:19:
20:10:19: ==============================================================
20:10:19: video thread frame - [cpu time: avg 1.88 ms, total 3229.22 ms] [avg calls per frame: 1]
20:10:19: | scene->Preprocess - [cpu time: avg 1.026 ms, total 1762.81 ms] [avg calls per frame: 1]
20:10:19: | GPU download and conversion - [cpu time: avg 0.118 ms, total 202.802 ms] [avg calls per frame: 1]
20:10:19: | | flush - [cpu time: avg 0.072 ms, total 124.801 ms] [avg calls per frame: 1]
20:10:19: | | CopyResource - [cpu time: avg 0.009 ms, total 15.6 ms] [avg calls per frame: 1]
20:10:19: | | conversion to 4:2:0 - [cpu time: avg 0.009 ms, total 15.6 ms] [avg calls per frame: 1]
20:10:19: Convert444Threads - [cpu time: avg 0.482 ms, total 1638.01 ms] [avg calls per frame: 2]
20:10:19: | Convert444toNV12 - [cpu time: avg 0.468 ms, total 1591.21 ms] [avg calls per frame: 2]
20:10:19: encoder thread frame - [cpu time: avg 0.597 ms, total 1014.01 ms] [avg calls per frame: 1]
20:10:19: ==============================================================
20:10:19:
20:10:19: =====Stream End: 2014-01-11, 20:10:19=================================================
20:10:19: =====Stream Start: 2014-01-11, 20:10:19===============================================
20:10:19: Multithreaded optimizations: On
20:10:19: Base resolution: 1280x720
20:10:19: Output resolution: 852x480
20:10:19: ------------------------------------------
20:10:19: Loading up D3D10 on ATI Radeon HD 4800 Series (Adapter 1)...
20:10:19: ------------------------------------------
20:10:19: Audio Format: 44100hz
20:10:19: Playback device Default
20:10:19: ------------------------------------------
20:10:19: Using desktop audio input: Głośniki (VIA High Definition Audio)
20:10:19: ------------------------------------------
20:10:19: Using auxilary audio input: Plantronics (VIA High Definition Audio)
20:10:19: ------------------------------------------
20:10:19: Audio Encoding: MP3
20:10:19: bitrate: 128
20:10:19: Using Window Capture
20:10:19: Scene buffering time set to 700
20:10:19: ------------------------------------------
20:10:19: Video Encoding: x264
20:10:19: fps: 25
20:10:19: width: 852, height: 480
20:10:19: preset: faster
20:10:19: profile: main
20:10:19: keyint: 50
20:10:19: CBR: yes
20:10:19: CFR: yes
20:10:19: max bitrate: 500
20:10:19: buffer size: 500
20:10:19: ------------------------------------------
20:10:19: MMDeviceAudioSource: Frequency for device 'Głośniki (VIA High Definition Audio)' is 352800, samples per sec is 44100
20:10:19: MMDeviceAudioSource: Frequency for device 'Plantronics (VIA High Definition Audio)' is 1536000, samples per sec is 192000
20:10:19: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
20:10:21: Using RTMP service: Twitch / Justin.tv
20:10:21: Server selection: rtmp://live-ams.justin.tv/app
20:10:21: Interface: Atheros AR8131 PCI-E Gigabit Ethernet Controller (ethernet, 100 mbps)
20:10:21: Total frames encoded: 32, total frames duplicated: 0 (0.00%)
20:10:21: Total frames rendered: 44, number of late frames: 1 (2.27%) (it's okay for some frames to be late)
20:10:21: Completed handshake with rtmp://live-ams.justin.tv/app in 429 ms.
20:10:22: SO_SNDBUF was at 8192
20:10:22: SO_SNDBUF is now 65536
20:10:22: RTMPPublisher::SocketLoop: Graceful loop exit
20:10:23: Number of times waited to send: 0, Waited for a total of 0 bytes
20:10:23: Number of b-frames dropped: 0 (-1.$%), Number of p-frames dropped: 0 (-1.$%), Total 0 (-1.$%)
20:10:23: Number of bytes sent: 0
20:10:23:
20:10:23: Profiler time results:
20:10:23:
20:10:23: ==============================================================
20:10:23: video thread frame - [100%] [avg time: 2.814 ms] [children: 62%] [unaccounted: 38%]
20:10:23: | scene->Preprocess - [52.6%] [avg time: 1.48 ms]
20:10:23: | GPU download and conversion - [9.38%] [avg time: 0.264 ms] [children: 7.82%] [unaccounted: 1.56%]
20:10:23: | | flush - [6.97%] [avg time: 0.196 ms]
20:10:23: | | CopyResource - [0.498%] [avg time: 0.014 ms]
20:10:23: | | conversion to 4:2:0 - [0.355%] [avg time: 0.01 ms]
20:10:23: Convert444Threads - [100%] [avg time: 0.585 ms] [children: 98.1%] [unaccounted: 1.88%]
20:10:23: | Convert444toNV12 - [98.1%] [avg time: 0.574 ms]
20:10:23: encoder thread frame - [100%] [avg time: 1.093 ms]
20:10:23: ==============================================================
20:10:23:
20:10:23:
20:10:23: Profiler CPU results:
20:10:23:
20:10:23: ==============================================================
20:10:23: video thread frame - [cpu time: avg 2.836 ms, total 124.8 ms] [avg calls per frame: 1]
20:10:23: | scene->Preprocess - [cpu time: avg 1.418 ms, total 62.4 ms] [avg calls per frame: 1]
20:10:23: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:10:23: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:10:23: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:10:23: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:10:23: Convert444Threads - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 2]
20:10:23: | Convert444toNV12 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 2]
20:10:23: encoder thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:10:23: ==============================================================
20:10:23:
20:10:23: =====Stream End: 2014-01-11, 20:10:23=================================================

What you guys think about it ??
 

dodgepong

Administrator
Community Helper
Re: Stream lag spikes on 500 bitrate when i have 2 Mbps uplo

You could be having some throttling issues. Try downloading ShaperProbe and run it and post the results.

Also check out this thread for more troubleshooting tips on dropped frames: viewtopic.php?f=5&t=8870
 

sonynapalony

New Member
Re: Stream lag spikes on 500 bitrate when i have 2 Mbps uplo

ShaperProbe results

DiffProbe release. January 2012. Build 1008.
Shaper Detection Module.

Connected to server 80.239.142.215.

Estimating capacity:
Upstream: 900 Kbps.
Downstream: 13045 Kbps.

The measurement will take upto 2.5 minutes. Please wait.

Checking for traffic shapers:

Upstream: Measurement aborted due to high packet loss rate.

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

For more information, visit: http://www.cc.gatech.edu/~partha/diffprobe
 

dodgepong

Administrator
Community Helper
Re: Stream lag spikes on 500 bitrate when i have 2 Mbps uplo

Upstream: Measurement aborted due to high packet loss rate.
Yep, you're having some throttling/upload dropping issues. See if connecting your computer directly to your modem helps (bypassing your router) and if that doesn't help, you'll need to contact your ISP.
 

sonynapalony

New Member
Re: Stream lag spikes on 500 bitrate when i have 2 Mbps uplo

ShaperProbe results with connecting modem directly to commputer


DiffProbe release. January 2012. Build 1008.
Shaper Detection Module.

Connected to server 4.71.254.149.

Estimating capacity:
Upstream: 1499 Kbps.
Downstream: 12151 Kbps.

The measurement will take upto 2.5 minutes. Please wait.

Checking for traffic shapers:

Upstream: Burst size: 594-631 KB;
Shaping rate: 485 Kbps.

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

And still the same problem now after 16 sec my stream lags :
http://www.twitch.tv/sonynapalony/b/494684917
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: Stream lag spikes on 500 bitrate when i have 2 Mbps uplo

Hm, says 485 Kbps is what it was able to maintain, possible traffic shaping.
 

Boildown

Active Member
Re: Stream lag spikes on 500 bitrate when i have 2 Mbps uplo

sonynapalony said:
so what should i do ?

If you're paying for more upload than that, get an explanation from your ISP.
 
Top