Class AVCodecOptions
- java.lang.Object
-
- com.github.vbauer.avconv4java.core.AVOptions
-
- com.github.vbauer.avconv4java.option.AVCodecOptions
-
public class AVCodecOptions extends AVOptions
Codec Audio/Video Options.- See Also:
- Official doc: "5.4 Codec AVOptions"
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFLAG_BIT_RATEstatic java.lang.StringFLAG_CODEC_FLAGSstatic java.lang.StringFLAG_CUT_OFF_BANDWIDTHstatic java.lang.StringFLAG_DEBUGstatic java.lang.StringFLAG_FRAME_SIZEstatic java.lang.StringFLAG_GROUP_OF_PICTURESstatic java.lang.StringFLAG_MOTION_ESTIMATION_METHODstatic java.lang.StringFLAG_PRESETstatic java.lang.StringFLAG_STRICTstatic java.lang.StringFLAG_VIDEO_BIT_RATE_TOLERANCE
-
Constructor Summary
Constructors Constructor Description AVCodecOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AVCodecOptionsbitRate(AVStreamType streamType, java.lang.Integer bitRate)Set bitrate (in kbits/s).AVCodecOptionsbitRate(java.lang.Integer bitRate)AVCodecOptionsbuilders(AVOptions... builders)AVCodecOptionsbuilders(java.util.Collection<AVOptions> builders)AVCodecOptionscodecFlags(AVCodecFlagType flagType)AVCodecOptionscodecFlags(AVStreamType streamType, AVCodecFlagType flagType)Codec flags.AVCodecOptionscodecFlags(AVStreamType streamType, java.lang.String flagTypeName)AVCodecOptionscodecFlags(java.lang.String flagTypeName)static AVCodecOptionscreate()AVCodecOptionscutOffBandwidth(AVStreamType streamType, java.lang.Integer bandwidth)Set cutoff bandwidth.AVCodecOptionscutOffBandwidth(java.lang.Integer bandwidth)AVCodecOptionsdebug(AVDebugInfoType debugInfoType)Print specific debug info.AVCodecOptionsdebug(java.lang.String debugInfoTypeName)AVCodecOptionsflags(java.lang.Object... flags)AVCodecOptionsflags(java.util.Collection<java.lang.Object> flags)AVCodecOptionsframeSize(AVStreamType streamType, java.lang.Integer size)AVCodecOptionsframeSize(java.lang.Integer size)AVCodecOptionsgroupOfPictures(AVStreamType streamType, java.lang.Integer gopSize)Set the group of picture (GOP) size.AVCodecOptionsgroupOfPictures(java.lang.Integer gopSize)AVCodecOptionsmotionEstimationMethod(AVMotionEstimationType motionEstimationType)AVCodecOptionsmotionEstimationMethod(AVStreamType streamType, AVMotionEstimationType motionEstimationType)Set motion estimation method.AVCodecOptionsmotionEstimationMethod(AVStreamType streamType, java.lang.String motionEstimationType)AVCodecOptionsmotionEstimationMethod(java.lang.String motionEstimationType)AVCodecOptionspreset(AVStreamType streamType, java.lang.String fileName)AVCodecOptionsstrict(AVStrictType strictType)AVCodecOptionsstrict(java.lang.String strictTypeName)AVCodecOptionsvideoBitRateTolerance(AVStreamType streamType, java.lang.Integer bitRate)Set video bitrate tolerance (in kbits/s).AVCodecOptionsvideoBitRateTolerance(java.lang.Integer bitRate)
-
-
-
Field Detail
-
FLAG_BIT_RATE
public static final java.lang.String FLAG_BIT_RATE
- See Also:
- Constant Field Values
-
FLAG_VIDEO_BIT_RATE_TOLERANCE
public static final java.lang.String FLAG_VIDEO_BIT_RATE_TOLERANCE
- See Also:
- Constant Field Values
-
FLAG_CODEC_FLAGS
public static final java.lang.String FLAG_CODEC_FLAGS
- See Also:
- Constant Field Values
-
FLAG_MOTION_ESTIMATION_METHOD
public static final java.lang.String FLAG_MOTION_ESTIMATION_METHOD
- See Also:
- Constant Field Values
-
FLAG_GROUP_OF_PICTURES
public static final java.lang.String FLAG_GROUP_OF_PICTURES
- See Also:
- Constant Field Values
-
FLAG_CUT_OFF_BANDWIDTH
public static final java.lang.String FLAG_CUT_OFF_BANDWIDTH
- See Also:
- Constant Field Values
-
FLAG_FRAME_SIZE
public static final java.lang.String FLAG_FRAME_SIZE
- See Also:
- Constant Field Values
-
FLAG_STRICT
public static final java.lang.String FLAG_STRICT
- See Also:
- Constant Field Values
-
FLAG_DEBUG
public static final java.lang.String FLAG_DEBUG
- See Also:
- Constant Field Values
-
FLAG_PRESET
public static final java.lang.String FLAG_PRESET
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static AVCodecOptions create()
-
flags
public AVCodecOptions flags(java.util.Collection<java.lang.Object> flags)
-
flags
public AVCodecOptions flags(java.lang.Object... flags)
-
builders
public AVCodecOptions builders(java.util.Collection<AVOptions> builders)
-
builders
public AVCodecOptions builders(AVOptions... builders)
-
strict
public AVCodecOptions strict(AVStrictType strictType)
-
strict
public AVCodecOptions strict(java.lang.String strictTypeName)
-
bitRate
public AVCodecOptions bitRate(AVStreamType streamType, java.lang.Integer bitRate)
Set bitrate (in kbits/s). CMD: ‘-b[:stream_specifier] integer (output,audio,video)’
-
bitRate
public AVCodecOptions bitRate(java.lang.Integer bitRate)
-
videoBitRateTolerance
public AVCodecOptions videoBitRateTolerance(AVStreamType streamType, java.lang.Integer bitRate)
Set video bitrate tolerance (in kbits/s). In 1-pass mode, bitrate tolerance specifies how far ratecontrol is willing to deviate from the target average bitrate value. This is not related to minimum/maximum bitrate. Lowering tolerance too much has an adverse effect on quality. CMD: ‘-bt[:stream_specifier] integer (output,video)’
-
videoBitRateTolerance
public AVCodecOptions videoBitRateTolerance(java.lang.Integer bitRate)
-
motionEstimationMethod
public AVCodecOptions motionEstimationMethod(AVStreamType streamType, AVMotionEstimationType motionEstimationType)
Set motion estimation method. CMD: ‘-me_method[:stream_specifier] integer (output,video)’
-
motionEstimationMethod
public AVCodecOptions motionEstimationMethod(AVMotionEstimationType motionEstimationType)
-
motionEstimationMethod
public AVCodecOptions motionEstimationMethod(AVStreamType streamType, java.lang.String motionEstimationType)
-
motionEstimationMethod
public AVCodecOptions motionEstimationMethod(java.lang.String motionEstimationType)
-
debug
public AVCodecOptions debug(AVDebugInfoType debugInfoType)
Print specific debug info. CMD: ‘-debug[:stream_specifier] flags (input/output,audio,video,subtitles)’
-
debug
public AVCodecOptions debug(java.lang.String debugInfoTypeName)
-
codecFlags
public AVCodecOptions codecFlags(AVStreamType streamType, AVCodecFlagType flagType)
Codec flags. CMD: ‘-flags[:stream_specifier] flags (input/output,audio,video)’
-
codecFlags
public AVCodecOptions codecFlags(AVCodecFlagType flagType)
-
codecFlags
public AVCodecOptions codecFlags(AVStreamType streamType, java.lang.String flagTypeName)
-
codecFlags
public AVCodecOptions codecFlags(java.lang.String flagTypeName)
-
groupOfPictures
public AVCodecOptions groupOfPictures(AVStreamType streamType, java.lang.Integer gopSize)
Set the group of picture (GOP) size. CMD: ‘-g[:stream_specifier] integer (output,video)’
-
groupOfPictures
public AVCodecOptions groupOfPictures(java.lang.Integer gopSize)
-
cutOffBandwidth
public AVCodecOptions cutOffBandwidth(AVStreamType streamType, java.lang.Integer bandwidth)
Set cutoff bandwidth. CMD: ‘-cutoff[:stream_specifier] integer (output,audio)’
-
cutOffBandwidth
public AVCodecOptions cutOffBandwidth(java.lang.Integer bandwidth)
-
frameSize
public AVCodecOptions frameSize(AVStreamType streamType, java.lang.Integer size)
-
frameSize
public AVCodecOptions frameSize(java.lang.Integer size)
-
preset
public AVCodecOptions preset(AVStreamType streamType, java.lang.String fileName)
-
-