Skip to content

Instantly share code, notes, and snippets.

@sungmin-park
Created June 28, 2021 03:08
Show Gist options
  • Save sungmin-park/d5b991d0f43975996716945bffabd813 to your computer and use it in GitHub Desktop.
Save sungmin-park/d5b991d0f43975996716945bffabd813 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
if [ $# -eq 0 ] ; then
echo "usage> $0 [movie files] ..." >&2
exit 1
fi
for TARGET in "$@"
do
RESULT=${TARGET%.*}.png
ffmpeg -i "$TARGET" -vframes 1 "$RESULT"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment