Generate thumbnail sprites from videos and create preview video from thumbnails
- Clone it:
$ git clone [email protected]:alicaglayan/videoThumbnailGenerator.git
- Then go to the project's folder:
$ cd videoThumbnailGenerator
- And finally run:
$ chmod a+x build && ./build
$ ./generator --help
Video Thumbnail Generator
Usage:
./generator <video> <width> <height> <columns> <output> <video_preview>
./generator (-h | --help)
./generator --version
Options:
-h --help Show this screen.
--version Show version.
<video> Video file path.
<width> Width of each index.
<height> Height of each index.
<columns> Total number of thumbnails per line.
<output> Output.
<video_preview> Preview video path.
$ ./generator test.mp4 163 88 10 thumbnails/thumbs.jpg previews/video.mp4
Extracting 10 frames
[####################################] 100%
Frames extracted.
[MoviePy] >>>> Building video previews/43534.mp4
[MoviePy] Writing video previews/43534.mp4
100%|███████████████████████████████████████| 121/121 [00:00<00:00, 2146.97it/s]
[MoviePy] Done.
[MoviePy] >>>> Video ready: previews/43534.mp4
Saved!