Skip to content

IAmBod/video-storybook-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Storybook CLI

Generate storybooks (thumbnail sprites) from videos in the CLI using ffmpeg.

Requirements

  • ffmpeg

Build

go build -o generator

Usage

CLI

./generator <input> <interval> <maxWidth> <maxHeight> <maxColumns> <output> <metadataOutput>

Docker

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>

Options

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

Example

The sprite was generated from some Blender sample video.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published