Question / Help High Ping while Streaming and a little bit stuttering video

BamboeCHOP

New Member
Hello,

first of all I wanted to say that OBS looks great and like a real alternative to XSplit. I have 2 problems at the moment but I think with you help I can resolve them. :)

While streaming Dota 2 I have an unstable ping. The ping is around 300-350ms most of the time, sometimes it drops down to around 70ms which is my normal Dota 2 ping. When I streamed with XSplit I didn't get such a high ping. Maybe you will find the reason for this in my log.

My other problem is, that the VoD on Twitch has some stuttering in it. And the video looks like it runs at 21fps, for me a bit to low to enjoy watching. VoD: http://twitch.tv/bamboechop/b/341605034

System and Internet Connection:
Intel Core i5 3570k
8GB Corsair DDR3 RAM
Point of View GeForce GTX 570 2560MB GDDR5



I'm fairly new to the streaming thing, so maybe I just want a bit too much from my connection.

Code:
Open Broadcaster Software v0.432a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory:  8085MB Total, 4575MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 570 
  Video Adapeter Dedicated Video Memory: 2630287360
  Video Adapeter Shared System Memory: 1610760192
------------------------------------------
Adapter 2
  Video Adapter: Intel(R) HD Graphics 4000
  Video Adapeter Dedicated Video Memory: 33554432
  Video Adapeter Shared System Memory: 1711276032
------------------------------------------
Adapter 3
  Video Adapter: Microsoft Basic Render Driver
  Video Adapeter Dedicated Video Memory: 0
  Video Adapeter Shared System Memory: 268435456
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 5.1 speaker setup
------------------------------------------
Using auxilary audio input: FrontMic (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
Using custom x264 settings: "vbvmaxrate=6000"
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 4000
    buffer size: 10000
------------------------------------------
Total frames rendered: 54, number of frames that lagged: 54 (100.00%) (it's okay for some frames to lag)
=====Stream End=======================================================================
Not using send buffering
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 5.1 speaker setup
------------------------------------------
Using auxilary audio input: FrontMic (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
Using custom x264 settings: "vbvmaxrate=6000"
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 4000
    buffer size: 10000
------------------------------------------
Total frames rendered: 14105, number of frames that lagged: 14105 (100.00%) (it's okay for some frames to lag)
Number of b-frames dropped: 1425, Number of p-frames dropped: 0
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 50.009 ms] [avg calls per frame: 1] [children: 98.9%] [unaccounted: 1.12%]
| scene->Preprocess - [86.9%] [avg time: 43.479 ms] [avg calls per frame: 1]
| video encoding and uploading - [11.9%] [avg time: 5.97 ms] [avg calls per frame: 1] [children: 4.84%] [unaccounted: 7.1%]
| | CopyResource - [0.054%] [avg time: 0.027 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.008%] [avg time: 0.004 ms] [avg calls per frame: 0]
| | call to encoder - [4.78%] [avg time: 2.39 ms] [avg calls per frame: 0]
==============================================================

Greetings
'Bamboe
 

hilalpro

Member
Re: High Ping while Streaming and a little bit stuttering vi

Greetings,

your bitrate and buff size might be too much for your upload speed.

i would recommend you set them at 3000 - 3000 and if you still get ridiculous latency after that try 3000 - 1500

disable the custom settings and lower the audio bitrate.. yo don't really need 320kbps . 128kbps is close to transparent for AAC. 192 kbps if you want to be sure.

your cpu is not bad if you can overclock it. but don't you think 1080p @ 60fps is a little heavy ?
 

anhdvu

Member
Re: High Ping while Streaming and a little bit stuttering vi

Your bitrate is too high, so that your upload speed cannot handle it. Your eyes are good xD your stream ran exactly at 20fps. My recommendation is to lower your bitrate and buffersize, remove the custom x264 settings. Try the settings below to see if there is any improvement:
Max Bitrate/Buffer Size: 2500/2000
Quality: 10
FPS: 60
Keep other settings, and lower audio bitrate for the reason hilalpro has stated.
 

BamboeCHOP

New Member
Re: High Ping while Streaming and a little bit stuttering vi

Thanks for your fast answers. :) I'll try to lower the bitrate and buffersize and test some other values.

Is there a way to say OBS that it should record with more than 20fps? In the settings I have 60fps activated, however when I start streaming/recording OBS says 20fps in the bottom right corner. I would like to tell a friend of OBS but he needs more fps when he records his movies.

greetings
'Bamboe
 

anhdvu

Member
Re: High Ping while Streaming and a little bit stuttering vi

I don't think you will have any problem with your own settings if you record locally. However, when it comes to live-streaming, your upload speed is a big concern because it decides if you will have frame drops.
With your PC specs, you should not have any problem to record at 60 fps.
 

hilalpro

Member
Re: High Ping while Streaming and a little bit stuttering vi

BamboeCHOP said:
Thanks for your fast answers. :) I'll try to lower the bitrate and buffersize and test some other values.

Is there a way to say OBS that it should record with more than 20fps? In the settings I have 60fps activated, however when I start streaming/recording OBS says 20fps in the bottom right corner. I would like to tell a friend of OBS but he needs more fps when he records his movies.

greetings
'Bamboe
have you tried disabling aero ? tik that restart obs and see. i still don't think 1080p 60fps would be easy on your processor.

30fps might be a good idea since you're lowering your bitrate anyways
 

Krazy

Town drunk
Re: High Ping while Streaming and a little bit stuttering vi

Honestly, 1080p @60fps is going to be quite difficult, even with a super overclocked i7. There's also no reason to have your stream res that high. 720p with a solid bitrate and 60fps looks insanely clear and is vastly less strain on your system.

I would definitely use the recent test build in the Feedback forums and use game capture for DotA2 as that's one of the games that works really really well with it.

For the record, I stream 720p @60fps with only 2800 bitrate and it looks extremely clear, even at fullscreen. You can probably even handle the "Faster" encoding preset for additional clarity.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: High Ping while Streaming and a little bit stuttering vi

The send buffer size in advanced can often cause high ping in multiplayer games. You may want to set it to a lower value (never turn off the send buffer though). We're going to take out the higher values in the next version.
 

BamboeCHOP

New Member
Re: High Ping while Streaming and a little bit stuttering vi

1080p @60fps is changed to 720p @60fps. Will test it later today. The test build I will try afterwards.

@hilalpro Does disable aero help under Windows 8? As I know Windows 8 doesn't have Aero included anymore.

@anhdvu Don't know why, but on a local recording I have around 20fps, which is really not enjoyable. :S
 

Krazy

Town drunk
Re: High Ping while Streaming and a little bit stuttering vi

Windows 8 permanently has Aero on, you can't turn it off.
 

anhdvu

Member
Re: High Ping while Streaming and a little bit stuttering vi

Have you tried local recording with lower bitrate? something like 3000/3000 (Maxrate/Bufsize)
Also, check your CPU usage while you are broadcasting + playing.
 
Top