Skip to content

Support for Live Video Stream (Non-Terminating) Processing Mode #5

Closed
@Breakthrough

Description

@Breakthrough

PySceneDetect should have a mode that allows for an OpenCV VideoCapture object that doesn't terminate (e.g. a webcam, or live internet stream) and continually provides updates for when a new scene is detected. This should work fine with both of the currently implemented scene detectors (ThresholdDetector and ContentDetector), although the main detection loop function scenedetect.detect_scenes() will need to be changed.

Using the set format, a timecode should be printed, followed by a newline, at the discovery of each new scene. This should allow other programs monitoring the process output a notification that a new scene was found. Additionally, for integration with other Python programs, an incremental version of detect_scenes() should be created that allows the user to pass one frame per call, with the function returning the current frame number if a scene change was detected, or None otherwise.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions