pub type TrackParams = TrackParams<Ffmpeg>;Expand description
A track’s per-kind codec parameters, as TrackInfo carries them.
Aliased Type§
pub enum TrackParams {
Video {
codec: CodecId,
width: u32,
height: u32,
pixel_format: PixelFormat,
frame_rate: Option<Timebase>,
},
Audio {
codec: CodecId,
sample_rate: u32,
channel_count: u8,
sample_format: SampleFormat,
channel_layout: ChannelLayoutDescription,
},
Subtitle {
codec: CodecId,
},
Data {
codec: CodecId,
},
Attachment {
codec: CodecId,
},
Unknown {
codec: CodecId,
},
}Variants§
Video
Motion video.
Fields
§
pixel_format: PixelFormatPixel format the track declares, in the backend’s vocabulary.
Audio
Audio.
Fields
§
sample_format: SampleFormatSample format the track declares, in the backend’s vocabulary.
§
channel_layout: ChannelLayoutDescriptionChannel layout the track declares, in the backend’s vocabulary.
Subtitle
Subtitles / captions.
Data
Timed opaque data.
Attachment
An attached file — a font, cover art.
Unknown
A track the backend could not classify.