mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 18:18:06 +00:00
Allow disabling extra splits by setting to 0 (#371)
This commit is contained in:
parent
f52c82f15c
commit
657810d162
1 changed files with 6 additions and 1 deletions
|
@ -85,6 +85,7 @@ pub struct Args {
|
||||||
pub sc_downscale_height: Option<usize>,
|
pub sc_downscale_height: Option<usize>,
|
||||||
|
|
||||||
/// Number of frames after which make split
|
/// Number of frames after which make split
|
||||||
|
/// Set to 0 to disable
|
||||||
#[structopt(short = "x", long, default_value = "240")]
|
#[structopt(short = "x", long, default_value = "240")]
|
||||||
pub extra_split: usize,
|
pub extra_split: usize,
|
||||||
|
|
||||||
|
@ -285,7 +286,11 @@ pub fn cli() -> anyhow::Result<()> {
|
||||||
.unwrap_or_else(vapoursynth::best_available_chunk_method),
|
.unwrap_or_else(vapoursynth::best_available_chunk_method),
|
||||||
concat: args.concat,
|
concat: args.concat,
|
||||||
encoder: args.encoder,
|
encoder: args.encoder,
|
||||||
extra_splits_len: Some(args.extra_split),
|
extra_splits_len: if args.extra_split > 0 {
|
||||||
|
Some(args.extra_split)
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
},
|
||||||
input: args.input.to_str().unwrap().to_owned(),
|
input: args.input.to_str().unwrap().to_owned(),
|
||||||
keep: args.keep,
|
keep: args.keep,
|
||||||
min_q: args.min_q,
|
min_q: args.min_q,
|
||||||
|
|
Loading…
Reference in a new issue