mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 23:09:10 +00:00
move mp4 moov atom to the beginning (#883)
Video playback starts faster in browsers.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user