Skip to main content

Crate viser_complexity

Crate viser_complexity 

Source
Expand description

Spatial, temporal, and DCT energy complexity analysis for video.

Extracts per-frame complexity metrics (entropy, inter-frame difference, DCT energy) via FFmpeg, aggregates them into segments with scene classification, and computes an overall complexity score. Also detects screen content versus natural video.

Part of the viser video-encoding-optimizer workspace.

Structs§

AnalyzeOpts
Options controlling complexity analysis.
FrameComplexity
Complexity metrics for a single frame.
Profile
Full complexity profile of a video: per-frame metrics, segment aggregates, and overall score.
ScreenContentDetection
Result of screen-content detection.
SegmentComplexity
Aggregated complexity metrics over a time segment.

Enums§

ContentType
Content type classification result.
SceneClass
Classified scene type based on spatial/temporal complexity.

Functions§

analyze
Extracts per-frame complexity metrics and aggregates them into segments.
classify_scene
Classify a segment by its spatial/temporal complexity profile.
detect_screen_content
Detects whether a video is screen content based on complexity profile heuristics.