Question / Help Awfully Confused With CBR And OBS

VW87

New Member
I have been a hell of a time with OBS and the CBR Feature within OBS Software. I am coming from xsplit so i might be thinking that their cbr is exactly like cbr in OBS but i don't think the OBS CBR works for me that well.

Currently the max buffer i can use is 1000 to 1500 so i set the max buffer to 1500 and the buffer to 1000 with custom buffer
this is what it currently looks like
UwCKBG3.png


Now I am not running the best computer but with xsplit I am able to pull off 720p pretty fine but my current pc specs are

CPU: Intel Core i3 2120 @ 3.30GHz Sandy Bridge
RAM: 6.00 GB Dual-Channel DDR3 @ 665MHz (9-9-9-24)
Graphics Card: NVIDIA GeForce GT 610

I am not sure what the best settings would even be for a low end computer like mine to give a decent stream with OBS, I am fairly knew to streaming and any help would be great.

Also this is my current advance settings if that matters

6i5TKlP.png


Thank you for your time.
 

Jack0r

The Helping Squad
I am not sure what your problem is right now. You can first off try to use the settings that worked for you in XSplit and see what results you get with them in OBS. With your Processor it will definetly involve some tweaking to get a smooth stream running.
So please tell us what your exact problem is, or what you need help with :)
 

VW87

New Member
Jack0r said:
I am not sure what your problem is right now. You can first off try to use the settings that worked for you in XSplit and see what results you get with them in OBS. With your Processor it will definetly involve some tweaking to get a smooth stream running.
So please tell us what your exact problem is, or what you need help with :)
Yea, i am so sorry about that... I wrote the whole thing without giving my issue

The issue i am having that even tho i set it to 1500 for Max Buffer my stream bitrate hits 2000-2500 and causing frame drop and stutter with my stream

I have tried 3 servers with twitch and even tried my exact xsplit settings with no progress. I am not sure if i am missing something else or if i am misunderstanding how the CBR works in OBS compared to xsplit.

When i use xsplit with strict cbr, the most i see my bitrate hit is 1600-1650.
 

VW87

New Member
Jack0r said:

not to be a pain in the ass but this really doesn't help me.

They are using twice as much bitrate and are downscaling the video size.

I always play my games in window mode/borderless window 1280x720 and have no downscale.
I was 720P so if i did downscale, would that not mean it would reduce my resolution on twitch?

I tried lowering quality down to 5 to 7 and still happens. I am connected to New York server for twitch because it is the best server for my stream.

My cpu doesn't strain nor does my gpu max out when i stream just don't know how the cbr doesn't work as well as xsplits. Maybe obs and my current computer/internet are to low end for OBS or something.
 

Jack0r

The Helping Squad
ehm sorry, you should only read hilalpros post, i gonna quote it for you:

Make sure you tick CBR and Then do the following.
[(1/yourFPS)*bitrate] = the custom vbv-bufsize you wanna set. This will ensure that your video buffer is one frame in size and should result in a 100% flat bitrate regardless of what's happening. as long as you're not currently having frame drop/lag issues.
 

VW87

New Member
Jack0r said:
ehm sorry, you should only read hilalpros post, i gonna quote it for you:

Make sure you tick CBR and Then do the following.
[(1/yourFPS)*bitrate] = the custom vbv-bufsize you wanna set. This will ensure that your video buffer is one frame in size and should result in a 100% flat bitrate regardless of what's happening. as long as you're not currently having frame drop/lag issues.


Ya not going to lie, I am confused by the [(1/yourFPS)*bitrate]

I honestly don't know what how to figure that out.

this is what has been confusing about that post.
 

Krazy

Town drunk
Assuming your FPS is 30, you do this [(1/30)*1500]=50. That's what your custom buffer size should be according to this particular method.

Having said that, do note that this will destroy your stream quality.

I'm really not sure why you are getting such wild bitrate fluctuations with CBR checked, though. I've tested and checked thoroughly, and when CBR is enabled for me, my bitrate stays incredibly constant, barely varying by even 100kbps either way. I would appreciate an OBS log file, it may shed some light onto what is going on.
 

VW87

New Member
Krazy said:
Assuming your FPS is 30, you do this [(1/30)*1500]=50. That's what your custom buffer size should be according to this particular method.

Having said that, do note that this will destroy your stream quality.

I'm really not sure why you are getting such wild bitrate fluctuations with CBR checked, though. I've tested and checked thoroughly, and when CBR is enabled for me, my bitrate stays incredibly constant, barely varying by even 100kbps either way. I would appreciate an OBS log file, it may shed some light onto what is going on.


