Skip to content

OpenCV Version Detection Fails with cv2 4.5.1-dev #206

@plauthor

Description

@plauthor

The program will not open a video:

`$ scenedetect -i detroit.avi detect-content list-scenes -n
[PySceneDetect] PySceneDetect v0.5.5
[ERROR:0] global /tmp/pip-install-mfmkpqew/opencv-python/opencv/modules/videoio/src/cap.cpp (142) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.1) /tmp/pip-install-mfmkpqew/opencv-python/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): detroit.avi in function 'icvExtractPattern'

[PySceneDetect] Could not parse CLI options.: could not open video.
Failed to open the following video file:
detroit.avi
Usage: scenedetect [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

Error: Invalid value for input video: could not open video.
Failed to open the following video file:
detroit.avi`

It was installed with 'pip3 install scenedetect[opencv]' on Debian 10 stable. ffplay does open the video as well as other applications do, but scenedetect will not open any other videos at all. opencv does open images though. Is there any way to cope with this please. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions