>>112389
For you and for everyone --
Handbrake Guide for AV1
How to encode AV1/opus using Handbrake for this site.
If anyone has better suggestions, please post them.
First, of course, select your source clip.
In the top part of the window, just below the toolbar, you can set the range you want for your clip. Change the "range" to seconds and then set the in and out points for the clip you want to make.
Skip over presets at this point.
Now let's go over the tabs:
Summary
Format = webm
Dimensions
You probably don't need to do much here, unless you want to limit the resolution to
720p HD which may be sensible depending on how long your clip is.
Some videos you come across have 20px of black on the top and bottom, so you can shave off some file size by choosing
custom cropping and taking 20px off the top and bottom.
Filters
You can almost certainly just turn all of these off.
The only possible exception is if you're dealing with a very old clip that wasn't deinterlaced, but that's a rare case and deinterlacing can be tricky so I'll skip that here.
Video
Video encoder =
AV1 (SVT)
Framerate =
same as source
Some source clips have variable frame rates. Personally I would find what the real framerate was supposed to be, set it explicitly, and select
constant framerate. But this is just me hating on variable framerates, do as you prefer.
Quality settings:
Constant quality is my preference. It may take a few tries to get under the file size limit but this method will make sure your whole clip has consistent quality. The default "okay" setting is 35 for HD video, so that is a good starting point. You can push it as high as 50 before things start looking really bad.
Lower numbers are higher quality, higher numbers are lower quality.
You can do average bitrate, in which case multi-pass encoding will help you get a somewhat smaller video with nicer quality.
Encoder options:
Choose preset 4 or 5. Lower numbers mean your computer will take more time creating a higher quality clip at the same or smaller file size.
If you have a fairly powerful CPU then you can choose preset 2. That's what I use.
If you're just experimenting and want to output clips quickly, you can choose a preset like 6-8 so your experiments encode faster.
Encoder tune =
none
Encoder profile =
auto
Encoder level =
auto
Advanced options:
The line below is what I put in there...
keyint=10s:enable-overlays=1:scd=1:scm=0
I won't go into this in detail here but you can see what these options do in the documentation, which I'll link at the bottom of this post.
Audio
There should just be one audio track. If your clip requires no audio, you can save file size by removing the audio.
If you are encoding audio:
Codec =
opus
Bitrate = 48, or as low as 40 or 32 depending on length
Mixdown =
mono -- this is important, we mix the sound down to one channel. We don't need more than that for a web clip.
Subtitles
Obviously we do not want any subtitles. Hit the "Clear" button.
Chapters
We also want none. Untick/uncheck the "create chapter markers" box.
Finally, set the destination file under
Save as at the bottom. Then start your encoding.
If you want to save yourself the hassle of setting all of this up, use the
Save new preset button toward the top. This will save your settings as a preset so that you don't have to go through and do all this manually each time.
References.
SVT-AV1 parameters
> https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/Parameters.md
SVT-AV1 presets
> https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/CommonQuestions.md#what-presets-do