set preset to "ultrafast" and GREATLY improve render times!

This commit is contained in:
Sam Lavigne
2023-08-31 15:45:12 -04:00
parent 8d347c0966
commit 4a646a8d26

View File

@ -94,6 +94,8 @@
if (outname.endsWith("mp4")) {
clist.splice(clist.length - 1, 0, "-pix_fmt");
clist.splice(clist.length - 1, 0, "yuv420p");
clist.splice(clist.length - 1, 0, "-preset");
clist.splice(clist.length - 1, 0, "ultrafast");
}
await ffmpeg.exec(clist, TIMEOUT);
const data = await ffmpeg.readFile(outname);