A Java version of node-fluent-ffmpeg.
git clone https://github.com/hcmfys/java-fluent-ffmpeg
You will need FFmpeg installed on your machine, or you can specify a path to a binary:
// Provide an empty string to use default FFmpeg path
import org.springbus.ff.FFmpegCommand;
FFmpegCommand cmd =new FFmpegCommand();
// Specify a path
cmd =new FFmpegCommand("/path/to/ffmpeg/binary");
Create and run commands using an API similar to node-fluent-ffmpeg:
import org.springbus.ff.FFmpegCommand;
FFmpegCommand ff = new FFmpegCommand();
ff.input("/path/a.mp3");
ff.fpsInput(60);
ff.output("/path/b.mp3");
String rt = ff.run();
System.out.println(rt);
This repo was inspired by node-fluent-ffmpeg