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
362 stars 47 forks source link

Docker Documentation run command #133

Open clockworkant opened 1 year ago

clockworkant commented 1 year ago

This is a small report/request to update the docker documentation. Building the docker file was easy and good, however the final command doesn't really work:

docker run --rm -it -v $(pwd):/videos/ dvr-scan -i *                  
[DVR-Scan] DVR-Scan v1.5.1
[DVR-Scan] Error: Input file does not exist:
  39.40.mp4

Instead I ended up with the following command instead:

docker run --rm -it -v $(pwd):/videos/ dvr-scan -i "/videos/*" -d "/videos/motion"

docker run --rm -it -v $(pwd):/videos/ dvr-scan -i "/videos/*" -d "/videos/motion"
[DVR-Scan] DVR-Scan v1.5.1
[DVR-Scan] Initializing scan context...
[DVR-Scan] Opened video 39.40.mp4 (2688 x 1520 at 25.218 FPS).

So I had to prefix the dir's with the docker containers path (so the remote path of /videos.

I'm not a docker expert but hopefully this helps someone else in the future!