Struct av1an_cli::CliOpts[][src]

pub struct CliOpts {
Show 35 fields pub input: PathBuf, pub temp: Option<PathBuf>, pub output_file: Option<PathBuf>, pub concat: ConcatMethod, pub quiet: bool, pub verbose: bool, pub logging: Option<String>, pub resume: bool, pub keep: bool, pub chunk_method: Option<ChunkMethod>, pub scenes: Option<PathBuf>, pub split_method: SplitMethod, pub sc_method: ScenecutMethod, pub sc_downscale_height: Option<usize>, pub extra_split: usize, pub min_scene_len: usize, pub passes: Option<u8>, pub video_params: Option<String>, pub encoder: Encoder, pub workers: usize, pub force: bool, pub ffmpeg_filter_args: Option<String>, pub audio_params: Option<String>, pub pix_format: Pixel, pub vmaf: bool, pub vmaf_path: Option<PathBuf>, pub vmaf_res: String, pub vmaf_threads: Option<usize>, pub target_quality: Option<f64>, pub probes: u32, pub probing_rate: u32, pub probe_slow: bool, pub min_q: Option<u32>, pub max_q: Option<u32>, pub vmaf_filter: Option<String>,
}
Expand description

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per-scene quality encoding

Fields

input: PathBuf

Input file or vapoursynth (.py, .vpy) script

temp: Option<PathBuf>

Temporary directory to use

output_file: Option<PathBuf>

Specify output file

concat: ConcatMethod

Method to use for concatenating encoded chunks

quiet: bool

Disable printing progress to the terminal

verbose: bool

Print extra progress info and stats to terminal

logging: Option<String>

Specify this option to log to a non-default file

resume: bool

Resume previous session

keep: bool

Do not delete the temporary folder after encoding has finished

chunk_method: Option<ChunkMethod>

Method for creating chunks

scenes: Option<PathBuf>

File location for scenes

split_method: SplitMethod

Method used to detect scenecuts. av-scenechange uses an algorithm to analyze which frames of the video are the start of new scenes, while none disable scene detection entirely (and only rely on -x/--extra-split to add extra scenecuts).

sc_method: ScenecutMethod

Specify scenecut method

Standard: Most accurate, still reasonably fast. Fast: Very fast, but less accurate.

sc_downscale_height: Option<usize>

Optional downscaling for scenecut detection. Specify as the desired maximum height to scale to (e.g. “720” to downscale to 720p–this will leave lower resolution content untouched). Downscaling will improve speed but lower scenecut accuracy, especially when scaling to very low resolutions.

extra_split: usize

Maximum scene length

When a scenecut is found whose distance to the previous scenecut is greater than the value specified by this option, one or more extra splits (scenecuts) are added. Set this option to 0 to disable adding extra splits.

min_scene_len: usize

Minimum number of frames for a scenecut

passes: Option<u8>

Specify number encoding passes

When using vpx or aom with RT, set this option to 1.

video_params: Option<String>

Video encoder parameters

encoder: Encoder

Video encoder to use

workers: usize

Number of workers. 0 = automatic

force: bool

Do not check if the encoder arguments specified by --video-params are valid

ffmpeg_filter_args: Option<String>

FFmpeg filter options

audio_params: Option<String>

Audio encoding parameters. If not specified, “-c:a copy” is used

Example to encode the audio with libopus: -a=“-c:a libopus -b:a 128k -ac 2”

pix_format: Pixel

FFmpeg pixel format

vmaf: bool

Calculate and plot the VMAF of the encode

vmaf_path: Option<PathBuf>

Path to VMAF model

vmaf_res: String

Resolution used for VMAF calculation

vmaf_threads: Option<usize>

Number of threads to use for VMAF calculation

target_quality: Option<f64>

VMAF score to target

probes: u32

Maximum number of probes allowed for target quality

probing_rate: u32

Framerate for probes, 1 - original

probe_slow: bool

Use encoding settings for probes

min_q: Option<u32>

Min q for target quality

max_q: Option<u32>

Max q for target quality

vmaf_filter: Option<String>

Filter applied to source at VMAF calcualation. This option should be specified if the source is cropped.

Trait Implementations

Formats the value using the given formatter. Read more

Returns clap::App corresponding to the struct.

Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by StructOpt::clap called on the same type, otherwise it must panic. Read more

Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more

Builds the struct from the command line arguments (std::env::args_os). Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program, so calling .exit is up to you. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.