@Properties(inherit={avdevice.class,avfilter.class}, value=@Platform(executable="ffmpeg")) public class ffmpeg extends Object
ffmpeg
program ready for execution.
For example, we can transcode a video to H.264 all from Java in a portable fashion this way:
String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
ProcessBuilder pb = new ProcessBuilder(ffmpeg, "-i", "/path/to/input.mp4", "-vcodec", "h264", "/path/to/output.mp4");
pb.inheritIO().start().waitFor();
Copyright © 2020. All rights reserved.