Skip to content

Commit

Permalink
Update Editor.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgriffing authored Dec 10, 2024
1 parent 348fcdd commit 42a1acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playgrounds/app/src/components/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', 'libvpx', '-pix_fmt', 'yuv420p', 'output.webm'])
await ffmpeg.exec(['-i', 'input.gif', '-vcodec', 'libx264', '-pix_fmt', 'yuv420p', 'output.mp4'])
const data = await ffmpeg.readFile('output.mp4')
const blob = new Blob([data], { type: 'video/mp4' })
const filename = 'giffium.mp4'
Expand Down

0 comments on commit 42a1acb

Please sign in to comment.