33 lines
621 B
Markdown
33 lines
621 B
Markdown
# Usage
|
|
|
|
1) Create `config.yaml`.
|
|
|
|
``` bash
|
|
extension_thumbnail: "_thumbnail.mp4"
|
|
width_thumbnail: 600
|
|
path_videos: "videos"
|
|
```
|
|
|
|
2) Make folder `path_videos`.
|
|
|
|
``` bash
|
|
mkdir videos
|
|
```
|
|
|
|
3) Install `ffmpeg`.
|
|
|
|
4) Download the latest version (`video-optimize-{version}-standalone.jar`).
|
|
|
|
https://github.com/tanrax/auto-video-thumbnail/releases
|
|
|
|
|
|
5) Now you can execute.
|
|
|
|
``` bash
|
|
java $JVM_OPTS -cp video-optimize-{version}-standalone.jar clojure.main -m video-optimize.core
|
|
```
|
|
|
|
6) Leave videos.
|
|
|
|
Everything you leave in the videos folder will be optimized for web with the specified resolution (600 px in this example).
|