Skip to content

Commit 6c61378

Browse files
authored
Fix x265 target quality (#923)
Closes #907
1 parent e6b29a5 commit 6c61378

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

av1an-core/src/encoder.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ impl Encoder {
762762
"fast",
763763
"--crf",
764764
q.to_string(),
765+
"--input",
766+
"-",
765767
],
766768
}
767769
}
@@ -799,6 +801,8 @@ impl Encoder {
799801
"--y4m",
800802
"--crf",
801803
q.to_string(),
804+
"--input",
805+
"-",
802806
],
803807
}
804808
}
@@ -867,9 +871,10 @@ impl Encoder {
867871

868872
let output: Vec<Cow<str>> = match self {
869873
Self::svt_av1 => chain!(params, into_array!["-b", probe_path]).collect(),
870-
Self::aom | Self::rav1e | Self::vpx | Self::x264 | Self::x265 => {
874+
Self::aom | Self::rav1e | Self::vpx | Self::x264 => {
871875
chain!(params, into_array!["-o", probe_path, "-"]).collect()
872876
}
877+
Self::x265 => chain!(params, into_array!["-o", probe_path]).collect(),
873878
};
874879

875880
(pipe, output)

0 commit comments

Comments
 (0)