Breakthrough / DVR-Scan

:vhs: Tool for extracting scenes with motion from videos (e.g. security camera or DVR footage). Written in Python, uses OpenCV.
http://www.dvr-scan.com/
Other
371 stars 49 forks source link

Error: Unsupported config option: opencv-fourcc in 1.5.1 #112

Closed vaskokj closed 1 year ago

vaskokj commented 2 years ago

Bug/Issue Description:

Installed dvr-scan with:

RUN pip install --upgrade dvr-scan[opencv]

running dvr-scan -i /tmp/video.mp4 -d /tmp/output -c /opt/project/dvr-scan.cfg Get the following error.

[DVR-Scan] DVR-Scan v1.5.1
[DVR-Scan] Loading config from file:
  /opt/project/dvr-scan.cfg
[DVR-Scan] Unsupported config option: opencv-fourcc
[DVR-Scan] Failed to load configuration file.

Contents of the dvr-scan.cfg file:

$cat /opt/project/dvr-scan.cfg opencv-fourcc = XVID

Do I have to include other parameters? Required Information:

Provide a full copy of the command line options you are using, and add --verbosity debug, for example:

dvr-scan -i /tmp/video.mp4 -d /tmp/output -c /opt/project/dvr-scan.cfg

Expected Behavior: Would expect dvr-scan to start processing file.

Computing Environment:

Breakthrough commented 2 years ago

Looks like the documentation for this is wrong, the actual config is named opencv-codec. I renamed it to be more specific, but seem to have missed updating the documentation.

Sorry about that, try to setting opencv-codec instead and I'll use this issue to track fixing the docs. Thanks for the report.