Struct ac_ffmpeg::format::muxer::MuxerBuilder
source · pub struct MuxerBuilder { /* private fields */ }
Expand description
Muxer builder.
Implementations§
source§impl MuxerBuilder
impl MuxerBuilder
sourcepub fn add_stream(&mut self, params: &CodecParameters) -> Result<usize, Error>
pub fn add_stream(&mut self, params: &CodecParameters) -> Result<usize, Error>
Add a new stream with given parameters and return index of the new stream.
sourcepub fn streams_mut(&mut self) -> &mut [Stream]
pub fn streams_mut(&mut self) -> &mut [Stream]
Get mutable streams.
sourcepub fn set_option<V>(self, name: &str, value: V) -> MuxerBuilderwhere
V: ToString,
pub fn set_option<V>(self, name: &str, value: V) -> MuxerBuilderwhere
V: ToString,
Set a muxer option.
sourcepub fn set_metadata<V>(self, key: &str, value: V) -> Selfwhere
V: ToString,
pub fn set_metadata<V>(self, key: &str, value: V) -> Selfwhere
V: ToString,
Set container metadata.
sourcepub fn interleaved(self, interleaved: bool) -> MuxerBuilder
pub fn interleaved(self, interleaved: bool) -> MuxerBuilder
Set the muxer to do the interleaving automatically. It is disabled by default.