Forked from zomars/generate-vertical-sprite-from-video.sh
Created
April 29, 2022 10:49
-
-
Save Chizaruu/79d7ec21f1a72c1f358e6128d5d4ef1d to your computer and use it in GitHub Desktop.
generate a vertical sprite sheet from video file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fps=10 | |
| ffmpeg -i video.mp4 -f image2 -vf fps=fps=10 img%03d.jpg | |
| # vertical sprite | |
| files=$(ls img*.jpg | sort -t '-' -n -k 2 | tr '\n' ' ') | |
| convert $files -append output.jpg | |
| # references: | |
| # http://www.imagemagick.org/script/command-line-options.php#append | |
| # http://www.imagemagick.org/script/command-line-options.php#resize | |
| # http://ffmpeg.org/trac/ffmpeg/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment