Update README.md

This commit is contained in:
Andros Fenollosa 2020-07-14 09:39:29 +02:00 committed by GitHub
parent a024cd4cd8
commit 9448c34702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,20 @@
# Install # Install
0) Install Java. 1) Install Java.
## Debian/Ubuntu Debian/Ubuntu
``` bash ``` bash
sudo apt install default-jdk sudo apt install default-jdk
``` ```
## Mac OS Mac OS
``` bash ``` bash
brew install openjdk brew install openjdk
``` ```
1) Create `config.yaml`. 2) Create `config.yaml`.
``` bash ``` bash
extension_thumbnail: "_thumbnail.mp4" extension_thumbnail: "_thumbnail.mp4"
@ -22,26 +22,26 @@ width_thumbnail: 600
path_videos: "videos" path_videos: "videos"
``` ```
2) Make folder `path_videos`. 3) Make folder `path_videos`.
``` bash ``` bash
mkdir videos mkdir videos
``` ```
3) Install `ffmpeg`. 4) Install `ffmpeg`.
4) Download the latest version (`video-optimize-{version}-standalone.jar`). 5) Download the latest version (`video-optimize-{version}-standalone.jar`).
https://github.com/tanrax/auto-video-thumbnail/releases https://github.com/tanrax/auto-video-thumbnail/releases
5) Now you can execute. 6) Now you can execute.
``` bash ``` bash
java $JVM_OPTS -cp video-optimize-{version}-standalone.jar clojure.main -m video-optimize.core java $JVM_OPTS -cp video-optimize-{version}-standalone.jar clojure.main -m video-optimize.core
``` ```
6) Leave videos in folder `videos`. 7) Leave videos in folder `videos`.
Everything you leave in the videos folder will be optimized for web with the specified resolution (600px in this example). Everything you leave in the videos folder will be optimized for web with the specified resolution (600px in this example).