From 975e6a4fa2aea54d1bd1f3ea79ebab50a0b67dae Mon Sep 17 00:00:00 2001 From: Sam Lavigne Date: Fri, 25 Aug 2023 14:20:06 -0400 Subject: [PATCH] make sure everything is yuv420 for browsers --- src/App.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index bd3cd38..390b534 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -42,10 +42,9 @@ .replace("ffmpeg", "") .split(" ") .filter((i) => i.trim() != ""); + clist.splice(clist.length-1, 0, "-pix_fmt") + clist.splice(clist.length-1, 0, "yuv420p") console.log("command", clist); - // command.push("-pix_fmt"); - // command.push("yuv420p"); - // command.push("out.mp4"); await ffmpeg.exec(clist, TIMEOUT); const data = await ffmpeg.readFile("out.mp4"); rendering = false;