Remux with MOOV atom at the beginning

This commit is contained in:
2025-10-02 14:54:33 +02:00
parent 732791e4f4
commit 7a1686e92c

View File

@ -18,7 +18,7 @@ $audio = $param["a"] ?? 0;
if (!is_dir("video/"))
mkdir("video/");
$err = ffmpeg($path, "video/$cacheid.mp4", ["-map", "0:v:$video", "-map", "0:a:$audio", "-c", "copy"]);
$err = ffmpeg($path, "video/$cacheid.mp4", ["-movflags", "faststart", "-map", "0:v:$video", "-map", "0:a:$audio", "-c", "copy"]);
if ($err)
{