vmaf_percentile to 1, default vmaf rate to 1 (#641)

* vmaf_percentile to 1, default vmaf rate to 1

* fix default

Co-authored-by: Redzic <yusufredzic@gmail.com>
This commit is contained in:
Zen 2022-06-25 22:44:15 +03:00 committed by GitHub
parent 1a1c679c73
commit 7af57610c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -462,7 +462,7 @@ pub struct CliOpts {
pub probes: u32,
/// Framerate for probes, 1 - original
#[clap(long, default_value_t = 4, help_heading = "TARGET QUALITY")]
#[clap(long, default_value_t = 1, help_heading = "TARGET QUALITY")]
pub probing_rate: u32,
/// Use encoding settings for probes specified by --video-params rather than faster, less accurate settings

View file

@ -15,7 +15,7 @@ use crate::settings::EncodeArgs;
use crate::vmaf::{self, read_weighted_vmaf};
use crate::Encoder;
const VMAF_PERCENTILE: f64 = 0.25;
const VMAF_PERCENTILE: f64 = 0.01;
// TODO: just make it take a reference to a `Project`
pub struct TargetQuality<'a> {
@ -382,7 +382,7 @@ pub fn log_probes(
pub const fn adapt_probing_rate(rate: usize) -> usize {
match rate {
1..=4 => rate,
_ => 4,
_ => 1,
}
}