Skip to main content

create_encoder

Function create_encoder 

Source
pub fn create_encoder(
    codec: VideoCodec,
    cfg: EncoderConfig,
) -> Result<Box<dyn Encodable + Send>>
Expand description

Construct an encoder for the given codec.

Currently only VideoCodec::Vp9Profile0Level10Bit8 is supported, backed by the pure-Rust crate::vp9::Vp9Encoder. Any other codec returns an error.