pub struct EncodePlan {Show 13 fields
pub input: PathBuf,
pub output: PathBuf,
pub summary: String,
pub expected_bytes: Option<u64>,
pub target_bytes: Option<u64>,
pub target_vmaf: Option<f64>,
pub source_duration_sec: f64,
pub source_width: Option<u32>,
pub source_height: Option<u32>,
pub source_fps: Option<f64>,
pub spec: EncodeSpec,
pub guard_larger: bool,
pub ceiling_crf: Option<u8>,
}Expand description
The encode plan — the result of Engine::plan. Usable for --dry-run.
Fields§
§input: PathBuf§output: PathBuf§summary: StringHuman-readable description of the plan (codec, bitrates, passes).
expected_bytes: Option<u64>Expected final size in bytes, if predictable.
target_bytes: Option<u64>The hard size cap, if any (drives the post-encode correction retry).
target_vmaf: Option<f64>Target VMAF for a CRF search, if requested (quality mode only).
source_duration_sec: f64Source duration in seconds (for progress reporting).
source_width: Option<u32>Source resolution and frame rate — the reference for VMAF measurement.
source_height: Option<u32>§source_fps: Option<f64>§spec: EncodeSpec§guard_larger: boolKeep the original instead of producing a result that isn’t smaller
(see ShrinkOpts::allow_larger). Engines without a guard set false.
ceiling_crf: Option<u8>Size targets only: the quality preset’s CRF, used as a ceiling — when a CRF encode is predicted to land well under the target, it’s used instead of spending the whole budget (a 2 s clip needn’t take 10 MB for Discord).