make sure everything is yuv420 for browsers

This commit is contained in:
Sam Lavigne 2023-08-25 14:20:06 -04:00
parent f044175986
commit 975e6a4fa2
1 changed files with 2 additions and 3 deletions

View File

@ -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;