Skip to main content

create_encoder

Function create_encoder 

Source
pub fn create_encoder(
    format: VideoFormat,
    output_path: &Path,
    width: u32,
    height: u32,
    fps: f64,
) -> Result<Box<dyn VideoEncoder>, VideoError>
Expand description

Create a video encoder for the specified format.

For MP4 format with scaling, use create_encoder_with_scale instead.