Skip to content

Instantly share code, notes, and snippets.

@mminer
Created August 10, 2020 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mminer/90e4350310282bd5c7aba07fa8caa261 to your computer and use it in GitHub Desktop.
Save mminer/90e4350310282bd5c7aba07fa8caa261 to your computer and use it in GitHub Desktop.
Converts .mov files to image sequences using FFmpeg.
#!/usr/bin/env bash
for filename in "$@"; do
base=$(basename "$filename" .mov)
mkdir "$base"
ffmpeg -i "$filename" "$base/$base-%03d.png"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment