pub struct VideoTrack {
pub codec: VideoCodec,
pub codec_private: Bytes,
pub in_band_parameter_sets: bool,
pub width: u32,
pub height: u32,
pub orientation: Orientation,
pub sample_aspect_ratio: Option<SampleAspectRatio>,
pub color: Option<ColorMetadata>,
pub clean_aperture: Option<Rect>,
pub frame_rate: Option<FrameRate>,
pub alpha: bool,
pub reorder_depth: Option<usize>,
}Expand description
A video track’s picture facts.
Fields§
§codec: VideoCodecThe codec.
codec_private: BytesThe decoder configuration record (see VideoCodec); empty when the codec has none.
in_band_parameter_sets: boolWhether parameter sets also travel in the packets (hev1, avc3).
width: u32Coded width in pixels, as the sample entry stores it.
height: u32Coded height in pixels.
orientation: OrientationHow the stored picture is shown: the track matrix, or the Matroska projection pose, with
FFmpeg’s rotation and mirror semantics.
sample_aspect_ratio: Option<SampleAspectRatio>The pixel aspect ratio the container declares (pasp, Matroska display size).
color: Option<ColorMetadata>The color the container declares (colr nclx, Matroska Colour).
clean_aperture: Option<Rect>The clean aperture (clap), when declared.
frame_rate: Option<FrameRate>The nominal frame rate, when the container states one.
alpha: boolWhether the track carries alpha the way alpha2 reads it (HEVC alpha layer, VP9 block additions).
reorder_depth: Option<usize>The most pictures that precede any picture in decode order and follow it in presentation
order, as the bitstream declares or implies it; None when unknown.
H.264 takes max_num_reorder_frames (inferred per ITU-T H.264 E.2.1 when the VUI has no
bitstream restriction), HEVC sps_max_num_reorder_pics of the highest sub-layer, MPEG-4
Part 2 1 when B-VOPs may follow. VP8, VP9, AV1 and ProRes are 0: each packet yields at
most one shown picture, in packet order.