Forum Discussion
Can I convert quicktime mov video to gif on my computer?
That's it! FF mpeg will do its thing and spit out a GIF. The downside? By default, the quality can be a bit rough and the file size might be huge because it just uses a generic color palette . But for a quick test, it works perfectly to convert .mov to gif.
For a way better result, you want to use a two-step process. This tells FF mpeg to first analyze your video to create a custom color palette that perfectly matches it, then use that palette to make the final GIF. This gives you a much sharper and smaller file.
Step 1: Generate the Palette
This command looks at your .mov file, sets a framerate (fps=15), and scales it down a bit (scale=480:-1 is 480px wide, keeping the aspect ratio) before generating a custom color palette and saving it as palette.png.
bash
ff mpeg -i your-video. mov -vf "fps=15,scale=480:-1: flags=lanczos,palettegen" palette. png
[citation:11]
Step 2: Create the GIF
Now, you use that palette.png file to create the final GIF, which will look so much better.
bash
ff mpeg -i your-video. mov -i palette. png -filter_complex "fps=15,scale=480:-1:flags=lanczos [x]; [x][1:v] paletteuse" output.gif
[citation:7][citation:11]
A couple of quick tips:
- The fps=15 sets the frame rate. Lower numbers = smaller file size, but choppier motion.
- The scale=480:-1 sets the width. Change 480 to whatever width you want, and the height will adjust automatically.
So there you have it! You can use the quick one-liner for speed, or the two-step method for a much higher-quality GIF. Both are solid ways to convert .mov to gif using FF mpeg on your Windows machine.