pub enum VideoCodec {
H264,
H265,
Av1,
}Expand description
Video codec choice.
Variants§
Implementations§
Source§impl VideoCodec
impl VideoCodec
Sourcepub fn hardware_encoder(self) -> Option<&'static str>
pub fn hardware_encoder(self) -> Option<&'static str>
A second encoder to try when encoder is missing from
the local ffmpeg build. Only AV1 has one — x264/x265 are universal.
Apple’s hardware encoder (VideoToolbox) for this codec, if it has one.
pub fn fallback_encoder(self) -> Option<&'static str>
Sourcepub fn mp4_tag(self) -> Option<&'static str>
pub fn mp4_tag(self) -> Option<&'static str>
The -tag:v value needed for MP4 compatibility, if any.
Sourcepub fn crf_search_bounds(self) -> (u8, u8)
pub fn crf_search_bounds(self) -> (u8, u8)
Inclusive CRF range to search when targeting a VMAF score, best quality (lowest CRF) first. x265’s CRF scale is shifted ~+6 vs x264 for the same perceptual quality, and AV1’s runs 0..63 — so the bounds differ per codec.
Trait Implementations§
Source§impl Clone for VideoCodec
impl Clone for VideoCodec
impl Copy for VideoCodec
Source§impl Debug for VideoCodec
impl Debug for VideoCodec
impl Eq for VideoCodec
Source§impl PartialEq for VideoCodec
impl PartialEq for VideoCodec
impl StructuralPartialEq for VideoCodec
Auto Trait Implementations§
impl Freeze for VideoCodec
impl RefUnwindSafe for VideoCodec
impl Send for VideoCodec
impl Sync for VideoCodec
impl Unpin for VideoCodec
impl UnsafeUnpin for VideoCodec
impl UnwindSafe for VideoCodec
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