Page 1 of 1

OBS Updates for Cohh

Posted: Thu Dec 10, 2015 10:43 am
by Brian
I had a chance to sit down with Cohh and go over his OBS settings yesterday in an effort to improve his video fidelity. Here I will attempt to summarize the changes we made and more importantly, why we made them. My objective was to take advantage of cohhs considerable CPU power in order to improve the fidelity of the video. For reference Cohh uses OBS v0.657b

Starting at the top in the encoding tab, bitrate was increased from 3500 to 4000, this immediately provides a boost to quality going from 0.063bpp to 0.072bpp (bits per pixel). It should be noted here that you should never go above 3500 unless given permission from twitch. Non-partners should try not to go above 2000. Second in the encoding tab was changing the audio bit-rate from 128kb to 160kb, twitch supports a maximum AAC bit-rate of 160kb so we upped this for a slight increase in audio fidelity.

Next up in the video tab we changed from the Bi-linear downscale filter to Lanczos. The Lanczos filter uses 36 samples of the image to provide a smoother downscale at the cost of some performance which is this case is acceptable. This is important to things like text and other objects that alias easily when being downscaled.

Lastly we come to the advanced tab. This is where the most significant changes were made. Process priority class was increased to "above normal" from "normal". Generally on a 1 PC setup this is not advised, however on a 2 PC setup where one machine is dedicated to encoding, you want the encoder to be a higher priority process so it is not interrupted by background system processes. DON'T do this is you have a single PC setup as this will cause encoding to become higher priority than the game. Next x.264 CPU preset was changed from "Faster" to "Medium" this is a pretty big change if not the biggest. Given that cohh has a dedicated 6 Core CPU for encoding this is a nice upgrade to video fidelity without the need for increased bitrate. Even on a dedicated 6 Core machine this causes CPU usage to sit around 65-75% which is considerable; basically don't try this at home unless you know your system can handle it. Next the encoder profile was changed from "main" to "high". Again this change provides additional fidelity for the same bitrate with 1 major drawback. Some legacy mobile devices cannot decode this profile (sorry flip phone users). Without going to in too much detail High Profile enables additional feature in the encoder such as "8×8 vs. 4×4 transform adaptivity," and "Quantization scaling matrices," which in laymen terms equates to more efficiency in a lossy encoding format like x.264. While Twitch recommends that you use main in order to maintain compatibility with more devices, in practice there are very few devices these days that cannot decode the high profile. Last but not least we enabled CFR (Constant Frame Rate). This is not really necessary unless you plan on editing your videos for youtube (or similar). This basically forces the encoder to possibly duplicate a frame if necessary to ensure a constant framerate which makes editing much easier as tracking is now consistent by frame by frame (You're welcome RedEyeMonster).

That's it, I hope you found this useful! If you have any questions drop them in the comments and I'll be checking it here and there.

Cheers!
-izl :cool:

Posted: Thu Dec 10, 2015 10:47 am
by HellbornNL
i have no idea what you did or what all those numbers mean but Good Job

Posted: Thu Dec 10, 2015 10:55 am
by calming_insanity
Way to go izl!

Posted: Thu Dec 10, 2015 11:07 am
by tellchur
I couldn't do 2 of the outlined things here due to some limitations, but from what I could do, the quality was definitely increased! Thank you, kind sir!

Posted: Thu Dec 10, 2015 10:08 pm
by Malta1565
I didn't get a chance to see Cohhs stream. Was the quality noticeably better?

Posted: Mon Dec 14, 2015 10:22 am
by Brian
[QUOTE="malta1565, post: 30720, member: 8977"]I didn't get a chance to see Cohhs stream. Was the quality noticeably better?[/QUOTE]
I certainly think so but I might be biased ;)

Posted: Mon Dec 14, 2015 10:23 am
by Brian
[QUOTE="tellchur, post: 30711, member: 49182"]I couldn't do 2 of the outlined things here due to some limitations, but from what I could do, the quality was definitely increased! Thank you, kind sir![/QUOTE]
What changes were you able to make, and which did you have to pass on?

Posted: Mon Dec 14, 2015 11:26 am
by ticktock1231
That was a great read. I don't stream, but there are a lot of people who do and ask questions about it in the forums or in chat. I will make sure to direct them to here. My question would be, how did you come by this information? Is there a resource that would get in to more detail? Thanks again for taking the time to write all that :)

Posted: Mon Dec 14, 2015 11:39 am
by Brian
[QUOTE="ticktock1231, post: 30793, member: 39876"]That was a great read. I don't stream, but there are a lot of people who do and ask questions about it in the forums or in chat. I will make sure to direct them to here. My question would be, how did you come by this information? Is there a resource that would get in to more detail? Thanks again for taking the time to write all that :) [/QUOTE]
I've always been a bit of a videophile, so I took the time to learn as much as possible about it. There's plenty of resources about video encoding that can be found with a quick google search. Knowledge of video encoding is an important part of my job at ESL. I've also done an extensive amount of a/b testing myself on my own stream with many settings. I've chose to learn the most about H.264 encoding since this what Twitch uses and is a very common format besides. If you want some technical information about H.264 I'd suggest this article: https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC

Posted: Tue Dec 15, 2015 5:44 pm
by ticktock1231
Just as a note, Cohh's viewers are getting a slight delay in the game sound only. The video looks amazing!

Posted: Tue Dec 15, 2015 6:33 pm
by Brian
[QUOTE="ticktock1231, post: 30851, member: 39876"]Just as a note, Cohh's viewers are getting a slight delay in the game sound only. The video looks amazing![/QUOTE]
Yeah we're gonna try and fix that tonight.

Posted: Wed Dec 16, 2015 10:17 am
by tellchur
[QUOTE="izl, post: 30788, member: 4566"]What changes were you able to make, and which did you have to pass on?[/QUOTE]
just bit rate change and priority class change. crap internet and 1 PC setup

Posted: Wed Dec 16, 2015 10:20 am
by Brian
[QUOTE="tellchur, post: 30886, member: 49182"]just bit rate change and priority class change. crap internet and 1 PC setup[/QUOTE]

If you have a 1PC setup you should not change priority above normal as I mentioned in the post.

Posted: Wed Dec 16, 2015 10:26 am
by tellchur
[QUOTE="izl, post: 30887, member: 4566"]If you have a 1PC setup you should not change priority above normal as I mentioned in the post.[/QUOTE]
misread the post. those are the ones i couldn't change. my bad

Posted: Sat Mar 05, 2016 11:41 pm
by itsZdan
izl may i bother you to help me on this matter, i seam to have a problem :\

Posted: Sun Mar 06, 2016 8:56 am
by Brian
[QUOTE="itsZdan, post: 32606, member: 9033"]izl may i bother you to help me on this matter, i seam to have a problem :\[/QUOTE]
You may

Posted: Sun Mar 06, 2016 11:04 am
by itsZdan
[QUOTE="izl, post: 32607, member: 4566"]You may[/QUOTE]
sent u a PM :D

Posted: Tue May 17, 2016 9:55 am
by FrostedSentry
Lots of good nuggets here! Thanks a ton for the notes!