Skip to main content

CodecProfile

Enum CodecProfile 

Source
pub enum CodecProfile {
Show 26 variants H264Baseline, H264Main, H264High, H264High10, H264High422, H264High444, HevcMain, HevcMain10, HevcMain12, HevcMainStillPicture, Vp9Profile0, Vp9Profile1, Vp9Profile2, Vp9Profile3, Av1Main, Av1High, Av1Professional, AacLc, AacHe, AacHeV2, ProResProxy, ProResLt, ProRes422, ProResHq, ProRes4444, Other(String),
}
Expand description

Codec profile for quality/compatibility targeting.

Profiles define feature subsets of a codec. Higher profiles enable more features but require more processing power and may reduce compatibility.

Variants§

§

H264Baseline

H.264 Baseline (mobile, video conferencing).

§

H264Main

H.264 Main (broadcast, streaming).

§

H264High

H.264 High (Blu-ray, high-quality streaming).

§

H264High10

H.264 High 10-bit.

§

H264High422

H.264 High 4:2:2.

§

H264High444

H.264 High 4:4:4 Predictive.

§

HevcMain

HEVC Main (8-bit SDR).

§

HevcMain10

HEVC Main 10 (10-bit, HDR).

§

HevcMain12

HEVC Main 12.

§

HevcMainStillPicture

HEVC Main Still Picture.

§

Vp9Profile0

VP9 Profile 0 (4:2:0 8-bit).

§

Vp9Profile1

VP9 Profile 1 (4:2:2/4:4:4 8-bit).

§

Vp9Profile2

VP9 Profile 2 (4:2:0 10/12-bit).

§

Vp9Profile3

VP9 Profile 3 (4:2:2/4:4:4 10/12-bit).

§

Av1Main

AV1 Main (4:2:0 8/10-bit).

§

Av1High

AV1 High (4:4:4 8/10-bit).

§

Av1Professional

AV1 Professional (4:2:2, 12-bit).

§

AacLc

AAC Low Complexity (most common).

§

AacHe

AAC High Efficiency (HE-AAC v1).

§

AacHeV2

AAC High Efficiency v2 (HE-AAC v2).

§

ProResProxy

ProRes 422 Proxy.

§

ProResLt

ProRes 422 LT.

§

ProRes422

ProRes 422.

§

ProResHq

ProRes 422 HQ.

§

ProRes4444

ProRes 4444.

§

Other(String)

Custom/other profile string.

Implementations§

Source§

impl CodecProfile

Source

pub fn as_ffmpeg_arg(&self) -> &str

Convert to FFmpeg -profile:v or -profile:a argument value.

Source

pub fn from_ffprobe(s: &str) -> Option<Self>

Parse from ffprobe’s profile field.

ffprobe returns human-readable strings like “High”, “Main”, “Baseline”, “High 10”, “High 4:4:4 Predictive”, etc.

Trait Implementations§

Source§

impl Clone for CodecProfile

Source§

fn clone(&self) -> CodecProfile

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CodecProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CodecProfile

Source§

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 Eq for CodecProfile

Source§

impl Hash for CodecProfile

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for CodecProfile

Source§

fn eq(&self, other: &CodecProfile) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CodecProfile

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CodecProfile

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more