pub enum MetadataEvent {
BlackStart {
at: Timestamp,
},
BlackEnd {
at: Timestamp,
duration_us: i64,
},
SilenceStart {
at: Timestamp,
channel_number: Option<usize>,
},
SilenceEnd {
at: Timestamp,
duration_us: i64,
channel_number: Option<usize>,
},
SceneChange {
at: Timestamp,
score: f64,
},
CropDetect {
at: Timestamp,
x: i32,
y: i32,
w: i32,
h: i32,
},
R128Frame {
at: Timestamp,
momentary: Option<f64>,
short_term: Option<f64>,
integrated: Option<f64>,
lra: Option<f64>,
true_peak: Option<f64>,
},
R128Summary {
integrated: Option<f64>,
lra: Option<f64>,
true_peak: Option<f64>,
},
StreamEnd {
media: AVMediaType,
at: Timestamp,
},
}Expand description
A single typed detection/measurement result decoded from frame metadata.
All loudness fields are Option<f64>: ebur128 may not have produced a
value yet, and true_peak is only Some when the build emitted the
per-channel true-peak keys (i.e. peak=true was requested and the keys
are present).
Variants§
BlackStart
A black region began at at (blackdetect).
BlackEnd
A black region ended at at; duration_us is end - start.
SilenceStart
A silent region began (silencedetect). channel_number is the
1-based channel from the mono=1 .N key suffix, or None in
combined mode.
SilenceEnd
A silent region ended; duration_us from lavfi.silence_duration.
SceneChange
A scene change was detected (scdet); emitted only on frames that
carry lavfi.scd.time. score is the lavfi.scd.score value.
CropDetect
A crop suggestion for this frame (cropdetect).
R128Frame
Per-frame EBU R128 measurement (ebur128 metadata=1).
Fields
R128Summary
Final R128 values (last frame seen), emitted once at end of stream.
StreamEnd
End-of-stream marker carrying the last frame timestamp, used by the folder to close regions that never received an explicit end.
Trait Implementations§
Source§impl Clone for MetadataEvent
impl Clone for MetadataEvent
Source§fn clone(&self) -> MetadataEvent
fn clone(&self) -> MetadataEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetadataEvent
impl Debug for MetadataEvent
Source§impl PartialEq for MetadataEvent
impl PartialEq for MetadataEvent
Source§fn eq(&self, other: &MetadataEvent) -> bool
fn eq(&self, other: &MetadataEvent) -> bool
self and other values to be equal, and is used by ==.