pub struct FfmpegStream {
pub format: String,
pub language: String,
pub parent_index: u32,
pub stream_index: u32,
pub raw_log_message: String,
pub type_specific_data: StreamTypeSpecificData,
}Expand description
Represents metadata about a stream.
Fields§
§format: StringCorresponds to stream -f parameter, e.g. rawvideo, h264, opus or srt.
language: String§parent_index: u32The index of the input or output that this stream belongs to.
stream_index: u32The index of the stream inside the input.
raw_log_message: StringThe stderr line that this stream was parsed from.
type_specific_data: StreamTypeSpecificDataImplementations§
Source§impl FfmpegStream
impl FfmpegStream
pub fn is_audio(&self) -> bool
pub fn is_subtitle(&self) -> bool
pub fn is_video(&self) -> bool
pub fn is_other(&self) -> bool
pub fn audio_data(&self) -> Option<&AudioStream>
pub fn video_data(&self) -> Option<&VideoStream>
Trait Implementations§
Source§impl Clone for FfmpegStream
impl Clone for FfmpegStream
Source§fn clone(&self) -> FfmpegStream
fn clone(&self) -> FfmpegStream
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FfmpegStream
impl Debug for FfmpegStream
Source§impl PartialEq for FfmpegStream
impl PartialEq for FfmpegStream
impl StructuralPartialEq for FfmpegStream
Auto Trait Implementations§
impl Freeze for FfmpegStream
impl RefUnwindSafe for FfmpegStream
impl Send for FfmpegStream
impl Sync for FfmpegStream
impl Unpin for FfmpegStream
impl UnwindSafe for FfmpegStream
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