auto-video-thumbnail/README.md

49 lines
804 B
Markdown
Raw Normal View History

2020-07-14 09:38:42 +02:00
# Install
0) Install Java.
## Debian/Ubuntu
``` bash
sudo apt install default-jdk
```
## Mac OS
``` bash
brew install openjdk
```
2020-07-13 19:39:35 +02:00
2020-07-14 00:00:18 +02:00
1) Create `config.yaml`.
2020-07-13 19:39:35 +02:00
2020-07-13 20:15:12 +02:00
``` bash
2020-07-14 00:00:18 +02:00
extension_thumbnail: "_thumbnail.mp4"
width_thumbnail: 600
path_videos: "videos"
2020-07-13 20:15:12 +02:00
```
2020-07-14 00:00:18 +02:00
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
```
2020-07-14 00:07:50 +02:00
6) Leave videos in folder `videos`.
2020-07-14 00:00:18 +02:00
2020-07-14 00:07:50 +02:00
Everything you leave in the videos folder will be optimized for web with the specified resolution (600px in this example).
example.mp4 -> example_thumbnail.mp4