Generate storybooks (thumbnail sprites) from videos in the CLI using ffmpeg.
- ffmpeg
go build -o generator./generator <input> <interval> <maxWidth> <maxHeight> <maxColumns> <output> <metadataOutput>docker run --rm -v <path/to/input>:/sample.mp4 -v <path/to/output/folder>:/output bod8/video-storybook-cli:latest /sample.mp4 <interval> <maxWidth> <maxHeight> <maxColumns> /output/<output> /output/<metadataOutput>| Name | Description |
|---|---|
| <input> | Path to input video file |
| <interval> | Frame interval in seconds |
| <maxWidth> | Maximum width of a single frame in the output sprite |
| <maxHeight> | Maximum height of a single frame in the output sprite |
| <maxColumns> | Maximum number of columns in output sprite |
| <output> | Path to output sprite file |
| <metadataOutput> | Path to output sprite metadata file |
The sprite was generated from some Blender sample video.
