Skip to content

Instantly share code, notes, and snippets.

@gh640
Last active February 5, 2022 13:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gh640/7d7d9d4c05c3f652ccc62a40f69f6405 to your computer and use it in GitHub Desktop.
Save gh640/7d7d9d4c05c3f652ccc62a40f69f6405 to your computer and use it in GitHub Desktop.
Sample: Convert `.mov` file to `.gif` animation
#!/usr/bin/env bash
# See: https://superuser.com/questions/436056/how-can-i-get-ffmpeg-to-convert-a-mov-to-a-gif
ffmpeg -i orig.mov -pix_fmt rgb24 -r 5 output.gif
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y ffmpeg && \
rm -rf /var/lib/apt/lists/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment