pub struct EncodeProgress {
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§
Source§impl Clone for EncodeProgress
impl Clone for EncodeProgress
Source§fn clone(&self) -> EncodeProgress
fn clone(&self) -> EncodeProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EncodeProgress
impl RefUnwindSafe for EncodeProgress
impl Send for EncodeProgress
impl Sync for EncodeProgress
impl Unpin for EncodeProgress
impl UnsafeUnpin for EncodeProgress
impl UnwindSafe for EncodeProgress
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