pub struct Progress {
pub frames_encoded: u64,
pub total_frames: Option<u64>,
pub bytes_written: u64,
pub current_bitrate: u64,
pub elapsed: Duration,
pub remaining: Option<Duration>,
pub current_fps: f64,
}Expand description
Encoding progress information.
Provides real-time information about the encoding process, including frames encoded, bytes written, and time estimates.
Fields§
§frames_encoded: u64Number of frames encoded so far
total_frames: Option<u64>Total number of frames to encode (if known)
bytes_written: u64Number of bytes written to output file
current_bitrate: u64Current encoding bitrate (bits per second)
elapsed: DurationTime elapsed since encoding started
remaining: Option<Duration>Estimated remaining time (if known)
current_fps: f64Current encoding FPS (frames per second).
Calculated as: frames_encoded / elapsed_seconds
This represents the actual encoding speed, which may differ from the target video FPS. Higher values indicate faster encoding.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more