Package net.bramp.ffmpeg
Class FFmpegExecutor
java.lang.Object
net.bramp.ffmpeg.FFmpegExecutor
Executor that creates and runs FFmpeg jobs.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an FFmpegExecutor using default FFmpeg and FFprobe instances.FFmpegExecutor(FFmpeg ffmpeg) Constructs an FFmpegExecutor with the specified FFmpeg instance.FFmpegExecutor(FFmpeg ffmpeg, FFprobe ffprobe) Constructs an FFmpegExecutor with the specified FFmpeg and FFprobe instances. -
Method Summary
Modifier and TypeMethodDescriptioncreateJob(FFmpegBuilder builder) Creates a single-pass FFmpeg job from the given builder.createJob(FFmpegBuilder builder, ProgressListener listener) Creates a single-pass FFmpeg job with a progress listener.createTwoPassJob(FFmpegBuilder builder) Creates a two pass job, which will execute FFmpeg twice to produce a better quality output.createTwoPassJob(FFmpegBuilder builder, ProgressListener listener) Creates a two-pass FFmpeg job with a progress listener.
-
Constructor Details
-
FFmpegExecutor
Constructs an FFmpegExecutor using default FFmpeg and FFprobe instances.- Throws:
IOException
-
FFmpegExecutor
Constructs an FFmpegExecutor with the specified FFmpeg instance.- Throws:
IOException
-
FFmpegExecutor
Constructs an FFmpegExecutor with the specified FFmpeg and FFprobe instances.
-
-
Method Details
-
createJob
Creates a single-pass FFmpeg job from the given builder. -
createJob
Creates a single-pass FFmpeg job with a progress listener. -
createTwoPassJob
Creates a two pass job, which will execute FFmpeg twice to produce a better quality output. More info: https://trac.ffmpeg.org/wiki/x264EncodingGuide#twopass- Parameters:
builder- The FFmpegBuilder- Returns:
- A new two-pass FFmpegJob
-
createTwoPassJob
Creates a two-pass FFmpeg job with a progress listener.
-