Async iterable of decoded video frames in time order. Each frame must contain a raw RGB pixel buffer, a timestamp, and a sequential index.
Optional methodsDetection methods to use. Multiple methods are combined by taking the maximum diff score across all methods.
['histogram', 'ssim']
Optional hardDiff score threshold above which a frame transition is classified as a hard cut. Applied to histogram chi-squared distance (0-1).
0.3
Optional gradualDiff score threshold for gradual transitions (dissolves, fades).
Transitions with scores between this and hardCutThreshold
are classified as gradual cuts.
0.15
Optional minMinimum scene duration in seconds. Scene boundaries that would create scenes shorter than this are suppressed.
1.0
Optional clipCLIP embedding provider for semantic scene detection.
Only used when methods includes 'clip'.
'local'
Options for a detectScenes call.
At minimum, a
framesasync iterable must be provided. All other options are optional and map to SceneDetectorConfig fields.