Skip to content

Commit 69cbc36

Browse files
committed
libsvtav1: Support crf quarter steps
1 parent 5ad2925 commit 69cbc36

3 files changed

Lines changed: 69 additions & 69 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased (0.11)
2+
* libsvtav1: Support crf quarter steps. This requires svt-av1 >= v4.0.0, if using an older version
3+
you may want to use crf-search `--crf-increment 1` for the old behaviour.
4+
15
# v0.10.4
26
* Use ffmpeg `-fps_mode passthrough` for all sample encodes. This improves VMAF scores in some cases.
37
* Use explicit pixel format in xpsnr calls, use highest quality format of the ref & distorted streams.

Cargo.lock

Lines changed: 62 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/command/args/encode.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ impl Encode {
213213
_ => 0,
214214
};
215215
svtav1_params.push(format!("scd={scd}"));
216+
// include crf in svtav1-params to support quarter-steps
217+
svtav1_params.push(format!("crf={crf}"));
216218
// add all --svt args
217219
svtav1_params.extend(self.svt_args.iter().map(|a| a.to_string()));
218220
}
@@ -382,6 +384,7 @@ impl Encoder {
382384
pub fn default_crf_increment(&self) -> f32 {
383385
match self.as_str() {
384386
"libx264" | "libx265" => 0.1,
387+
"libsvtav1" => 0.25,
385388
_ => 1.0,
386389
}
387390
}

0 commit comments

Comments
 (0)