pub struct EncodeStats {
pub size: Option<Size>,
pub fps: Option<f32>,
pub bitrate: Option<Rate>,
pub encode_time: Option<Duration>,
pub keyframe_bytes: Option<u64>,
pub delta_bytes: Option<u64>,
pub keyframe_interval: Option<Duration>,
pub track: String,
}Expand description
One video rendition’s encoder.
The running encoder backend is in the rendition’s
RenditionState.
Fields§
§size: Option<Size>The encoded picture size.
fps: Option<f32>Frames encoded per second, over the last second.
None before the first second of frames, once the encoder stops, and
from at most two seconds after the last frame.
bitrate: Option<Rate>Bits published per second, over the last second.
None whenever fps is.
encode_time: Option<Duration>How long one encode takes, smoothed.
keyframe_bytes: Option<u64>The size of the last keyframe in bytes.
delta_bytes: Option<u64>The size of a delta frame in bytes, smoothed.
None while every frame is a keyframe.
keyframe_interval: Option<Duration>The time between the last two keyframes, by their timestamps.
It shows the keyframe interval the encoder keeps, which a cut for a new source or a slower frame rate can move away from the configured one.
track: StringThe track the rendition writes now, its key in PublishStats::sent.
A keyframe with another decoder identity, such as a new level after a switch to a larger source, moves the rendition to a newly named track.