LOG FILE
Code:
21:41:57: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
21:41:57: -------------------------------
21:41:57: CPU Name: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
21:41:57: CPU Speed: 3292MHz
21:41:57: Physical Memory:  6124MB Total, 3257MB Free
21:41:57: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 2
21:41:57: monitor 1: pos={0, 0}, size={1680, 1050}
21:41:57: monitor 2: pos={-1920, 0}, size={1920, 1080}
21:41:57: Windows Version: 6.1 Build 7601 S
21:41:57: Aero is Disabled
21:41:57: -------------------------------
21:41:57: OBS Modules:
21:41:57: Base Address     Module
21:41:57: 000000003FD60000 OBS.exe
21:41:57: 00000000F59C0000 OBSApi.dll
21:41:57: 00000000F5990000 DShowPlugin.dll
21:41:57: 00000000F5960000 GraphicsCapture.dll
21:41:57: 00000000F5940000 NoiseGate.dll
21:41:57: ------------------------------------------
21:41:57: Adapter 1
21:41:57:   Video Adapter: NVIDIA GeForce GT 610
21:41:57:   Video Adapter Dedicated Video Memory: 2096562176
21:41:57:   Video Adapter Shared System Memory: 2147037184
21:41:57: =====Stream Start: 2013-05-12, 21:41:57===============================================
21:41:57:   Multithreaded optimizations: On
21:41:57:   Base resolution: 1280x720
21:41:57:   Output resolution: 1280x720
21:41:57: ------------------------------------------
21:41:57: Loading up D3D10...
21:41:57: Playback device {0.0.0.00000000}.{f9e8a68f-8c65-4871-bf5b-cd35a649770d}
21:41:57: ------------------------------------------
21:41:57: Using desktop audio input: Speakers (Realtek High Definition Audio)
21:41:57: ------------------------------------------
21:41:57: Using auxilary audio input: Microphone (Realtek High Definition Audio)
21:41:57: ------------------------------------------
21:41:57: Audio Encoding: MP3
21:41:57:     bitrate: 128
21:41:57: Using graphics capture
21:41:57: ------------------------------------------
21:41:57: Video Encoding: x264
21:41:57:     fps: 30
21:41:57:     width: 1280, height: 720
21:41:57:     preset: veryfast
21:41:57:     CBR: yes
21:41:57:     CFR: no
21:41:57:     max bitrate: 1500
21:41:57: ------------------------------------------
21:41:58: SharedTexCapture hooked
21:42:19: GraphicsCaptureSource::NewCapture:  eliminating old capture
21:42:19: SharedTexCapture hooked
21:42:31: Total frames rendered: 988, number of frames that lagged: 18 (1.82%) (it's okay for some frames to lag)
21:42:31: =====Stream End: 2013-05-12, 21:42:31=================================================
21:42:33: =====Stream Start: 2013-05-12, 21:42:33===============================================
21:42:33:   Multithreaded optimizations: On
21:42:33:   Base resolution: 1280x720
21:42:33:   Output resolution: 1280x720
21:42:33: ------------------------------------------
21:42:33: Loading up D3D10...
21:42:33: Playback device {0.0.0.00000000}.{f9e8a68f-8c65-4871-bf5b-cd35a649770d}
21:42:33: ------------------------------------------
21:42:33: Using desktop audio input: Speakers (Realtek High Definition Audio)
21:42:33: ------------------------------------------
21:42:33: Using auxilary audio input: Microphone (Realtek High Definition Audio)
21:42:33: ------------------------------------------
21:42:33: Audio Encoding: MP3
21:42:33:     bitrate: 128
21:42:33: Using graphics capture
21:42:33: ------------------------------------------
21:42:33: Video Encoding: x264
21:42:33:     fps: 30
21:42:33:     width: 1280, height: 720
21:42:33:     preset: veryfast
21:42:33:     CBR: yes
21:42:33:     CFR: no
21:42:33:     max bitrate: 1500
21:42:33: ------------------------------------------
21:42:34: Using RTMP service: Twitch / Justin.tv
21:42:34:   Server selection: rtmp://live-jfk.justin.tv/app
21:42:35: SO_SNDBUF was at 8192
21:42:35: SO_SNDBUF is now 65536
21:42:39: SharedTexCapture hooked
21:47:37: Total frames rendered: 7968, number of frames that lagged: 932 (11.70%) (it's okay for some frames to lag)
21:47:37: RTMPPublisher::SocketLoop: Aborting due to bStopping
21:47:37: Number of times waited to send: 0, Waited for a total of 0 bytes
21:47:37: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
21:47:37: =====Stream End: 2013-05-12, 21:47:37=================================================
21:47:59: 
21:47:59: Profiler results:
21:47:59: 
21:47:59: ==============================================================
21:47:59: frame - [100%] [avg time: 13.067 ms] [avg calls per frame: 1] [children: 93.3%] [unaccounted: 6.7%]
21:47:59: | scene->Preprocess - [0.00765%] [avg time: 0.001 ms] [avg calls per frame: 1]
21:47:59: | video encoding and uploading - [93.3%] [avg time: 12.19 ms] [avg calls per frame: 1] [children: 16.5%] [unaccounted: 76.8%]
21:47:59: | | CopyResource - [0.268%] [avg time: 0.035 ms] [avg calls per frame: 0]
21:47:59: | | conversion to 4:2:0 - [0.704%] [avg time: 0.092 ms] [avg calls per frame: 0]
21:47:59: | | call to encoder - [15%] [avg time: 1.965 ms] [avg calls per frame: 0]
21:47:59: | | sending stuff out - [0.505%] [avg time: 0.066 ms] [avg calls per frame: 0]
21:47:59: ==============================================================
21:47:59:

And broadcast can be viewed here - http://www.twitch.tv/thewhiskeyden/b/402844469

I am going to be testing in a few and still report back with logs. A friend of mine said i should also use CFR but i am assuming that would be another confusing world for me to enter.
 

hilalpro

Member
Don't use CFR. and you're right about CBR since you're streaming that game,
CJdkZZB.png


Your options are to use a mid quality setting 7 or 6 is ideal with a lower bitrate (like 1100kbps/bufsize) which should still spike to around 2000 bitrate or to use CBR with single frame vbv (what has been suggested) in which case you might wanna also add intra-refresh=true as an advanced custom setting.

The first option is a more efficient option and better for a game like gta when running on that low bitrate for that high resolution.
 

VW87

New Member
hilalpro said:
Don't use CFR. and you're right about CBR since you're streaming that game,
CJdkZZB.png


Your options are to use a mid quality setting 7 or 6 is ideal with a lower bitrate (like 1100kbps/bufsize) which should still spike to around 2000 bitrate or to use CBR with single frame vbv (what has been suggested) in which case you might wanna also add intra-refresh=1 as an advanced custom setting.

The first option is a more efficient option and better for a game like gta when running on that low bitrate for that high resolution.
Will try that tomorrow and report back, Didn't know such a older game would cause this type of streaming issue.

It's strange because i can stream Neverwinter with the same settings and never peak 1700 with OBS and looks good for my stream.
 

R1CH

Forum Admin
Developer
Pretty sure twitch or OBS does not support intra-refresh, and using such a small buffer size will really hurt the quality. You can try using the minimize network impact option to smooth out the spikes a bit.
 

hilalpro

Member
Intra-refresh does work on twitch try intra-refresh=true if it fails (as i was just informed). trying minimize network impact should help a little especially when you're playing an offline game it should go unchallenged.
 

VW87

New Member
where do i add this intra-refresh=true command? in the OBS target or in OBS under "Customer x264 Encoder Settings"?
 

hilalpro

Member
You don't need to be using intra-refresh when you're streaming to flash. go with the first option which i recommended.
 

VW87

New Member
hilalpro said:
You don't need to be using intra-refresh when you're streaming to flash. go with the first option which i recommended.
Ok done that and it seems like it is worse then before

LOGS
Code:
08:38:04: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
08:38:04: -------------------------------
08:38:04: CPU Name: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
08:38:04: CPU Speed: 3292MHz
08:38:04: Physical Memory:  6124MB Total, 2790MB Free
08:38:04: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 2
08:38:04: monitor 1: pos={0, 0}, size={1680, 1050}
08:38:04: monitor 2: pos={-1920, 0}, size={1920, 1080}
08:38:04: Windows Version: 6.1 Build 7601 S
08:38:04: Aero is Disabled
08:38:04: -------------------------------
08:38:04: OBS Modules:
08:38:04: Base Address     Module
08:38:04: 000000003F150000 OBS.exe
08:38:04: 00000000F89D0000 OBSApi.dll
08:38:04: 00000000F8CC0000 DShowPlugin.dll
08:38:04: 00000000F8EF0000 GraphicsCapture.dll
08:38:04: 00000000F8CA0000 NoiseGate.dll
08:38:04: ------------------------------------------
08:38:04: Adapter 1
08:38:04:   Video Adapter: NVIDIA GeForce GT 610
08:38:04:   Video Adapter Dedicated Video Memory: 2096562176
08:38:04:   Video Adapter Shared System Memory: 2147037184
08:38:04: Using fixed low latency mode, factor 20
08:38:04: =====Stream Start: 2013-05-13, 08:38:04===============================================
08:38:04:   Multithreaded optimizations: On
08:38:04:   Base resolution: 1280x720
08:38:04:   Output resolution: 1280x720
08:38:04: ------------------------------------------
08:38:04: Loading up D3D10...
08:38:04: Playback device {0.0.0.00000000}.{f9e8a68f-8c65-4871-bf5b-cd35a649770d}
08:38:04: ------------------------------------------
08:38:04: Using desktop audio input: Speakers (Realtek High Definition Audio)
08:38:04: ------------------------------------------
08:38:04: Using auxilary audio input: Microphone (Realtek High Definition Audio)
08:38:04: ------------------------------------------
08:38:04: Audio Encoding: MP3
08:38:04:     bitrate: 128
08:38:04: Using graphics capture
08:38:04: ------------------------------------------
08:38:04: Video Encoding: x264
08:38:04:     fps: 30
08:38:04:     width: 1280, height: 720
08:38:04:     preset: veryfast
08:38:04:     CBR: no
08:38:04:     CFR: no
08:38:04:     max bitrate: 1100
08:38:04:     buffer size: 1100
08:38:04:     quality: 7
08:38:04: ------------------------------------------
08:38:04: SharedTexCapture hooked
08:38:05: Using RTMP service: Twitch / Justin.tv
08:38:05:   Server selection: rtmp://live-jfk.justin.tv/app
08:38:06: SO_SNDBUF was at 8192
08:38:06: SO_SNDBUF is now 65536
08:38:09: GraphicsCaptureSource::NewCapture:  eliminating old capture
08:38:09: SharedTexCapture hooked
08:44:30: Total frames rendered: 4152, number of frames that lagged: 3353 (80.76%) (it's okay for some frames to lag)
08:44:30: RTMPPublisher::SocketLoop: Aborting due to loop exit
08:44:30: Number of times waited to send: 459, Waited for a total of 1575444 bytes
08:44:30: Number of b-frames dropped: 40 (0.99%), Number of p-frames dropped: 95 (2.4%), Total 135 (3.3%)
08:44:30: =====Stream End: 2013-05-13, 08:44:30=================================================
08:50:45: 
08:50:45: Profiler results:
08:50:45: 
08:50:45: ==============================================================
08:50:45: frame - [100%] [avg time: 88.663 ms] [avg calls per frame: 1] [children: 98.5%] [unaccounted: 1.47%]
08:50:45: | scene->Preprocess - [0.00113%] [avg time: 0.001 ms] [avg calls per frame: 1]
08:50:45: | video encoding and uploading - [98.5%] [avg time: 87.363 ms] [avg calls per frame: 1] [children: 2.43%] [unaccounted: 96.1%]
08:50:45: | | CopyResource - [0.345%] [avg time: 0.306 ms] [avg calls per frame: 0]
08:50:45: | | conversion to 4:2:0 - [0.0778%] [avg time: 0.069 ms] [avg calls per frame: 0]
08:50:45: | | call to encoder - [1.89%] [avg time: 1.673 ms] [avg calls per frame: 0]
08:50:45: | | sending stuff out - [0.116%] [avg time: 0.103 ms] [avg calls per frame: 0]
08:50:45: ==============================================================
08:50:45:

Broadcast can be seen here http://www.twitch.tv/thewhiskeyden/b/402989473

looks like alot of frames are dropping and whatnot.

Sorry to be a pain in your guys butt.
 

hilalpro

Member
Interesting, what resolution are you playing this fullscreen game at ? lower that resolution and the all the graphic effects. disable "minimize network impact" from obs and change the audio to aac 96 rather than mp3 128.
 

VW87

New Member
hilalpro said:
Interesting, what resolution are you playing the game at ? lower that resolution and the graphic effects and disable "minimize network impact" from obs and change the audio to aac 96 rather than mp3 128.

I am running GTASA in window mode at 1280x720
I run all my games in window mode at 1280x720

Here is test with current settings you suggested

LOGS

Code:
09:09:08: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
09:09:08: -------------------------------
09:09:08: CPU Name: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
09:09:08: CPU Speed: 3292MHz
09:09:08: Physical Memory:  6124MB Total, 2818MB Free
09:09:08: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 2
09:09:08: monitor 1: pos={0, 0}, size={1680, 1050}
09:09:08: monitor 2: pos={-1920, 0}, size={1920, 1080}
09:09:08: Windows Version: 6.1 Build 7601 S
09:09:08: Aero is Disabled
09:09:08: -------------------------------
09:09:08: OBS Modules:
09:09:08: Base Address     Module
09:09:08: 000000003FAA0000 OBS.exe
09:09:08: 00000000F5910000 OBSApi.dll
09:09:08: 00000000F8E10000 DShowPlugin.dll
09:09:08: 00000000F8EF0000 GraphicsCapture.dll
09:09:08: 00000000F8DF0000 NoiseGate.dll
09:09:08: ------------------------------------------
09:09:08: Adapter 1
09:09:08:   Video Adapter: NVIDIA GeForce GT 610
09:09:08:   Video Adapter Dedicated Video Memory: 2096562176
09:09:08:   Video Adapter Shared System Memory: 2147037184
09:09:08: =====Stream Start: 2013-05-13, 09:09:08===============================================
09:09:08:   Multithreaded optimizations: On
09:09:08:   Base resolution: 1280x720
09:09:08:   Output resolution: 1280x720
09:09:08: ------------------------------------------
09:09:08: Loading up D3D10...
09:09:08: Playback device {0.0.0.00000000}.{f9e8a68f-8c65-4871-bf5b-cd35a649770d}
09:09:08: ------------------------------------------
09:09:08: Using desktop audio input: Speakers (Realtek High Definition Audio)
09:09:08: ------------------------------------------
09:09:08: Using auxilary audio input: Microphone (Realtek High Definition Audio)
09:09:09: ------------------------------------------
09:09:09: Audio Encoding: AAC
09:09:09:     bitrate: 96
09:09:09: Using graphics capture
09:09:09: ------------------------------------------
09:09:09: Video Encoding: x264
09:09:09:     fps: 30
09:09:09:     width: 1280, height: 720
09:09:09:     preset: veryfast
09:09:09:     CBR: no
09:09:09:     CFR: no
09:09:09:     max bitrate: 1100
09:09:09:     buffer size: 1100
09:09:09:     quality: 7
09:09:09: ------------------------------------------
09:09:09: SharedTexCapture hooked
09:09:11: Using RTMP service: Twitch / Justin.tv
09:09:11:   Server selection: rtmp://live-jfk.justin.tv/app
09:09:11: SO_SNDBUF was at 8192
09:09:11: SO_SNDBUF is now 65536
09:09:13: GraphicsCaptureSource::NewCapture:  eliminating old capture
09:09:13: SharedTexCapture hooked
09:13:17: Total frames rendered: 4116, number of frames that lagged: 2569 (62.41%) (it's okay for some frames to lag)
09:13:17: RTMPPublisher::SocketLoop: Aborting due to bStopping
09:13:17: Number of times waited to send: 0, Waited for a total of 0 bytes
09:13:17: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
09:13:17: =====Stream End: 2013-05-13, 09:13:17=================================================
09:13:25: 
09:13:25: Profiler results:
09:13:25: 
09:13:25: ==============================================================
09:13:25: frame - [100%] [avg time: 54.467 ms] [avg calls per frame: 1] [children: 98.1%] [unaccounted: 1.87%]
09:13:25: | scene->Preprocess - [0.00184%] [avg time: 0.001 ms] [avg calls per frame: 1]
09:13:25: | video encoding and uploading - [98.1%] [avg time: 53.45 ms] [avg calls per frame: 1] [children: 3.32%] [unaccounted: 94.8%]
09:13:25: | | CopyResource - [0.564%] [avg time: 0.307 ms] [avg calls per frame: 0]
09:13:25: | | conversion to 4:2:0 - [0.136%] [avg time: 0.074 ms] [avg calls per frame: 0]
09:13:25: | | call to encoder - [2.52%] [avg time: 1.375 ms] [avg calls per frame: 0]
09:13:25: | | sending stuff out - [0.0955%] [avg time: 0.052 ms] [avg calls per frame: 0]
09:13:25: ==============================================================
09:13:25:

Broadcast here - http://www.twitch.tv/thewhiskeyden/b/402995013
 
Top