Skip to main content

Crate viser_contextaware

Crate viser_contextaware 

Source
Expand description

Device-aware encoding ladder generation for the viser video-encoding-optimizer workspace.

Runs per-title analysis tuned for each device class (Mobile, Desktop, TV, TV 4K), applying per-class resolution caps, codec preferences, and VMAF model selection. analyze produces a convex hull and bitrate ladder for every device Profile.

Structs§

Config
Config for context-aware analysis.
DeviceResult
Analysis output for a single device profile.
Profile
Encoding constraints and quality targets for a device class.
Progress
Progress update emitted as each device profile finishes.
Result
Combined result of a context-aware analysis across all device profiles.

Enums§

DeviceClass
Target device class that determines resolution caps and codec preferences.

Functions§

all_profiles
Returns all standard profiles: Mobile, Desktop, TV (1080p), and TV (4K).
analyze
Runs per-title analysis for each device profile.
desktop_profile
Returns the standard Desktop profile (capped at 1080p, AV1/x265/x264).
mobile_profile
Returns the standard Mobile profile (capped at 720p, AV1/x264).
tv_4k_profile
Returns the standard 4K TV profile (up to 2160p, 4K VMAF model, AV1/x265).
tv_profile
Returns the standard 1080p TV profile (8 rungs, AV1/x265/x264).