Question / Help Laggy Stream - Bitrate Question

phnt0m

New Member
Hello,

If I increase my bitrate to anything past 1500, my latency skyrockets after a few minutes and I can't figure out why. My internet speed is about 30 down and anywhere from 20-30 up. I'm running a i7 2600k, 8 GB DDR3, 2xGTX 470 SLI, windows 7 ultimate x64.

Any help or guidance would be greatly appreciated!

Here's my speedtest result:
2480417424.png
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Define latency. Game latency? Stream latency? If you're having problems with your game ping or something then you should use the low latency mode in the latest test versio
 

phnt0m

New Member
Hi Jim (great first name btw). I get latency in both game and on the stream. My overall connection goes to sh*t. In game, for example, my ping will steadily rise and then bounce between 300-500 ms (when I should be pinging around 20-50). The stream itself just gets very choppy and laggy.

I guess I'll give low latency mode a try, but I still feel that with my speeds I should be able to use a bitrate at 2000+. Back when I only had a 5 Mbps upload I could do a 2000 bitrate on xsplit or RecCentral without issue.

EDIT: I still haven't tried the test build yet, but I was able to stream at 2000 bitrate without lag. I think this is a result of me telling Windows 7 not to reserve 20% of my bandwidth through GPEdit, but I'm not sure. I tried 2000 - it worked. I tried 3000 - it lagged after a few minutes. I tried 2500 - it lagged after a few minutes. I tried 2000 again to be sure - it still worked.

Attached is my log file. What's happening when I try to go above 2000? With 20+ Mbps upload, shouldn't I be able to go considerably higher than 2000?

Code:
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU Speed: 3502MHz
Physical Memory:  4095MB Total, 3316MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 470
  Video Adapter Dedicated Video Memory: 1293352960
  Video Adapter Shared System Memory: 2952937472
