Fix x265 2-pass params (#636)
* Fix x265 2-pass params * Add --level-idc in x265 default params
This commit is contained in:
parent
edc6acd657
commit
22281844bb
|
@ -208,16 +208,23 @@ impl Encoder {
|
||||||
Self::x265 => chain!(
|
Self::x265 => chain!(
|
||||||
into_array![
|
into_array![
|
||||||
"x265",
|
"x265",
|
||||||
"--stitchable",
|
"--repeat-headers",
|
||||||
"--log-level",
|
"--log-level",
|
||||||
"error",
|
"error",
|
||||||
"--pass",
|
"--pass",
|
||||||
"1",
|
"1",
|
||||||
"--demuxer",
|
"--y4m",
|
||||||
"y4m",
|
|
||||||
],
|
],
|
||||||
params,
|
params,
|
||||||
into_array!["--stats", format!("{}.log", fpf), "-", "-o", NULL]
|
into_array![
|
||||||
|
"--stats",
|
||||||
|
format!("{}.log", fpf),
|
||||||
|
"--analysis-reuse-file",
|
||||||
|
format!("{}_analysis.dat", fpf),
|
||||||
|
"-",
|
||||||
|
"-o",
|
||||||
|
NULL
|
||||||
|
]
|
||||||
)
|
)
|
||||||
.collect(),
|
.collect(),
|
||||||
}
|
}
|
||||||
|
@ -283,16 +290,23 @@ impl Encoder {
|
||||||
Self::x265 => chain!(
|
Self::x265 => chain!(
|
||||||
into_array![
|
into_array![
|
||||||
"x265",
|
"x265",
|
||||||
"--stitchable",
|
"--repeat-headers",
|
||||||
"--log-level",
|
"--log-level",
|
||||||
"error",
|
"error",
|
||||||
"--pass",
|
"--pass",
|
||||||
"2",
|
"2",
|
||||||
"--demuxer",
|
"--y4m",
|
||||||
"y4m",
|
|
||||||
],
|
],
|
||||||
params,
|
params,
|
||||||
into_array!["--stats", format!("{}.log", fpf), "-", "-o", output]
|
into_array![
|
||||||
|
"--stats",
|
||||||
|
format!("{}.log", fpf),
|
||||||
|
"--analysis-reuse-file",
|
||||||
|
format!("{}_analysis.dat", fpf),
|
||||||
|
"-",
|
||||||
|
"-o",
|
||||||
|
output
|
||||||
|
]
|
||||||
)
|
)
|
||||||
.collect(),
|
.collect(),
|
||||||
}
|
}
|
||||||
|
@ -395,7 +409,16 @@ impl Encoder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Encoder::x264 => into_vec!["--preset", "slow", "--crf", "25"],
|
Encoder::x264 => into_vec!["--preset", "slow", "--crf", "25"],
|
||||||
Encoder::x265 => into_vec!["-p", "slow", "--crf", "25", "-D", "10"],
|
Encoder::x265 => into_vec![
|
||||||
|
"-p",
|
||||||
|
"slow",
|
||||||
|
"--crf",
|
||||||
|
"25",
|
||||||
|
"-D",
|
||||||
|
"10",
|
||||||
|
"--level-idc",
|
||||||
|
"5.0"
|
||||||
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue