Remux with MOOV atom at the beginning
This commit is contained in:
@ -18,7 +18,7 @@ $audio = $param["a"] ?? 0;
|
|||||||
if (!is_dir("video/"))
|
if (!is_dir("video/"))
|
||||||
mkdir("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)
|
if ($err)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user