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§
- Analyze
Opts - Options controlling complexity analysis.
- Frame
Complexity - Complexity metrics for a single frame.
- Profile
- Full complexity profile of a video: per-frame metrics, segment aggregates, and overall score.
- Screen
Content Detection - Result of screen-content detection.
- Segment
Complexity - Aggregated complexity metrics over a time segment.
Enums§
- Content
Type - Content type classification result.
- Scene
Class - 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.