Using Per-Title Encoding efficiently
Each video is unique, which makes selecting statis codec settings for all of your transcoding very inefficient. Using Per-Title Encoding, Qencode will analyze you file and choose the best codec settings for each scene of your video to get the best quality at the smallest file size. This is a great feature for highly varied or user genegrated content. This tutorial will teach you the best practices for getting the most out of Per-Title Encoding.
Getting started with Per-Title Encoding
To start, use the
To enable Per-Title Encoding, set
{
"query": {
"source": "https://nyc3.s3.qencode.com/qencode/bbb_30s.mp4",
"format": [
{
"output": "mp4",
"optimize_bitrate": 1,
}
]
}
}
Optimizing Per-Title Encoding Settings
Sometimes you want to push the base settings of the optimization more towards quality or compression based on the needs of your project. One way to do this is to change CRF (Constant Rate Factor) value to increase quality (lower CRF values) or increase compression (higher CRF values). Per-Title Encoding selects your CRF automatically, however you still have control to adjust the tradeoff between quality or compression
Use the
adjust_crf | Integer between -10 and 10. Default 0. Changes the selected CRF to be higher or lower, depending if the user prefers smaller files or higher quality respectively. |
If you want the CRF values that can be selected to a specific range, you can set a
min_crf | Integer 0 - 51. The lowest possible CRF that will be selected. |
max_crf | Integer 0 - 51. The highest possible CRF that will be selected. |
Now you're ready to get started. Here's an example of what your request would look like with all of the parameters outlined above:
{
"query": {
"source": "https://nyc3.s3.qencode.com/qencode/bbb_30s.mp4",
"format": [
{
"output": "mp4",
"optimize_bitrate": 1,
"adjust_crf": "-1",
"min_crf": "21",
"max_crf": "51"
}
]
}
}