add faststart flag

This commit is contained in:
Dominic 2023-11-15 14:13:57 +01:00
parent 24ea4ebe07
commit 270233ca5c
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
2 changed files with 2 additions and 0 deletions

View file

@ -177,6 +177,7 @@ impl Ffmpeg {
if let Some(duration) = self.duration { if let Some(duration) = self.duration {
cmd.arg("-t").arg(format_time(duration)); cmd.arg("-t").arg(format_time(duration));
} }
cmd.arg("-movflags").arg("+faststart");
cmd.arg(&self.output); cmd.arg(&self.output);
let status = cmd.status()?; let status = cmd.status()?;

View file

@ -458,6 +458,7 @@ impl<'a> Renderer<'a> {
)); ));
ffmpeg.arg("-c:a").arg("copy").arg("-c:v").arg("h264_vaapi"); ffmpeg.arg("-c:a").arg("copy").arg("-c:v").arg("h264_vaapi");
ffmpeg.arg("-b:v").arg(res.bitrate()); ffmpeg.arg("-b:v").arg(res.bitrate());
ffmpeg.arg("-movflags").arg("+faststart");
ffmpeg.arg(&output); ffmpeg.arg(&output);
let status = ffmpeg.status()?; let status = ffmpeg.status()?;