Class AVVideoOptions
- java.lang.Object
-
- com.github.vbauer.avconv4java.core.AVOptions
-
- com.github.vbauer.avconv4java.option.AVVideoOptions
-
public class AVVideoOptions extends AVOptions
Video Options.- See Also:
- Official doc: "5.7 Video Options"
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFILTER_SCALE_BY_HEIGHTstatic java.lang.StringFILTER_SCALE_BY_WIDTHstatic java.lang.StringFLAG_ASPECT_RATIOstatic java.lang.StringFLAG_DISABLE_VIDEO_RECORDINGstatic java.lang.StringFLAG_FILTERstatic java.lang.StringFLAG_FRAME_RATEstatic java.lang.StringFLAG_MOV_FLAGSstatic java.lang.StringFLAG_PASS_COUNTstatic java.lang.StringFLAG_PASS_LOG_FILE_PREFIXstatic java.lang.StringFLAG_RESIZEstatic java.lang.StringFLAG_VIDEO_CODECstatic java.lang.StringFLAG_VIDEO_FRAMES_COUNT
-
Constructor Summary
Constructors Constructor Description AVVideoOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AVVideoOptionsaspectRatio(AVStreamType streamType, java.lang.Double ratio)AVVideoOptionsaspectRatio(AVStreamType streamType, java.lang.Integer width, java.lang.Integer height)AVVideoOptionsaspectRatio(AVStreamType streamType, java.lang.String ratio)‘-aspect[:stream_specifier] aspect (output,per-stream)’ Set the video display aspect ratio specified by aspect.AVVideoOptionsaspectRatio(java.lang.Double ratio)AVVideoOptionsaspectRatio(java.lang.Integer width, java.lang.Integer height)AVVideoOptionsaspectRatio(java.lang.String ratio)AVVideoOptionsbuilders(AVOptions... builders)AVVideoOptionsbuilders(java.util.Collection<AVOptions> builders)static AVVideoOptionscreate()AVVideoOptionsdisableRecording()‘-vn (output)’ Disable video recording.AVVideoOptionsfilter(java.lang.String filter, java.lang.Object... params)‘-vf filter_graph (output)’ filter_graph is a description of the filter graph to apply to the input video.AVVideoOptionsflags(java.lang.Object... flags)AVVideoOptionsflags(java.util.Collection<java.lang.Object> flags)AVVideoOptionsframeRate(AVStreamType streamType, java.lang.Integer rate)‘-r[:stream_specifier] fps (input/output,per-stream)’ Set frame rate (Hz value, fraction or abbreviation).AVVideoOptionsframeRate(java.lang.Integer rate)AVVideoOptionsframesCount(java.lang.Long count)‘-vframes number (output)’ Set the number of video frames to record.AVVideoOptionsmovFlags(AVMovFlagsType movFlagsType)‘-movflags frag_keyframe’ Start a new fragment at each video keyframe.AVVideoOptionsmovFlags(java.lang.String movFlagsTypeName)AVVideoOptionsonePassEncoding()AVVideoOptionsonePassEncoding(AVStreamType streamType)AVVideoOptionspassCount(AVStreamType streamType, java.lang.Integer pass)‘-pass[:stream_specifier] n (output,per-stream)’ Select the pass number (1 or 2).AVVideoOptionspassCount(java.lang.Integer pass)AVVideoOptionspassLogFilePrefix(AVStreamType streamType, java.lang.String prefix)‘-passlogfile[:stream_specifier] prefix (output,per-stream)’ Set two-pass log file name prefix to prefix, the default file name prefix is “av2pass”.AVVideoOptionspassLogFilePrefix(java.lang.String prefix)AVVideoOptionsproportionalResizeUsingHeight(java.lang.Integer height)AVVideoOptionsproportionalResizeUsingWidth(java.lang.Integer width)AVVideoOptionsresize(AVStreamType streamType, AVVideoSizeType videoSizeType)AVVideoOptionsresize(AVStreamType streamType, java.lang.Integer width, java.lang.Integer height)AVVideoOptionsresize(AVStreamType streamType, java.lang.String size)AVVideoOptionstwoPassEncoding()AVVideoOptionstwoPassEncoding(AVStreamType streamType)AVVideoOptionsvideoCodec(AVVideoCodecType codecType)‘-vcodec codec (output)’ Set the video codec.AVVideoOptionsvideoCodec(java.lang.String codecTypeName)
-
-
-
Field Detail
-
FLAG_VIDEO_FRAMES_COUNT
public static final java.lang.String FLAG_VIDEO_FRAMES_COUNT
- See Also:
- Constant Field Values
-
FLAG_FRAME_RATE
public static final java.lang.String FLAG_FRAME_RATE
- See Also:
- Constant Field Values
-
FLAG_RESIZE
public static final java.lang.String FLAG_RESIZE
- See Also:
- Constant Field Values
-
FLAG_ASPECT_RATIO
public static final java.lang.String FLAG_ASPECT_RATIO
- See Also:
- Constant Field Values
-
FLAG_DISABLE_VIDEO_RECORDING
public static final java.lang.String FLAG_DISABLE_VIDEO_RECORDING
- See Also:
- Constant Field Values
-
FLAG_VIDEO_CODEC
public static final java.lang.String FLAG_VIDEO_CODEC
- See Also:
- Constant Field Values
-
FLAG_MOV_FLAGS
public static final java.lang.String FLAG_MOV_FLAGS
- See Also:
- Constant Field Values
-
FLAG_PASS_COUNT
public static final java.lang.String FLAG_PASS_COUNT
- See Also:
- Constant Field Values
-
FLAG_PASS_LOG_FILE_PREFIX
public static final java.lang.String FLAG_PASS_LOG_FILE_PREFIX
- See Also:
- Constant Field Values
-
FLAG_FILTER
public static final java.lang.String FLAG_FILTER
- See Also:
- Constant Field Values
-
FILTER_SCALE_BY_WIDTH
public static final java.lang.String FILTER_SCALE_BY_WIDTH
- See Also:
- Constant Field Values
-
FILTER_SCALE_BY_HEIGHT
public static final java.lang.String FILTER_SCALE_BY_HEIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static AVVideoOptions create()
-
flags
public AVVideoOptions flags(java.util.Collection<java.lang.Object> flags)
-
flags
public AVVideoOptions flags(java.lang.Object... flags)
-
builders
public AVVideoOptions builders(java.util.Collection<AVOptions> builders)
-
builders
public AVVideoOptions builders(AVOptions... builders)
-
videoCodec
public AVVideoOptions videoCodec(AVVideoCodecType codecType)
‘-vcodec codec (output)’ Set the video codec. This is an alias for -codec:v.
-
videoCodec
public AVVideoOptions videoCodec(java.lang.String codecTypeName)
-
resize
public AVVideoOptions resize(AVStreamType streamType, java.lang.Integer width, java.lang.Integer height)
-
resize
public AVVideoOptions resize(AVStreamType streamType, AVVideoSizeType videoSizeType)
-
resize
public AVVideoOptions resize(AVStreamType streamType, java.lang.String size)
-
filter
public AVVideoOptions filter(java.lang.String filter, java.lang.Object... params)
‘-vf filter_graph (output)’ filter_graph is a description of the filter graph to apply to the input video. Use the option "-filters" to show all the available filters (including also sources and sinks). This is an alias for -filter:v.
-
proportionalResizeUsingWidth
public AVVideoOptions proportionalResizeUsingWidth(java.lang.Integer width)
-
proportionalResizeUsingHeight
public AVVideoOptions proportionalResizeUsingHeight(java.lang.Integer height)
-
frameRate
public AVVideoOptions frameRate(AVStreamType streamType, java.lang.Integer rate)
‘-r[:stream_specifier] fps (input/output,per-stream)’ Set frame rate (Hz value, fraction or abbreviation). As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. As an output option, duplicate or drop input frames to achieve constant output frame rate fps (note that this actually causes the fps filter to be inserted to the end of the corresponding filtergraph).
-
frameRate
public AVVideoOptions frameRate(java.lang.Integer rate)
-
movFlags
public AVVideoOptions movFlags(AVMovFlagsType movFlagsType)
‘-movflags frag_keyframe’ Start a new fragment at each video keyframe.
-
movFlags
public AVVideoOptions movFlags(java.lang.String movFlagsTypeName)
-
framesCount
public AVVideoOptions framesCount(java.lang.Long count)
‘-vframes number (output)’ Set the number of video frames to record. This is an alias for -frames:v.
-
aspectRatio
public AVVideoOptions aspectRatio(AVStreamType streamType, java.lang.String ratio)
‘-aspect[:stream_specifier] aspect (output,per-stream)’ Set the video display aspect ratio specified by aspect. aspect can be a floating point number string, or a string of the form num:den, where num and den are the numerator and denominator of the aspect ratio. For example "4:3", "16:9", "1.3333", and "1.7777" are valid argument values.
-
aspectRatio
public AVVideoOptions aspectRatio(java.lang.String ratio)
-
aspectRatio
public AVVideoOptions aspectRatio(AVStreamType streamType, java.lang.Integer width, java.lang.Integer height)
-
aspectRatio
public AVVideoOptions aspectRatio(java.lang.Integer width, java.lang.Integer height)
-
aspectRatio
public AVVideoOptions aspectRatio(AVStreamType streamType, java.lang.Double ratio)
-
aspectRatio
public AVVideoOptions aspectRatio(java.lang.Double ratio)
-
disableRecording
public AVVideoOptions disableRecording()
‘-vn (output)’ Disable video recording.
-
passCount
public AVVideoOptions passCount(AVStreamType streamType, java.lang.Integer pass)
‘-pass[:stream_specifier] n (output,per-stream)’ Select the pass number (1 or 2). It is used to do two-pass video encoding. The statistics of the video are recorded in the first pass into a log file (see also the option -passlogfile), and in the second pass that log file is used to generate the video at the exact requested bitrate. On pass 1, you may just deactivate audio and set output to null, examples for Windows and Unix: avconv -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y NUL avconv -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y /dev/null
-
passCount
public AVVideoOptions passCount(java.lang.Integer pass)
-
onePassEncoding
public AVVideoOptions onePassEncoding(AVStreamType streamType)
-
onePassEncoding
public AVVideoOptions onePassEncoding()
-
twoPassEncoding
public AVVideoOptions twoPassEncoding(AVStreamType streamType)
-
twoPassEncoding
public AVVideoOptions twoPassEncoding()
-
passLogFilePrefix
public AVVideoOptions passLogFilePrefix(AVStreamType streamType, java.lang.String prefix)
‘-passlogfile[:stream_specifier] prefix (output,per-stream)’ Set two-pass log file name prefix to prefix, the default file name prefix is “av2pass”. The complete file name will be ‘PREFIX-N.log’, where N is a number specific to the output stream.
-
passLogFilePrefix
public AVVideoOptions passLogFilePrefix(java.lang.String prefix)
-
-