---
layout: default
category: "OBS"
title: "High Quality Recordings with x264 (in OBS® Studio)"
comments: true
date: "2022-01-19"
---

{% capture content %}The x264 encoder supports both 4:4:4 as well as 4:2:0, as long as the underlying hardware is fast enough to handle it. It also has two different ways to reach each quality level: Constant Quantization Parameter (CQP) and Constant Rate Factor (CRF). Unfortunately OBS Studio only offers the latter, so for now we are stuck with that. With a single-PC setup, 4:4:4 recording using CRF will be very expensive. You might have to lower the preset used in order to maintain reasonable performance in game and encodes.{% endcapture %}{% include blocks/paragraph.liquid content=content %}

{% capture content %}
<thead><tr>
	<th width="20%">Option</th>
	<th width="16%">Lossless</th>
	<th width="16%">Near Lossless</th>
	<th width="16%">Indistinguishable</th>
	<th width="16%">High Quality</th>
	<th width="16%">Acceptable Quality</th>
</tr></thead>
<tr>
	<td>Rate Control</td>
	<td colspan=5>CRF</td>
</tr>
<tr>
	<td>CRF</td>
	<td>0</td>
	<td>0</td>
	<td>8</td>
	<td>16</td>
	<td>21</td>
</tr>
<tr>
	<td>Keyframe Interval</td>
	<td colspan=5>1</td>
</tr>
<tr>
	<td>Preset</td>
	<td colspan=5>ultrafast - placebo <i>(Slower presets may end up smaller, but take significantly more CPU)</i></td>
</tr>
<tr>
	<td>Profile</td>
	<td>None</td>
	<td colspan=4>None <i>or</i> high</td>
</tr>
<tr>
	<td>Tune</td>
	<td>None</td>
	<td colspan=4>Any <i>(Ensure that your tune matches up with your target content, or leave at None)</i></td>
</tr>
<tr>
	<td>x264 Options</td>
	<td>{%capture code %}bframes=0 keyint=1 min-keyint=1{%endcapture%}{%include inline/code.liquid content=code %}</td>
	<td colspan=4></td>
</tr>
{% endcapture %}{% include blocks/table.liquid content=content %}

{% capture content %}{% include inline/link.liquid url="../" content="Back to the Guide" %}{% endcapture %}{% include blocks/paragraph.liquid align="center" content=content %}
