1.1 KiB
1.1 KiB
Auto video thumbnail
Watch and resize all the videos you deposit in one folder.
Install
- Install Java.
Debian/Ubuntu
sudo apt install default-jdk ffmpeg
Mac OS
brew install openjdk
- Create
config.yaml
.
extension_thumbnail: "_thumbnail.mp4"
width_thumbnail: 600
path_videos: "videos"
audio_quality_thumbnail: 128
- Make folder
path_videos
.
mkdir videos
-
Install
ffmpeg
. -
Download the latest version (
video-optimize-{version}-SNAPSHOT-standalone.jar
).
https://github.com/tanrax/auto-video-thumbnail/releases
- Now you can execute.
java -jar video-optimize-{version}-SNAPSHOT-standalone.jar
or
java $JVM_OPTS -cp video-optimize-{version}-SNAPSHOT-standalone.jar clojure.main -m video-optimize.core
- 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).
example.mp4 -> example_thumbnail.mp4
Tricks
I just want to optimise, without resizing
Delete from your settings width_thumbnail
.