pub struct FfmpegCodecArgs {
pub device_args: Option<Vec<(String, String)>>,
pub pre_codec_args: Option<Vec<(String, String)>>,
pub codec: Option<String>,
pub post_codec_args: Option<Vec<(String, String)>>,
pub pixfmt: Option<String>,
pub max_bframes: Option<u32>,
}Expand description
Codec-specific arguments for ffmpeg.
Fields§
§device_args: Option<Vec<(String, String)>>Device-specific arguments
pre_codec_args: Option<Vec<(String, String)>>Arguments before codec specification
codec: Option<String>Codec name
post_codec_args: Option<Vec<(String, String)>>Arguments after codec specification
pixfmt: Option<String>Output pixel format passed to ffmpeg as -pix_fmt. Defaults to
[DEFAULT_OUTPUT_PIXFMT] (yuv420p) so encoded video is decodable by
OpenH264. Set to None to let ffmpeg (or a -vf/-pix_fmt in the other
arg lists) decide, e.g. for hardware encoders whose filter chain already
fixes the format.
max_bframes: Option<u32>Maximum number of B-frames passed to ffmpeg as -bf. None, the
default, lets the encoder (or a -bf in the other arg lists) decide.
Trait Implementations§
Source§impl Clone for FfmpegCodecArgs
impl Clone for FfmpegCodecArgs
Source§fn clone(&self) -> FfmpegCodecArgs
fn clone(&self) -> FfmpegCodecArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FfmpegCodecArgs
impl Debug for FfmpegCodecArgs
Source§impl Default for FfmpegCodecArgs
impl Default for FfmpegCodecArgs
Source§impl<'de> Deserialize<'de> for FfmpegCodecArgs
impl<'de> Deserialize<'de> for FfmpegCodecArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FfmpegCodecArgs
impl Display for FfmpegCodecArgs
Source§impl PartialEq for FfmpegCodecArgs
impl PartialEq for FfmpegCodecArgs
Source§impl Serialize for FfmpegCodecArgs
impl Serialize for FfmpegCodecArgs
impl StructuralPartialEq for FfmpegCodecArgs
Auto Trait Implementations§
impl Freeze for FfmpegCodecArgs
impl RefUnwindSafe for FfmpegCodecArgs
impl Send for FfmpegCodecArgs
impl Sync for FfmpegCodecArgs
impl Unpin for FfmpegCodecArgs
impl UnsafeUnpin for FfmpegCodecArgs
impl UnwindSafe for FfmpegCodecArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more