skip some irrelevant ffmpeg options

This commit is contained in:
Dominic 2024-01-09 22:01:35 +01:00
parent d7d30ac6bf
commit 3aeb9dd8be
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -92,7 +92,10 @@ impl FfmpegOutput {
}
pub(crate) fn enable_faststart(mut self) -> Self {
self.faststart = true;
// only enable faststart for MP4 containers
if matches!(self.format, FfmpegOutputFormat::AvcAac) {
self.faststart = true;
}
self
}
@ -127,7 +130,7 @@ impl FfmpegOutput {
});
if let Some(ba) = self.audio_bitrate {
cmd.arg("-b:a").arg(ba.to_string());
} else {
} else if !matches!(self.format, FfmpegOutputFormat::Av1Flac) {
cmd.arg("-b:a").arg("128k");
}