| | 39 | |
| | 40 | = Constrained Quality = |
| | 41 | |
| | 42 | libaom-av1 also has a constrained quality (CQ) mode that will ensure that a constant (perceptual) quality is reached while keeping the bitrate below a specified upper bound or within a certain bound. This method is useful for bulk encoding videos in a generally consistent fashion. |
| | 43 | |
| | 44 | {{{ |
| | 45 | ffmpeg -i input.mp4 -c:v libaom-av1 -crf 30 -b:v 2000k -strict experimental output.mkv |
| | 46 | }}} |
| | 47 | |
| | 48 | The quality is determined by the `-crf`, and the bitrate limit by the `-b:v` where the bitrate '''MUST''' be non-zero. |
| | 49 | |
| | 50 | You can also specify a minimum and maximum bitrate instead of a quality target: |
| | 51 | |
| | 52 | {{{ |
| | 53 | ffmpeg -i input.mp4 -c:v libaom-av1 -minrate 500k -b:v 2000k -maxrate 2500k -strict experimental output.mp4 |
| | 54 | }}} |