Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vp8 [2020/06/09 23:11] beandog |
vp8 [2023/04/19 22:17] (current) beandog [Notes] |
||
---|---|---|---|
Line 15: | Line 15: | ||
For ''ffmpeg'', use ''-crf'' with your number and ''-b:v 0'' is required. | For ''ffmpeg'', use ''-crf'' with your number and ''-b:v 0'' is required. | ||
- | For HandBrake, use ''-q'' with your CRF. I can't tell from docs or the code if it's passing anything about min-q and max-q to the encoder, but I don't think it is. I think it's using libavcodec to do crf=X and then b:v of 0. | + | For HandBrake, use ''-q'' with your CRF. I can't tell from docs or the code if it's passing anything about min-q and max-q to the encoder, but I don't think it is. <del>I think it's using libavcodec to do crf=X and then b:v of 0.</del> |
==== Encoding Quality ==== | ==== Encoding Quality ==== | ||
Line 21: | Line 21: | ||
With the defaults, vpxenc will create low quality encodes, its bitrate is too low. It will have to be bumped up to get some good quality. | With the defaults, vpxenc will create low quality encodes, its bitrate is too low. It will have to be bumped up to get some good quality. | ||
- | When using ffmpeg, pass ''-b 0'' (bitrate 0) so that it doesn't limit bitrate. Also use a CRF. For very high quality encodes, I'd say around 6 to 8. | + | SETTING crf and b:v 0 only works on VP9, DESPITE what the ffmpeg docs say. |
+ | <del>When using ffmpeg, pass ''-b 0'' (bitrate 0) so that it doesn't limit bitrate. Also use a CRF. For very high quality encodes, I'd say around 6 to 8. | ||
<code> | <code> | ||
ffmpeg -i video.y4m -vcodec libvpx -crf 6 -b:v 0 -y video.mkv | ffmpeg -i video.y4m -vcodec libvpx -crf 6 -b:v 0 -y video.mkv | ||
- | </code> | + | </code></del> |
- | HandBrake: | + | HandBrake's default CRF for VP8 is 22. |
<code> | <code> | ||
- | HandBrakeCLI -i video.y4m -e VP8 -q 6 -o video.mkv | + | HandBrakeCLI -i video.y4m -e VP8 -q 18 -o video.mkv |
</code> | </code> |