koma video capture.
npm -g install vidcap
# write movie captures
vidcap path/to/movie.mp4
# with interval & capture size
vidcap -i 5 -s 300x200 path/to/movie.mp4
# check captures
ls movie.vidcap
# convert movie to sprite
vidcap path/to/movie.mp4 -f sprite
# convert movie to gif animation
vidcap path/to/movie.mp4 -f gif
capture interval. (seconds)
capture size. (ex. 640x480
)
capture width.
capture height.
output file basename.
use zero-padding number. (01, 02, 03...)
movie duration. (seconds)
movie start offset time. (seconds)
output format. (images|sprite|gif)
- images => output directory
{:basename}.vidcap
- sprite => output
{:basename}.jpg
as concated image - gif => output
{:basename}.gif
as animation