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

Make seeking more efficient #92

Closed Breakthrough closed 9 months ago

Breakthrough commented 1 year ago

Right now seeking is inefficient. Add a more efficient implementation, but also allow the user to specify a fallback to the older (slow) seeking mode if the input is not seekable. Seeking across multiple videos can make things complicated, so not going to address that (as a workaround can just concatenate the inputs ahead of time with ffmpeg/mkvmerge).

Any community examples of videos with broken seeking or wrong reported duration vs actual duration would be very helpful for testing.

Breakthrough commented 9 months ago

Fast seeking will be included in DVR-Scan v1.6, and will be used when the seek offset does not go past the end of the first input video.