skip some irrelevant ffmpeg options
This commit is contained in:
parent
d7d30ac6bf
commit
3aeb9dd8be
1 changed files with 5 additions and 2 deletions
|
@ -92,7 +92,10 @@ impl FfmpegOutput {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn enable_faststart(mut self) -> Self {
|
pub(crate) fn enable_faststart(mut self) -> Self {
|
||||||
|
// only enable faststart for MP4 containers
|
||||||
|
if matches!(self.format, FfmpegOutputFormat::AvcAac) {
|
||||||
self.faststart = true;
|
self.faststart = true;
|
||||||
|
}
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,7 +130,7 @@ impl FfmpegOutput {
|
||||||
});
|
});
|
||||||
if let Some(ba) = self.audio_bitrate {
|
if let Some(ba) = self.audio_bitrate {
|
||||||
cmd.arg("-b:a").arg(ba.to_string());
|
cmd.arg("-b:a").arg(ba.to_string());
|
||||||
} else {
|
} else if !matches!(self.format, FfmpegOutputFormat::Av1Flac) {
|
||||||
cmd.arg("-b:a").arg("128k");
|
cmd.arg("-b:a").arg("128k");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue