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
381 stars 49 forks source link

Incomplete processing of GoPro video with audio track #23

Closed mmcc5678 closed 4 years ago

mmcc5678 commented 4 years ago

Hi,

Firstly, thank you for your efforts. Great tool, I've been using it for recording wildlife and it's great as I can use old cameras, and afterwards 'feed them' to DVR-Scan and just wait for the results.

The problem I have is with GoPro videos, I have a Hero5 Black, and have submitted videos with various frame rates/resolutions and it seems to pick up the first few frames and then stop.

Examples: [DVR-Scan] Opened video GOPR7898.mp4 (1280 x 720 at 29.970 FPS). [DVR-Scan] Scanning input video for motion events... [DVR-Scan] Processed 18 / 18 frames read in 1.3 secs (avg 13.4 FPS).

[DVR-Scan] Opened video GP117906.mp4 (1280 x 720 at 239.760 FPS). [DVR-Scan] Scanning input video for motion events... [DVR-Scan] Processed 228 / 228 frames read in 4.6 secs (avg 49.5 FPS). This second file is linked, 500ish Mb: https://sharemystuffhere.s3-us-west-2.amazonaws.com/GP117906.MP4

I don't think it's dependency/openCV related as my setup works fine on files from my other camera. But here is the output from pip freeze if it helps:

certifi==2019.11.28 dvr-scan==1.0.1 numpy==1.18.2 opencv-python==4.2.0.32 scipy==1.4.1 wincertstore==0.2

Thanks again, greatly appreciate this software and time spent by developers.

mmcc5678 commented 4 years ago

Solved.

This is (I'm led to believe) an issue between OpenCV and GoPro sound tracks. I removed the sound track with ffmpeg and then had no problem.