auto-video-thumbnail/README.md

67 lines
1.1 KiB
Markdown
Raw Normal View History

2022-01-30 17:14:01 +01:00
# Auto video thumbnail
2022-01-30 17:11:26 +01:00
Watch and resize all the videos you deposit in one folder.
<img width="100%" src="demo.gif">
2020-07-14 09:38:42 +02:00
# Install
2020-07-14 09:39:29 +02:00
1) Install Java.
2020-07-14 09:38:42 +02:00
2020-07-14 09:39:29 +02:00
Debian/Ubuntu
2020-07-14 09:38:42 +02:00
``` bash
2022-01-30 17:12:30 +01:00
sudo apt install default-jdk ffmpeg
2020-07-14 09:38:42 +02:00
```
2020-07-14 09:39:29 +02:00
Mac OS
2020-07-14 09:38:42 +02:00
``` bash
brew install openjdk
```
2020-07-13 19:39:35 +02:00
2020-07-14 09:39:29 +02:00
2) 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"
audio_quality_thumbnail: 128
2020-07-13 20:15:12 +02:00
```
2020-07-14 00:00:18 +02:00
2020-07-14 09:39:29 +02:00
3) Make folder `path_videos`.
2020-07-14 00:00:18 +02:00
``` bash
mkdir videos
```
2020-07-14 09:39:29 +02:00
4) Install `ffmpeg`.
2020-07-14 00:00:18 +02:00
2020-07-14 11:25:10 +02:00
5) Download the latest version (`video-optimize-{version}-SNAPSHOT-standalone.jar`).
2020-07-14 00:00:18 +02:00
https://github.com/tanrax/auto-video-thumbnail/releases
2020-07-14 09:39:29 +02:00
6) Now you can execute.
2020-07-14 00:00:18 +02:00
2020-07-14 11:39:38 +02:00
``` bash
java -jar video-optimize-{version}-SNAPSHOT-standalone.jar
```
or
2020-07-14 00:00:18 +02:00
``` bash
2020-07-14 11:25:10 +02:00
java $JVM_OPTS -cp video-optimize-{version}-SNAPSHOT-standalone.jar clojure.main -m video-optimize.core
2020-07-14 00:00:18 +02:00
```
2020-07-14 09:39:29 +02:00
7) 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
2022-01-31 22:38:58 +01:00
# Tricks
## I just want to optimise, without resizing
Delete from your settings Pepe `width_thumbnail`.