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>,
}Fields§
§device_args: Option<Vec<(String, String)>>§pre_codec_args: Option<Vec<(String, String)>>§codec: Option<String>§post_codec_args: Option<Vec<(String, String)>>§pixfmt: Option<String>Output pixel format passed to ffmpeg as -pix_fmt. Defaults to
[DEFAULT_OUTPUT_PIXFMT] (yuv420p). 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 PartialEq for FfmpegCodecArgs
impl PartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more