pub struct Target {
pub format: &'static str,
pub long_name: &'static str,
pub extension: &'static str,
pub extensions: &'static [&'static str],
pub kind: TargetKind,
pub streams: Vec<StreamPlan>,
pub fidelity: Fidelity,
pub notes: Vec<String>,
pub args: Vec<String>,
}Expand description
One output container the engine can write for this input.
Fields§
§format: &'static strFormat name as -f takes it (mp4, matroska, yuv4mpegpipe).
long_name: &'static str§extension: &'static strThe extension to offer by default (the format’s first).
extensions: &'static [&'static str]Every extension that selects this format.
kind: TargetKind§streams: Vec<StreamPlan>What happens to each input stream, in input order.
fidelity: Fidelity§notes: Vec<String>Anything a caller should say out loud before writing this: dropped streams, still-image truncation, generation loss, multi-file output.
args: Vec<String>A ready-to-run argument list, minus the input and output paths:
["-c:v", "copy", "-c:a", "opus"]. Goes between -i <input> and the
output path.
Implementations§
Source§impl Target
impl Target
Sourcepub fn kept(&self) -> impl Iterator<Item = &StreamPlan>
pub fn kept(&self) -> impl Iterator<Item = &StreamPlan>
Streams that survive into the output.
Sourcepub fn dropped(&self) -> impl Iterator<Item = &StreamPlan>
pub fn dropped(&self) -> impl Iterator<Item = &StreamPlan>
Streams the container forces us to leave behind.
Sourcepub fn stream_summary(&self) -> String
pub fn stream_summary(&self) -> String
What happens to the streams: "h264 copy + aac->opus".
Sourcepub fn summary(&self) -> String
pub fn summary(&self) -> String
stream_summary plus the fidelity verdict:
"h264 copy + aac->opus (lossy)".
Trait Implementations§
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Targetwhere
&'static str: Freeze,
&'static [&'static str]: Freeze,
*const u8 is !null: Freeze,
PhantomData<StreamPlan>: Freeze,
PhantomData<String>: Freeze,
impl Move for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Targetwhere
RawVecInner: Sync,
impl Unpin for Target
impl UnsafeUnpin for Targetwhere
&'static str: UnsafeUnpin,
&'static [&'static str]: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<StreamPlan>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Target
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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