From 7a1686e92cdc91b2ef91d9fbbdb0cecfda4a3e55 Mon Sep 17 00:00:00 2001 From: Tomas Date: Thu, 2 Oct 2025 14:54:33 +0200 Subject: [PATCH] Remux with MOOV atom at the beginning --- api/video.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/video.php b/api/video.php index 76b6770..e3de960 100644 --- a/api/video.php +++ b/api/video.php @@ -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) {