This commit is contained in:
Zen 2021-06-04 05:05:15 +03:00
parent 7740da8f0d
commit a488e98c04

View file

@ -2,7 +2,7 @@ use clap::AppSettings::ColoredHelp;
use clap::Clap; use clap::Clap;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::env; use std::env;
use std::path::{Path, PathBuf}; use std::path::PathBuf;
// Cross-platform command-line AV1 / VP9 / HEVC / H264 / VVC encoding framework with per scene quality encoding // Cross-platform command-line AV1 / VP9 / HEVC / H264 / VVC encoding framework with per scene quality encoding
#[derive(Clap, Debug, Serialize, Deserialize)] #[derive(Clap, Debug, Serialize, Deserialize)]
@ -57,7 +57,7 @@ pub struct Args {
scenes: Option<PathBuf>, scenes: Option<PathBuf>,
/// Specify splitting method /// Specify splitting method
#[clap(long, possible_values = &["ffmpeg", "pyscene", "aom_keyframess"], default_value = "pyscene")] #[clap(long, possible_values = &["ffmpeg", "pyscene", "aom_keyframess"])]
split_method: Option<String>, split_method: Option<String>,
/// Number of frames after which make split /// Number of frames after which make split
@ -132,8 +132,8 @@ pub struct Args {
target_quality: Option<f64>, target_quality: Option<f64>,
/// Method selection for target quality /// Method selection for target quality
#[clap(long, possible_values = &["per_frame", "per_shot"], default_value = "per_shot")] #[clap(long, possible_values = &[ "per_shot"], default_value = "per_shot")]
target_quality_method: Option<String>, target_quality_method: String,
/// Number of probes to make for target_quality /// Number of probes to make for target_quality
#[clap(long, default_value = "4")] #[clap(long, default_value = "4")]