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:

  1. Install ffmpeg if you haven't already: You can install ffmpeg 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
    
  2. Convert .mov to .gif: Once ffmpeg 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:

  1. Open Terminal.

  2. 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
    
  3. 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.

Convert MOV to GIF created at Tue Jan 20 1970 21:57:21 GMT+0000 (Coordinated Universal Time)

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