From 348fcdd2052c5ca438dbc93bd0b9970eb2cbefef Mon Sep 17 00:00:00 2001 From: Chris Griffing Date: Tue, 10 Dec 2024 02:10:06 -0800 Subject: [PATCH] Update Editor.tsx --- playgrounds/app/src/components/Editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playgrounds/app/src/components/Editor.tsx b/playgrounds/app/src/components/Editor.tsx index af035a3..1e41fe7 100644 --- a/playgrounds/app/src/components/Editor.tsx +++ b/playgrounds/app/src/components/Editor.tsx @@ -1019,7 +1019,7 @@ export default function Editor(props: EditorProps) { setIsGeneratingVideo(true) setVideoProgress(0) await ffmpeg.writeFile('input.gif', dataURItoUInt8Array(gifDataUrl())) - await ffmpeg.exec(['-i', 'input.gif', '-vcodec', 'libx264', '-pix_fmt', 'yuv420p', 'output.mp4']) + await ffmpeg.exec(['-i', 'input.gif', '-vcodec', 'libvpx', '-pix_fmt', 'yuv420p', 'output.webm']) const data = await ffmpeg.readFile('output.mp4') const blob = new Blob([data], { type: 'video/mp4' }) const filename = 'giffium.mp4'