A java tool and daemon to encode videos in web-ready forms using ffmpeg.
The video encoder takes any video supported by ffmpeg and converts it to a small ("low-Q") version, with maximum width of 640 pixels as well to a version with maximum width 1200 pixels. Moreover, the encoder generates a video element and a javascript page including the information.
See the help page.
See the sample daemon config to see how to configure the encoder-daemon.
First install ffmpeg.
Download the source code and compile with maven.
git clone https://github.com/polx/VideoEncoder.git
mvn package
You obtaine a videoEncoder.jar
in the target
directory which is the main java file.
You can then invoke the video-encoder using the help page.
Or invoke the encode daemon using:
java -classpath target/videoEncoder.jar net.hoplahup.polx.videoencoder.EncodeDaemon
Under Apache License 2.0. Feel free to request more permissive licenses.