add faststart flag
This commit is contained in:
parent
24ea4ebe07
commit
270233ca5c
2 changed files with 2 additions and 0 deletions
|
@ -177,6 +177,7 @@ impl Ffmpeg {
|
|||
if let Some(duration) = self.duration {
|
||||
cmd.arg("-t").arg(format_time(duration));
|
||||
}
|
||||
cmd.arg("-movflags").arg("+faststart");
|
||||
cmd.arg(&self.output);
|
||||
|
||||
let status = cmd.status()?;
|
||||
|
|
|
@ -458,6 +458,7 @@ impl<'a> Renderer<'a> {
|
|||
));
|
||||
ffmpeg.arg("-c:a").arg("copy").arg("-c:v").arg("h264_vaapi");
|
||||
ffmpeg.arg("-b:v").arg(res.bitrate());
|
||||
ffmpeg.arg("-movflags").arg("+faststart");
|
||||
ffmpeg.arg(&output);
|
||||
|
||||
let status = ffmpeg.status()?;
|
||||
|
|
Loading…
Reference in a new issue