Convert MOV to GIF
TODO: collapasable, copyable, download, etc
I have a .mov file. On a mac on the CLI how can I export that as a gif?You can use the ffmpeg
tool on the command line to convert a .mov
file to a .gif
. Here's how you can do it on a Mac:
Install
ffmpeg
if you haven't already: You can installffmpeg
using Homebrew. If you don't have Homebrew installed, you can install it from Homebrew's official website.Open the Terminal and run the following commands:
brew install ffmpeg
Convert
.mov
to.gif
: Onceffmpeg
is installed, you can use the following command to convert your.mov
file to a.gif
:ffmpeg -i input.mov -vf "fps=10,scale=320:-1:flags=lanczos" -c:v gif output.gif
input.mov
is the name of your input .mov file.fps=10
sets the frames per second for the gif (you can adjust this value as needed).scale=320:-1
resizes the gif to a width of 320 pixels while maintaining the aspect ratio (you can adjust this value as needed).output.gif
is the name of your output gif file.
Here is a step-by-step example:
Open Terminal.
Navigate to the directory where your
.mov
file is located, or provide the full path to your.mov
file in the command.cd path/to/your/mov/file
Run the
ffmpeg
command:ffmpeg -i input.mov -vf "fps=10,scale=320:-1:flags=lanczos" -c:v gif output.gif
This will create a gif named output.gif
in the same directory as your input file. Adjust the fps
and scale
values according to your needs.
Related Chats
Convert M4A to WAV/MP3 0.528
Reducing GIF Dithering with ffmpeg 0.352
Edit Videos in iMovie 0.331
Converting MP4 to WAV 0.309
FFmpeg Video Segment Extraction 0.293
Record Snapchat Lens MP4. 0.291
Weighted Sampling in Swift 0.260
List CNAMEs with dig. 0.255
New chat 0.248