pub enum VideoCodecPolicy {
Av1,
H264,
H265,
}Expand description
Output video codec policy — the video analogue of AudioCodecPolicy.
Selects which codec the encoder produces:
Av1(default) — royalty-clean (AV1 + Opus in MP4 = zero royalty exposure).H264/H265— for legacy-player compatibility; they carry the patent-licensing obligations AV1 was chosen to avoid.
All three work for single-file MP4 and CMAF/HLS. Resolve to the
encoder/muxer’s VideoCodec with VideoCodecPolicy::codec.
Variants§
Implementations§
Source§impl VideoCodecPolicy
impl VideoCodecPolicy
Sourcepub fn codec(self) -> VideoCodec
pub fn codec(self) -> VideoCodec
Resolve to the low-level VideoCodec the encoder + muxer consume.
Trait Implementations§
Source§impl Clone for VideoCodecPolicy
impl Clone for VideoCodecPolicy
Source§fn clone(&self) -> VideoCodecPolicy
fn clone(&self) -> VideoCodecPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VideoCodecPolicy
Source§impl Debug for VideoCodecPolicy
impl Debug for VideoCodecPolicy
Source§impl Default for VideoCodecPolicy
impl Default for VideoCodecPolicy
Source§fn default() -> VideoCodecPolicy
fn default() -> VideoCodecPolicy
Returns the “default value” for a type. Read more
impl Eq for VideoCodecPolicy
Source§impl Hash for VideoCodecPolicy
impl Hash for VideoCodecPolicy
Source§impl PartialEq for VideoCodecPolicy
impl PartialEq for VideoCodecPolicy
Source§fn eq(&self, other: &VideoCodecPolicy) -> bool
fn eq(&self, other: &VideoCodecPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoCodecPolicy
Auto Trait Implementations§
impl Freeze for VideoCodecPolicy
impl RefUnwindSafe for VideoCodecPolicy
impl Send for VideoCodecPolicy
impl Sync for VideoCodecPolicy
impl Unpin for VideoCodecPolicy
impl UnsafeUnpin for VideoCodecPolicy
impl UnwindSafe for VideoCodecPolicy
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