From 4a646a8d261f6d9ba833442be605d265199e9e7d Mon Sep 17 00:00:00 2001 From: Sam Lavigne Date: Thu, 31 Aug 2023 15:45:12 -0400 Subject: [PATCH] set preset to "ultrafast" and GREATLY improve render times! --- src/App.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App.svelte b/src/App.svelte index 302226b..c67e4e1 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -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);