Class AVVideoOptions

    • Constructor Detail

      • AVVideoOptions

        public AVVideoOptions()
    • Method Detail

      • 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)
      • 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​(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)
      • 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)