move mp4 moov atom to the beginning (#883)
Video playback starts faster in browsers.
This commit is contained in:
parent
9c85663522
commit
153f37e5fb
|
@ -126,6 +126,7 @@ func (worker *FfmpegWorker) EncodeMp4(inputPath string, outputPath string) error
|
|||
"-vcodec", "h264",
|
||||
"-acodec", "aac",
|
||||
"-vf", "scale='min(1080,iw)':'min(1080,ih)':force_original_aspect_ratio=decrease:force_divisible_by=2",
|
||||
"-movflags", "+faststart+use_metadata_tags",
|
||||
outputPath,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue