Package net.bramp.ffmpeg.builder
Class AbstractFFmpegInputBuilder<T extends AbstractFFmpegInputBuilder<T>>
java.lang.Object
net.bramp.ffmpeg.builder.AbstractFFmpegStreamBuilder<T>
net.bramp.ffmpeg.builder.AbstractFFmpegInputBuilder<T>
- Direct Known Subclasses:
FFmpegFileInputBuilder
public abstract class AbstractFFmpegInputBuilder<T extends AbstractFFmpegInputBuilder<T>>
extends AbstractFFmpegStreamBuilder<T>
Abstract base class for building FFmpeg input arguments.
-
Field Summary
Fields inherited from class net.bramp.ffmpeg.builder.AbstractFFmpegStreamBuilder
audio_channels, audio_codec, audio_enabled, audio_preset, audio_sample_rate, DEVNULL, duration, extra_args, filename, format, maps, meta_tags, pass_padding_bitrate, preset, presetFilename, startOffset, strict, subtitle_enabled, subtitle_preset, targetSize, throwWarnings, uri, video_codec, video_copyinkf, video_enabled, video_frame_rate, video_frames, video_height, video_movflags, video_pixel_format, video_size, video_width -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFFmpegInputBuilder(FFmpegBuilder parent, String filename) Constructs an input builder with the given parent and filename.protectedAbstractFFmpegInputBuilder(FFmpegBuilder parent, FFmpegProbeResult probeResult, String filename) Constructs an input builder with the given parent, probe result, and filename. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddGlobalFlags(FFmpegBuilder parent, com.google.common.collect.ImmutableList.Builder<String> args) Adds global flags such as format, preset, and time options to the arguments.Returns a representation of this Builder that can be safely serialised.intprotected TgetThis()Returns this instance for fluent API chaining.Enables reading input at native frame rate.setStreamLoop(int streamLoop) Sets number of times input stream shall be looped.Methods inherited from class net.bramp.ffmpeg.builder.AbstractFFmpegStreamBuilder
addAudioFlags, addExtraArgs, addFormatArgs, addMap, addMap, addMetaTag, addMetaTag, addSourceTarget, addVideoFlags, build, build, disableAudio, disableSubtitle, disableVideo, done, getFilename, getUri, isValidSize, setAudioChannels, setAudioCodec, setAudioPreset, setAudioSampleRate, setDuration, setFilename, setFilename, setFilename, setFormat, setFrames, setPassPaddingBitrate, setPreset, setPresetFilename, setPresetFilename, setPresetFilename, setStartOffset, setStrict, setSubtitleCodec, setSubtitlePreset, setTargetSize, setUri, setVideoCodec, setVideoCopyInkf, setVideoFrameRate, setVideoFrameRate, setVideoFrameRate, setVideoHeight, setVideoMovFlags, setVideoPixelFormat, setVideoResolution, setVideoResolution, setVideoWidth, useOptions, useOptions, useOptions, useOptions
-
Constructor Details
-
AbstractFFmpegInputBuilder
Constructs an input builder with the given parent and filename. -
AbstractFFmpegInputBuilder
protected AbstractFFmpegInputBuilder(FFmpegBuilder parent, FFmpegProbeResult probeResult, String filename) Constructs an input builder with the given parent, probe result, and filename.
-
-
Method Details
-
readAtNativeFrameRate
Enables reading input at native frame rate. -
setStreamLoop
Sets number of times input stream shall be looped. Loop 0 means no loop, loop -1 means infinite loop.- Parameters:
streamLoop- loop counter- Returns:
- this
-
getProbeResult
-
getThis
Description copied from class:AbstractFFmpegStreamBuilderReturns this instance for fluent API chaining.- Specified by:
getThisin classAbstractFFmpegStreamBuilder<T extends AbstractFFmpegInputBuilder<T>>
-
buildOptions
Description copied from class:AbstractFFmpegStreamBuilderReturns a representation of this Builder that can be safely serialised.NOTE: This method is horribly out of date, and its use should be rethought.
- Specified by:
buildOptionsin classAbstractFFmpegStreamBuilder<T extends AbstractFFmpegInputBuilder<T>>- Returns:
- A new EncodingOptions capturing this Builder's state
-
addGlobalFlags
protected void addGlobalFlags(FFmpegBuilder parent, com.google.common.collect.ImmutableList.Builder<String> args) Description copied from class:AbstractFFmpegStreamBuilderAdds global flags such as format, preset, and time options to the arguments.- Overrides:
addGlobalFlagsin classAbstractFFmpegStreamBuilder<T extends AbstractFFmpegInputBuilder<T>>
-
getStreamLoop
-