Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
13th April 2021, 11:43 | #1 | Link |
None
Join Date: Jul 2007
Location: The Background
Posts: 307
|
Which VP9's crf value corresponds to x264's crf 20?
I want to encode a 480p movie with VP9 in two passes.
Google recommends to use crf 34 for low quality encoding of 480p video, and crf 33 for medium quality: https://developers.google.com/media/vp9/settings/vod I am also using '-tune-content film' option to optimize for grain. Which crf value in VP9 corresponds to x264's crf 20? |
14th April 2021, 02:52 | #2 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
I doubt there's going to be a linear relationship. Even in x264 and x265, which have more in common than either does with VP9, similar subjective quality can be up to 5 CRF values apart.
And even within one encoder, a difference of 1 CRF isn't that visible; definitely smaller than the difference between "low" and "medium" quality. Those would be more like 6 CRF apart in x264 or x265. |
18th April 2021, 16:42 | #3 | Link |
Registered User
Join Date: May 2018
Posts: 184
|
The text in your link talks about cq, which is not crf. Generally speaking, all google docs and most other users data is way outdated when it comes to vp9.
From personal experience, I'd advice against 2pass uses with vp9, because it enables auto-alt-ref frames, which you cannot turn off. This option forces very aggressive denoising which destroys very fine detail even with the lowest denoise settings. I found a much clearer outcome with just 1pass, cpu-used 1 & -g=fps*10, -row-mt 1 and a very low crf value (10 to 15), aswell as denoising with mvtools (do not mess with tile settings. vpx-vp9 v1.09 and newer does a very good job with most settings on auto, except for the mentioned settings). The final video file resulted in a video file size 2 to 3 times lower over the raw bluray file. Last edited by takla; 18th April 2021 at 16:46. |
20th April 2021, 02:05 | #4 | Link | |
Registered User
Join Date: Jan 2016
Posts: 98
|
Quote:
Code:
x265_crf(x264_crf) = 1.09 * x264_crf − 4.19 vp9_crf (x264_crf) = 1.98 * x264_crf − 14.46 Continue reading for the details and explanation of my findings: Last January I ran an experiment with ffmpeg (git-20210110), comparing the vp9(v1.9.0-122-gebac57ce9), x264(core 161 r3027 4121277) and x265(version 3.4) codecs. I selected a set of 20 seconds full-HD (1920x1080) videos captured with two different android phones, a canon camera, a nikon camera, and the xbox game bar in windows 10. Each of the videos in the set was encoded using ffmpeg with each of these codecs, for 7 different crf values aiming to result in videos with quality ranging between 10 to 22 SSIM dB. A pivot table of the metrics obtained, averaging the SSIM for the set of videos at the each crf, leads to the following graphic and linear regressions, that show for each codec separately, the clear linear relationship between CRF and encoded video quality measured in SSIM dB: This evidently, in turn, shows the linear relationship between the crf of the three codecs, as illustrated in the equations at the beginning of this post. In the not too distant future I expect to have some time to summarize some other findings in my exercise regarding the quality, bitrate and encoding speed for each codec depending on the crf. Last edited by VS_Fan; 20th April 2021 at 17:05. |
|
21st April 2021, 02:10 | #6 | Link | |
Registered User
Join Date: Jan 2016
Posts: 98
|
Quote:
EDIT: The reason for my mix of videos: With the experiment I wanted to find the most appropriate codec and settings for archiving these kind of videos:
Last edited by VS_Fan; 21st April 2021 at 02:45. |
|
23rd April 2021, 19:15 | #9 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Quote:
|
|
23rd April 2021, 19:17 | #10 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Quote:
FWIW, VMAF isn't really an objective metric in this sense. It uses a fusion of multiple objective metrics as input to a machine learning model to predict subjective quality scores. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|