Question / Help 20mbps/ Still lag, Help Please!

Eephase

New Member
Wfgg8NK


I have a pretty good upload speed, and I don't understand why I still lag when I have an average bit rate ( I can't go past an 1800 bit rate.)

Wouldn't a 20mbps upload speed allow me to have a high bit rate? And whenever I stream at 1800 it doesn't look that great. So I really want to upgrade the quality.

Any help would be greatly appreciated

Here is my log.

Code:
01:32:29: Open Broadcaster Software v0.571b - 32bit (´・ω・`)
01:32:29: -------------------------------
01:32:29: CPU Name: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
01:32:29: CPU Speed: 3192MHz
01:32:29: Physical Memory:  4095MB Total, 4095MB Free
01:32:29: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
01:32:29: monitor 1: pos={0, 0}, size={1600, 900}
01:32:29: Windows Version: 6.1 Build 7601 S
01:32:29: Aero is Disabled
01:32:29: -------------------------------
01:32:29: OBS Modules:
01:32:29: Base Address     Module
01:32:29: 00E00000         OBS.exe
01:32:29: 6E150000         OBSApi.dll
01:32:29: 6F3C0000         DShowPlugin.dll
01:32:29: 6FC50000         GraphicsCapture.dll
01:32:29: 6F3A0000         NoiseGate.dll
01:32:29: 6F380000         PSVPlugin.dll
01:32:29: ------------------------------------------
01:32:29: Adapter 1
01:32:29:   Video Adapter: ATI Radeon HD 5700 Series
01:32:29:   Video Adapter Dedicated Video Memory: 1060995072
01:32:29:   Video Adapter Shared System Memory: 3233906688
01:32:29: =====Stream Start: 2013-10-16, 01:32:29===============================================
01:32:29:   Multithreaded optimizations: On
01:32:29:   Base resolution: 1600x900
01:32:29:   Output resolution: 1280x720
01:32:29: ------------------------------------------
01:32:29: Loading up D3D10 on ATI Radeon HD 5700 Series...
01:32:30: ------------------------------------------
01:32:30: Audio Format: 48000hz
01:32:30: Playback device {0.0.0.00000000}.{6571d350-97b2-43d0-a4f4-fcc52048dd5e}
01:32:30: ------------------------------------------
01:32:30: Using desktop audio input: Speakers (Turtle Beach P11 Headset)
01:32:30: ------------------------------------------
01:32:30: Using auxilary audio input: Microphone (Turtle Beach P11 Headset)
01:32:30: ------------------------------------------
01:32:30: Audio Encoding: AAC
01:32:30:     bitrate: 160
01:32:30: Using graphics capture
01:32:30: ------------------------------------------
01:32:30: Video Encoding: x264
01:32:30:     fps: 30
01:32:30:     width: 1280, height: 720
01:32:30:     preset: veryfast
01:32:30:     profile: high
01:32:30:     keyint: 60
01:32:30:     CBR: yes
01:32:30:     CFR: no
01:32:30:     max bitrate: 3500
01:32:30:     buffer size: 3500
01:32:30: ------------------------------------------
01:32:30: MMDeviceAudioSource: Frequency for device 'Speakers (Turtle Beach P11 Headset)' is 384000, samples per sec is 48000
01:32:30: MMDeviceAudioSource: Frequency for device 'Microphone (Turtle Beach P11 Headset)' is 384000, samples per sec is 48000
01:32:31: Using RTMP service: Twitch / Justin.tv
01:32:31:   Server selection: rtmp://live-dfw.justin.tv/app
01:32:31:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
01:32:31: Completed handshake with rtmp://live-dfw.justin.tv/app in 117 ms.
01:32:32: SO_SNDBUF was at 8192
01:32:32: SO_SNDBUF is now 65536
01:32:37: Using Monitor Capture
01:32:38: RTMPPublisher::Socketloop: Increasing send buffer to ISB 262144 (buffer: 22151 / 467968)
01:32:44: RTMPPublisher::Socketloop: Increasing send buffer to ISB 524288 (buffer: 0 / 467968)
01:32:50: RTMPPublisher::Socketloop: Increasing send buffer to ISB 1048576 (buffer: 0 / 467968)
01:32:56: RTMPPublisher::SendLoop: Stalled for 1560 ms to write 464493 bytes (buffer: 0 / 467968), unstable connection?
01:32:58: RTMPPublisher::SendLoop: Stalled for 1641 ms to write 346338 bytes (buffer: 0 / 467968), unstable connection?
01:32:59: RTMPPublisher::SendLoop: Stalled for 1711 ms to write 465873 bytes (buffer: 0 / 467968), unstable connection?
01:33:01: RTMPPublisher::SendLoop: Stalled for 1745 ms to write 464850 bytes (buffer: 0 / 467968), unstable connection?
01:33:04: RTMPPublisher::SendLoop: Stalled for 1714 ms to write 467291 bytes (buffer: 0 / 467968), unstable connection?
01:33:06: RTMPPublisher::SendLoop: Stalled for 1706 ms to write 466133 bytes (buffer: 0 / 467968), unstable connection?
01:33:08: RTMPPublisher::SendLoop: Stalled for 1882 ms to write 464279 bytes (buffer: 0 / 467968), unstable connection?
01:33:09: RTMPPublisher::SendLoop: Stalled for 1600 ms to write 466185 bytes (buffer: 0 / 467968), unstable connection?
01:33:11: RTMPPublisher::SendLoop: Stalled for 1718 ms to write 465376 bytes (buffer: 0 / 467968), unstable connection?
01:33:13: RTMPPublisher::SendLoop: Stalled for 1718 ms to write 467441 bytes (buffer: 0 / 467968), unstable connection?
01:33:14: RTMPPublisher::SendLoop: Stalled for 1734 ms to write 467439 bytes (buffer: 0 / 467968), unstable connection?
01:33:16: RTMPPublisher::SendLoop: Stalled for 1712 ms to write 467672 bytes (buffer: 0 / 467968), unstable connection?
01:33:18: RTMPPublisher::SendLoop: Stalled for 1714 ms to write 466261 bytes (buffer: 0 / 467968), unstable connection?
01:33:20: RTMPPublisher::SendLoop: Stalled for 1749 ms to write 467712 bytes (buffer: 0 / 467968), unstable connection?
01:33:21: RTMPPublisher::SendLoop: Stalled for 1712 ms to write 466520 bytes (buffer: 0 / 467968), unstable connection?
01:33:23: RTMPPublisher::SendLoop: Stalled for 1738 ms to write 467505 bytes (buffer: 0 / 467968), unstable connection?
01:33:25: RTMPPublisher::SendLoop: Stalled for 1716 ms to write 465220 bytes (buffer: 0 / 467968), unstable connection?
01:33:27: RTMPPublisher::SendLoop: Stalled for 1866 ms to write 466800 bytes (buffer: 0 / 467968), unstable connection?
01:33:28: RTMPPublisher::SendLoop: Stalled for 1584 ms to write 465777 bytes (buffer: 0 / 467968), unstable connection?
01:33:30: RTMPPublisher::SendLoop: Stalled for 1698 ms to write 466390 bytes (buffer: 0 / 467968), unstable connection?
01:33:32: RTMPPublisher::SendLoop: Stalled for 1724 ms to write 466379 bytes (buffer: 0 / 467968), unstable connection?
01:33:33: RTMPPublisher::SendLoop: Stalled for 1762 ms to write 455036 bytes (buffer: 0 / 467968), unstable connection?
01:33:35: RTMPPublisher::SendLoop: Stalled for 1707 ms to write 467247 bytes (buffer: 0 / 467968), unstable connection?
01:33:37: RTMPPublisher::SendLoop: Stalled for 1732 ms to write 467729 bytes (buffer: 0 / 467968), unstable connection?
01:33:39: RTMPPublisher::SendLoop: Stalled for 1682 ms to write 465698 bytes (buffer: 0 / 467968), unstable connection?
01:33:40: RTMPPublisher::SendLoop: Stalled for 1741 ms to write 427417 bytes (buffer: 0 / 467968), unstable connection?
01:33:42: RTMPPublisher::SendLoop: Stalled for 1725 ms to write 466314 bytes (buffer: 0 / 467968), unstable connection?
01:33:43: Total frames encoded: 2182, total frames duplicated: 5 (0.23%)
01:33:43: Total frames rendered: 2186, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
01:33:44: RTMPPublisher::SendLoop: Stalled for 1730 ms to write 188210 bytes (buffer: 0 / 467968), unstable connection?
01:33:44: RTMPPublisher::SocketLoop: Graceful loop exit
01:33:48: Average send payload: 24020 bytes, average send interval: 74 ms
01:33:48: Number of times waited to send: 30, Waited for a total of 104177 bytes
01:33:48: Number of b-frames dropped: 334 (16%), Number of p-frames dropped: 391 (19%), Total 725 (35%)
01:33:48: Number of bytes sent: 22819365
01:33:48: 
01:33:48: Profiler time results:
01:33:48: 
01:33:48: ==============================================================
01:33:48: video thread frame - [100%] [avg time: 5.938 ms] [children: 87%] [unaccounted: 13%]
01:33:48: | scene->Preprocess - [87%] [avg time: 5.165 ms]
01:33:48: GPU download and conversion - [100%] [avg time: 0.396 ms] [children: 90.2%] [unaccounted: 9.85%]
01:33:48: | flush - [85.9%] [avg time: 0.34 ms]
01:33:48: | CopyResource - [2.53%] [avg time: 0.01 ms]
01:33:48: | conversion to 4:2:0 - [1.77%] [avg time: 0.007 ms]
01:33:48: Convert444Threads - [100%] [avg time: 0.77 ms] [children: 99.1%] [unaccounted: 0.909%]
01:33:48: | Convert444toNV12 - [99.1%] [avg time: 0.763 ms]
01:33:48: encoder thread frame - [100%] [avg time: 0.973 ms]
01:33:48: ==============================================================
01:33:48: 
01:33:48: 
01:33:48: Profiler CPU results:
01:33:48: 
01:33:48: ==============================================================
01:33:48: video thread frame - [cpu time: avg 3.032 ms, total 6630.04 ms] [avg calls per frame: 1]
01:33:48: | scene->Preprocess - [cpu time: avg 2.626 ms, total 5740.84 ms] [avg calls per frame: 1]
01:33:48: GPU download and conversion - [cpu time: avg 0.021 ms, total 46.801 ms] [avg calls per frame: 1]
01:33:48: | flush - [cpu time: avg 0.014 ms, total 31.2 ms] [avg calls per frame: 1]
01:33:48: | CopyResource - [cpu time: avg 0.007 ms, total 15.601 ms] [avg calls per frame: 1]
01:33:48: | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
01:33:48: Convert444Threads - [cpu time: avg 0.632 ms, total 2745.62 ms] [avg calls per frame: 2]
01:33:48: | Convert444toNV12 - [cpu time: avg 0.632 ms, total 2745.62 ms] [avg calls per frame: 2]
01:33:48: encoder thread frame - [cpu time: avg 0.359 ms, total 780.005 ms] [avg calls per frame: 1]
01:33:48: ==============================================================
01:33:48: 
01:33:48: =====Stream End: 2013-10-16, 01:33:48=================================================
01:33:49: =====Stream Start: 2013-10-16, 01:33:49===============================================
01:33:49:   Multithreaded optimizations: On
01:33:49:   Base resolution: 1600x900
01:33:49:   Output resolution: 1280x720
01:33:49: ------------------------------------------
01:33:49: Loading up D3D10 on ATI Radeon HD 5700 Series...
01:33:49: ------------------------------------------
01:33:49: Audio Format: 48000hz
01:33:49: Playback device {0.0.0.00000000}.{6571d350-97b2-43d0-a4f4-fcc52048dd5e}
01:33:49: ------------------------------------------
01:33:49: Using desktop audio input: Speakers (Turtle Beach P11 Headset)
01:33:49: ------------------------------------------
01:33:49: Using auxilary audio input: Microphone (Turtle Beach P11 Headset)
01:33:49: ------------------------------------------
01:33:49: Audio Encoding: AAC
01:33:49:     bitrate: 160
01:33:49: Using Monitor Capture
01:33:49: ------------------------------------------
01:33:49: Video Encoding: x264
01:33:49:     fps: 30
01:33:49:     width: 1280, height: 720
01:33:49:     preset: veryfast
01:33:49:     profile: high
01:33:49:     keyint: 60
01:33:49:     CBR: yes
01:33:49:     CFR: no
01:33:49:     max bitrate: 2200
01:33:49:     buffer size: 2200
01:33:49: ------------------------------------------
01:33:49: MMDeviceAudioSource: Frequency for device 'Speakers (Turtle Beach P11 Headset)' is 384000, samples per sec is 48000
01:33:49: MMDeviceAudioSource: Frequency for device 'Microphone (Turtle Beach P11 Headset)' is 384000, samples per sec is 48000
01:33:51: Using RTMP service: Twitch / Justin.tv
01:33:51:   Server selection: rtmp://live-dfw.justin.tv/app
01:33:51:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
01:33:51: Completed handshake with rtmp://live-dfw.justin.tv/app in 118 ms.
01:33:52: SO_SNDBUF was at 8192
01:33:52: SO_SNDBUF is now 65536
01:33:55: RTMPPublisher::Socketloop: Increasing send buffer to ISB 262144 (buffer: 0 / 302080)
01:34:07: RTMPPublisher::Socketloop: Increasing send buffer to ISB 524288 (buffer: 0 / 302080)
01:35:11: RTMPPublisher::SendLoop: Stalled for 1730 ms to write 299426 bytes (buffer: 0 / 302080), unstable connection?
01:35:28: Total frames encoded: 2936, total frames duplicated: 25 (0.85%)
01:35:28: Total frames rendered: 2941, number of late frames: 1 (0.03%) (it's okay for some frames to be late)
01:35:29: RTMPPublisher::SocketLoop: Graceful loop exit
01:35:31: Average send payload: 10227 bytes, average send interval: 35 ms
01:35:31: Number of times waited to send: 19, Waited for a total of 77418 bytes
01:35:31: Number of b-frames dropped: 44 (1.5%), Number of p-frames dropped: 29 (1%), Total 73 (2.6%)
01:35:31: Number of bytes sent: 27644110
01:35:31: 
01:35:31: Profiler time results:
01:35:31: 
01:35:31: ==============================================================
01:35:31: video thread frame - [100%] [avg time: 6.642 ms] [children: 89.1%] [unaccounted: 10.9%]
01:35:31: | scene->Preprocess - [89.1%] [avg time: 5.92 ms]
01:35:31: GPU download and conversion - [100%] [avg time: 0.237 ms] [children: 88.2%] [unaccounted: 11.8%]
01:35:31: | flush - [81.4%] [avg time: 0.193 ms]
01:35:31: | CopyResource - [3.8%] [avg time: 0.009 ms]
01:35:31: | conversion to 4:2:0 - [2.95%] [avg time: 0.007 ms]
01:35:31: Convert444Threads - [100%] [avg time: 0.736 ms] [children: 99.2%] [unaccounted: 0.815%]
01:35:31: | Convert444toNV12 - [99.2%] [avg time: 0.73 ms]
01:35:31: encoder thread frame - [100%] [avg time: 1.055 ms]
01:35:31: ==============================================================
01:35:31: 
01:35:31: 
01:35:31: Profiler CPU results:
01:35:31: 
01:35:31: ==============================================================
01:35:31: video thread frame - [cpu time: avg 3.124 ms, total 9188.46 ms] [avg calls per frame: 1]
01:35:31: | scene->Preprocess - [cpu time: avg 2.71 ms, total 7971.66 ms] [avg calls per frame: 1]
01:35:31: GPU download and conversion - [cpu time: avg 0.063 ms, total 187.2 ms] [avg calls per frame: 1]
01:35:31: | flush - [cpu time: avg 0.047 ms, total 140.4 ms] [avg calls per frame: 1]
01:35:31: | CopyResource - [cpu time: avg 0.005 ms, total 15.6 ms] [avg calls per frame: 1]
01:35:31: | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
01:35:31: Convert444Threads - [cpu time: avg 0.738 ms, total 4321.23 ms] [avg calls per frame: 2]
01:35:31: | Convert444toNV12 - [cpu time: avg 0.733 ms, total 4290.03 ms] [avg calls per frame: 2]
01:35:31: encoder thread frame - [cpu time: avg 0.432 ms, total 1263.61 ms] [avg calls per frame: 1]
01:35:31: ==============================================================
01:35:31: 
01:35:31: =====Stream End: 2013-10-16, 01:35:31=================================================
 
3500 is pretty high. And with Twitch having trouble distributing high bitrates, especially in Europe lately, you might not want to stream at that bitrate. For example, I have 100mbps up/down, but I can't watch a 3500kbps stream without it stuttering like hell.

That said, speed tests are not reliable for determining your streaming speed. I could recommend other speedtests, like testmy.net for example. But in the end, the only real test is trying to stream. The only option you really have is to try some different ingest servers, and see which one works best for you.
 
Well even at a 2200 bit rate I still drop frames. But what I think the problem is that its my ISP, I have cox cable and I think they mess with my speed if I'm doing something pretty extreme with it ( like streaming. ) I believe it's called throttling? Do you know if there is any way to fix this? Because it only happens about a minute after I start streaming with a high bit rate. It doesn't lag immediately, which is odd.
 
That does sound like throttling yes. ISPs sometimes tend to boost your speed for the first few minutes to make the connection score higher on speedtests. This appears to be what they are doing. If you can indeed stream for about a minute without problems, then the Twitch ingest server isn't the problem.

Actually, one different server is a bit meagre, you appear to be in North America, so you could theoretically try any NA server. But like you said, your ISP might be the issue, then there's not much you can do about it, except perhaps contact them and ask them if they can do anything about those speeds.

Also, I don't know which game you are streaming, but 720p30 at around 1800kbps should provide a pretty decent image, unless it's very high motion. You might try going up a notch from veryfast to faster on your c264 preset to see if you can improve the quality a bit at lower bitrates, if your cpu can handle it.
 
Thanks for the help. At least I found the problem, but I will try "veryfast" and see if it helps. Thanks again : )
 
I would strongly recommend running Shaperprobe to try to confirm if you are being traffic-shaped or throttled:
http://www.cc.gatech.edu/grads/p/partha ... probe.html

Is that 20mbps what your ISP is telling you? Please run a 6MB test at http://www.testmy.net/upload to find out what you actually are getting as constant throughput.

Also, 720p@30 will run fine at 1500kbps; 3500 is ridiculously high. Especially if you're not partnered... you'll get a TON of complaints about stutter, buffering, and other problems. At most, I'd go 2000kbps on that res and rate; coincidentally the max recommended by Twitch for non-partnered streamers. A livestream will never give perfect 1:1 fidelity... there's a point where you simply have to manage expectations.

I'd recommend using JTVPing (http://www.teamliquid.net/forum/viewmes ... _id=326034) to find your lowest-ping local ingest server. A combination of that and a lower bitrate will allow for smoother streaming to a wider viewerbase (including EU from the US, or vice-versa). Unless it's the UK or Amsterdam, which is ****ed due to the UK ingest being down for 'emergency maintenance' for another few months and routing everything transparently to the Amsterdam ingest.

I'd also recommend dropping your audio bitrate to 96kbps or 128kbps at MOST; 160 is completely unnecessary and with AAC the quality difference between the two is almost unnoticeable. It'll help you cut down on unnecessary bitrate wastage.
 
Back
Top