Skip to content

Commit cc752bc

Browse files
committed
More PR fixes
1 parent 0c2da86 commit cc752bc

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

encoding/codecs/x264.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ compared to its predecessors.
99

1010
x264 is a mature, free, open-source encoder
1111
for the H.264 video format.
12-
This guide will focus on x264.
1312

1413

1514
## Prerequisites
1615

1716
To get started, you'll need two things:
1817

19-
- A video to encode--for the examples,
18+
- A video to encodefor 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
5352
with the following examples.
5453

5554

56-
## Example 1: General-Purpose Encoding
55+
### Example 1: General-Purpose Encoding
5756

5857
Open up a terminal window,
5958
and navigate to the folder
@@ -67,7 +66,7 @@ vspipe --y4m myvideo.vpy - | x264 --demuxer y4m --preset veryfast --tune animati
6766
Let's run through what each of these options means:
6867

6968

70-
#### `vspipe --y4m myvideo.vpy -`
69+
##### `vspipe --y4m myvideo.vpy -`
7170

7271
This portion loads your VapourSynth script
7372
and pipes it to stdout,
@@ -81,14 +80,14 @@ the program that reads VapourSynth scripts,
8180
with `x264`, our encoder.
8281

8382

84-
#### `--demuxer y4m`
83+
##### `--demuxer y4m`
8584

8685
This tells x264 that we're providing it with a y4m file.
8786
This matches up with the `--y4m` flag
8887
that we gave to the `vspipe` command.
8988

9089

91-
#### `--preset veryfast`
90+
##### `--preset veryfast`
9291

9392
x264 has a set of presets
9493
to switch between faster encoding, or higher quality.
@@ -119,11 +118,14 @@ by running `x264 --fullhelp | less` (Linux/Mac)
119118
or `x264 --fullhelp | more` (Windows).
120119
However, this probably won't mean much at the moment.
121120
Don't worry,
122-
this guide will explain later
121+
this page will explain later
123122
what 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

128130
Beyond the preset chosen,
129131
x264 allows us to further tune the encoding settings
@@ -141,7 +143,7 @@ but it generally helps
141143
to produce a better-looking video.
142144

143145

144-
#### `--crf 24`
146+
##### `--crf 24`
145147

146148
CRF is a constant-quality, 1-pass encoding mode.
147149
In 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

179181
This last portion tells which files to use for the input and output.
180182
We use `-o` to tell which filename to write the encoded file to.
@@ -190,7 +192,7 @@ x264 will recognize it
190192
as the only argument without a `--` flag before it.
191193

192194

193-
## Example 2: Targeted File Size
195+
### Example 2: Targeted File Size
194196

195197
For the next example,
196198
let's say we want to make sure our encode
@@ -239,7 +241,7 @@ but the average bitrate of the video
239241
will be close to what we requested.
240242

241243

242-
## Example 3: 2-Pass Encoding
244+
### Example 3: 2-Pass Encoding
243245

244246
So far, we've only done 1-pass encodes.
245247
While using CRF 1-pass is great

0 commit comments

Comments
 (0)