Struct ac_ffmpeg::codec::video::VideoEncoderBuilder
source · pub struct VideoEncoderBuilder { /* private fields */ }
Expand description
Builder for the video encoder.
Implementations§
source§impl VideoEncoderBuilder
impl VideoEncoderBuilder
sourcepub fn set_option<V>(self, name: &str, value: V) -> Selfwhere
V: ToString,
pub fn set_option<V>(self, name: &str, value: V) -> Selfwhere
V: ToString,
Set an encoder option.
sourcepub fn bit_rate(self, bit_rate: u64) -> Self
pub fn bit_rate(self, bit_rate: u64) -> Self
Set encoder bit rate. The default is 0 (i.e. automatic).
sourcepub fn time_base(self, time_base: TimeBase) -> Self
pub fn time_base(self, time_base: TimeBase) -> Self
Set encoder time base. The default time base is in microseconds.
sourcepub fn pixel_format(self, format: PixelFormat) -> Self
pub fn pixel_format(self, format: PixelFormat) -> Self
Set encoder pixel format.
sourcepub fn build(self) -> Result<VideoEncoder, Error>
pub fn build(self) -> Result<VideoEncoder, Error>
Build the encoder.