Create README.md
This commit is contained in:
49
README.md
Normal file
49
README.md
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# video-thumbnail-generator
|
||||||
|
Generate thumbnail sprites from videos.
|
||||||
|
|
||||||
|
### Why?
|
||||||
|

|
||||||
|
|
||||||
|
Almost all video players enhances user's seekbar navigation by providing a thumbnail preview of the moments where the user can seek to. This is a python script that, given a video, generate a thumbnail sprite image from it.
|
||||||
|
|
||||||
|
### Build
|
||||||
|
|
||||||
|
Clone this repository. On project folder:
|
||||||
|
```shell
|
||||||
|
$ chmod a+x build && ./build
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run
|
||||||
|
```shell
|
||||||
|
$ chmod a+x generator && ./generator --help
|
||||||
|
Video Thumbnail Generator
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
./generator <video> <interval> <width> <height> <columns> <output>
|
||||||
|
./generator (-h | --help)
|
||||||
|
./generator --version
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-h --help Show this screen.
|
||||||
|
--version Show version.
|
||||||
|
<video> Video filepath.
|
||||||
|
<interval> Interval em seconds between frames.
|
||||||
|
<width> Width of each thumbnail.
|
||||||
|
<height> Height of each thumbnail.
|
||||||
|
<columns> Total number of thumbnails per line.
|
||||||
|
<output> Output.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```shell
|
||||||
|
$ ./generator videos/27467_1_milkbots_wg_720p.mp4 2 126 73 10 27467_1_milkbots_wg_with_script.jpg
|
||||||
|
Extracting 101 frames
|
||||||
|
.................................................................. Frames extracted.
|
||||||
|
Saved!
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### License
|
||||||
|
|
||||||
|
This code is under [Apache License](https://github.com/flavioribeiro/video-thumbnail-generator/blob/master/LICENSE).
|
||||||
Reference in New Issue
Block a user