Skip to main content

Crate viser_encoding

Crate viser_encoding 

Source
Expand description

Shared encoding configuration for the viser video-encoding-optimizer workspace.

Provides the common Config of encoding parameters used across all optimization modes, codec-specific preset mapping (preset_for_codec), non-blocking progress reporting, and cleanup of orphaned temp directories left behind by crashes.

Structs§

Config
Common encoding parameters shared across all optimization modes.
ProgressSender
Non-blocking progress sender. Logs when updates are dropped due to a full channel.

Functions§

clean_stale_temp_dirs
Removes orphaned viser temp directories older than max_age. Called at startup to clean up after crashes or SIGKILL.
preset_for_codec
Maps a generic preset name to codec-specific presets.