Skip to content

Instantly share code, notes, and snippets.

View ec22s's full-sized avatar

Satoshi Koda ec22s

View GitHub Profile
@ec22s
ec22s / movie-to-keyframes.sh
Last active August 28, 2026 19:45
Extract all keyframes into a zip from your movie file.
#!/usr/bin/env -S bash -e
if [ -z "$1" ]; then
echo "ERROR: video file not supplied."
exit 1
fi
video="$(realpath "$*")"
output="${video%.*}_keyframes.zip"
if [ -f "$output" ]; then