Skip to main content

predicted_bytes

Function predicted_bytes 

Source
pub fn predicted_bytes(
    plan: &EncodePlan,
    video_bytes: u64,
    sampled_secs: f64,
    bias: f64,
) -> u64
Expand description

The predicted final size of plan from its sample encodes: video_bytes of video-only output over sampled_secs, scaled by bias, plus the planned audio and container overhead.