@@ -9,14 +9,13 @@ compared to its predecessors.
99
1010x264 is a mature, free, open-source encoder
1111for the H.264 video format.
12- This guide will focus on x264.
1312
1413
1514## Prerequisites
1615
1716To get started, you'll need two things:
1817
19- - A video to encode-- for the examples,
18+ - A video to encode— for the examples,
2019 we will pipe in a video from VapourSynth,
2120 which you should be able to do
2221 if you've been following the previous sections of this guide
@@ -53,7 +52,7 @@ We'll walk through those concepts
5352with the following examples.
5453
5554
56- ## Example 1: General-Purpose Encoding
55+ ### Example 1: General-Purpose Encoding
5756
5857Open up a terminal window,
5958and navigate to the folder
@@ -67,7 +66,7 @@ vspipe --y4m myvideo.vpy - | x264 --demuxer y4m --preset veryfast --tune animati
6766Let's run through what each of these options means:
6867
6968
70- #### ` vspipe --y4m myvideo.vpy - `
69+ ##### ` vspipe --y4m myvideo.vpy - `
7170
7271This portion loads your VapourSynth script
7372and pipes it to stdout,
@@ -81,14 +80,14 @@ the program that reads VapourSynth scripts,
8180with ` x264 ` , our encoder.
8281
8382
84- #### ` --demuxer y4m `
83+ ##### ` --demuxer y4m `
8584
8685This tells x264 that we're providing it with a y4m file.
8786This matches up with the ` --y4m ` flag
8887that we gave to the ` vspipe ` command.
8988
9089
91- #### ` --preset veryfast `
90+ ##### ` --preset veryfast `
9291
9392x264 has a set of presets
9493to switch between faster encoding, or higher quality.
@@ -119,11 +118,14 @@ by running `x264 --fullhelp | less` (Linux/Mac)
119118or ` x264 --fullhelp | more ` (Windows).
120119However, this probably won't mean much at the moment.
121120Don't worry,
122- this guide will explain later
121+ this page will explain later
123122what all of those settings mean.
124123
124+ * Disclaimer:
125+ x264's ` fullhelp ` is not guaranteed to be up-to-date.*
125126
126- #### ` --tune animation `
127+
128+ ##### ` --tune animation `
127129
128130Beyond the preset chosen,
129131x264 allows us to further tune the encoding settings
@@ -141,7 +143,7 @@ but it generally helps
141143to produce a better-looking video.
142144
143145
144- #### ` --crf 24 `
146+ ##### ` --crf 24 `
145147
146148CRF is a constant-quality, 1-pass encoding mode.
147149In layman's terms,
@@ -174,7 +176,7 @@ Here are some guidelines:
174176 unless you want your videos to look like they were made for dial-up.
175177
176178
177- #### ` -o x264output.mkv - `
179+ ##### ` -o x264output.mkv - `
178180
179181This last portion tells which files to use for the input and output.
180182We use ` -o ` to tell which filename to write the encoded file to.
@@ -190,7 +192,7 @@ x264 will recognize it
190192as the only argument without a ` -- ` flag before it.
191193
192194
193- ## Example 2: Targeted File Size
195+ ### Example 2: Targeted File Size
194196
195197For the next example,
196198let's say we want to make sure our encode
@@ -239,7 +241,7 @@ but the average bitrate of the video
239241will be close to what we requested.
240242
241243
242- ## Example 3: 2-Pass Encoding
244+ ### Example 3: 2-Pass Encoding
243245
244246So far, we've only done 1-pass encodes.
245247While using CRF 1-pass is great
0 commit comments