make sure everything is yuv420 for browsers
This commit is contained in:
parent
f044175986
commit
975e6a4fa2
|
@ -42,10 +42,9 @@
|
||||||
.replace("ffmpeg", "")
|
.replace("ffmpeg", "")
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.filter((i) => i.trim() != "");
|
.filter((i) => i.trim() != "");
|
||||||
|
clist.splice(clist.length-1, 0, "-pix_fmt")
|
||||||
|
clist.splice(clist.length-1, 0, "yuv420p")
|
||||||
console.log("command", clist);
|
console.log("command", clist);
|
||||||
// command.push("-pix_fmt");
|
|
||||||
// command.push("yuv420p");
|
|
||||||
// command.push("out.mp4");
|
|
||||||
await ffmpeg.exec(clist, TIMEOUT);
|
await ffmpeg.exec(clist, TIMEOUT);
|
||||||
const data = await ffmpeg.readFile("out.mp4");
|
const data = await ffmpeg.readFile("out.mp4");
|
||||||
rendering = false;
|
rendering = false;
|
||||||
|
|
Loading…
Reference in New Issue