------------------------------------------
Adapter 2
  Video Adapter: NVIDIA GeForce GTX 470
  Video Adapter Dedicated Video Memory: 1293484032
  Video Adapter Shared System Memory: 2952806400
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Creative SB X-Fi)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
    device: AVerMedia HD Capture C985 Bus 3,
    device id \\?\pci#ven_1af2&dev_a001&subsys_a0011af2&rev_00#4&1b89d1f&0&00e0#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{957bd672-7934-4b55-b81a-3e22b14c679a},
    chosen type: YV12, usingFourCC: true, res: 1280x720 - 1280x720, fps: 15-60.0002, fourCC: 'YV12'

    device audio info - bits per sample: 16, channels: 2, samples per sec: 48000
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2000
    buffer size: 2000
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-3c.justin.tv/app
bufferTime: 1400, outputRateWindowTime: 1000, dropThreshold: 1900
Warning -- MMDeviceAudioSource::GetBuffer: woa woa woa, getting timestamp errors from the audio subsystem.  device = Speakers (Creative SB X-Fi)
Total frames rendered: 58264, number of frames that lagged: 5522 (9.48%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Creative SB X-Fi)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
    device: AVerMedia HD Capture C985 Bus 3,
    device id \\?\pci#ven_1af2&dev_a001&subsys_a0011af2&rev_00#4&1b89d1f&0&00e0#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{957bd672-7934-4b55-b81a-3e22b14c679a},
    chosen type: YV12, usingFourCC: true, res: 1280x720 - 1280x720, fps: 15-60.0002, fourCC: 'YV12'

    device audio info - bits per sample: 16, channels: 2, samples per sec: 48000
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 3000
    buffer size: 3000
    quality: 9
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-3c.justin.tv/app
bufferTime: 1486, outputRateWindowTime: 1000, dropThreshold: 1986
RTMPPublisher::BufferedSend: Buffer is full (399727 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (399727 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (399600 / 400384 bytes), waiting to send 1053 bytes
RTMPPublisher::BufferedSend: Buffer is full (399600 / 400384 bytes), waiting to send 1053 bytes
RTMPPublisher::BufferedSend: Buffer is full (398600 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (400117 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (397331 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (400124 / 400384 bytes), waiting to send 543 bytes
RTMPPublisher::BufferedSend: Buffer is full (400218 / 400384 bytes), waiting to send 441 bytes
RTMPPublisher::BufferedSend: Buffer is full (396695 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (397261 / 400384 bytes), waiting to send 3294 bytes
RTMPPublisher::BufferedSend: Buffer is full (396951 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (400051 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (397505 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (397505 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (398760 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (396386 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (400025 / 400384 bytes), waiting to send 2518 bytes
RTMPPublisher::BufferedSend: Buffer is full (398975 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (398515 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (396957 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (396957 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (400220 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (400006 / 400384 bytes), waiting to send 4003 bytes
RTMPPublisher::BufferedSend: Buffer is full (398751 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (396528 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (396303 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (397451 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (397819 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (397026 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (396680 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (400215 / 400384 bytes), waiting to send 540 bytes
RTMPPublisher::BufferedSend: Buffer is full (396827 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (400250 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (400250 / 400384 bytes), waiting to send 4097 bytes
Total frames rendered: 6453, number of frames that lagged: 467 (7.24%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 665 (6.1%), Number of p-frames dropped: 636 (5.8%), Total 1301 (12%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Creative SB X-Fi)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
    device: AVerMedia HD Capture C985 Bus 3,
    device id \\?\pci#ven_1af2&dev_a001&subsys_a0011af2&rev_00#4&1b89d1f&0&00e0#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{957bd672-7934-4b55-b81a-3e22b14c679a},
    chosen type: YV12, usingFourCC: true, res: 1280x720 - 1280x720, fps: 15-60.0002, fourCC: 'YV12'

    device audio info - bits per sample: 16, channels: 2, samples per sec: 48000
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 9
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-3c.justin.tv/app
bufferTime: 1400, outputRateWindowTime: 1000, dropThreshold: 1900
RTMPPublisher::BufferedSend: Buffer is full (333942 / 335872 bytes), waiting to send 2494 bytes
RTMPPublisher::BufferedSend: Buffer is full (333942 / 335872 bytes), waiting to send 2494 bytes
RTMPPublisher::BufferedSend: Buffer is full (335724 / 335872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (335724 / 335872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (335131 / 335872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (335131 / 335872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (334933 / 335872 bytes), waiting to send 2218 bytes
RTMPPublisher::BufferedSend: Buffer is full (334933 / 335872 bytes), waiting to send 2218 bytes
RTMPPublisher::BufferedSend: Buffer is full (333804 / 335872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (335551 / 335872 bytes), waiting to send 373 bytes
RTMPPublisher::BufferedSend: Buffer is full (333582 / 335872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (334345 / 335872 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (333667 / 335872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (332269 / 335872 bytes), waiting to send 4104 bytes
Total frames rendered: 7851, number of frames that lagged: 881 (11.22%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of b-frames dropped: 147 (1.1%), Number of p-frames dropped: 99 (0.74%), Total 246 (1.8%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Creative SB X-Fi)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
    device: AVerMedia HD Capture C985 Bus 3,
    device id \\?\pci#ven_1af2&dev_a001&subsys_a0011af2&rev_00#4&1b89d1f&0&00e0#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{957bd672-7934-4b55-b81a-3e22b14c679a},
    chosen type: YV12, usingFourCC: true, res: 1280x720 - 1280x720, fps: 15-60.0002, fourCC: 'YV12'

    device audio info - bits per sample: 16, channels: 2, samples per sec: 48000
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2000
    buffer size: 2000
    quality: 9
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-3c.justin.tv/app
bufferTime: 1400, outputRateWindowTime: 1000, dropThreshold: 1900
Total frames rendered: 33101, number of frames that lagged: 1670 (5.05%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 10.401 ms] [avg calls per frame: 1] [children: 95.3%] [unaccounted: 4.72%]
| scene->Preprocess - [5.46%] [avg time: 0.568 ms] [avg calls per frame: 1]
| video encoding and uploading - [89.8%] [avg time: 9.342 ms] [avg calls per frame: 1] [children: 10.9%] [unaccounted: 78.9%]
| | CopyResource - [0.212%] [avg time: 0.022 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0192%] [avg time: 0.002 ms] [avg calls per frame: 0]
| | call to encoder - [10.6%] [avg time: 1.099 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0769%] [avg time: 0.008 ms] [avg calls per frame: 0]
==============================================================
 

Grimio

Member
Please do try it again. Also, you can try the new test 11 version which works great for many people.
 

phnt0m

New Member
So speedtest.net and my ISP might be lying to me. Every speed test that I run, I get great results 20+ Mbps, but when I ran ShaperProbe it reported that my actual upload is closer to 2.1 Mbps up. I guess this would explain why everything lags when I use more than 2000...
 
Top