akamhy / videohash

Near Duplicate Video Detection (Perceptual Video Hashing) - Get a 64-bit comparable hash-value for any video.
https://pypi.org/project/videohash
MIT License
282 stars 46 forks source link

It appears that OpenCV is faster for grabbing the frames #28

Closed akamhy closed 3 years ago

akamhy commented 3 years ago
akamhy commented 3 years ago

Or maybe use ffmpeg bindings for python. See https://github.com/kkroening/ffmpeg-python/blob/master/examples/README.md#generate-thumbnail-for-video

OpenCV depends on ffmpeg. Not viable to add another dependency.

akamhy commented 3 years ago

Per https://medium.com/@haydenfaulkner/extracting-frames-fast-from-a-video-using-opencv-and-python-73b9b7dc9661 https://github.com/dmlc/decord maybe another option to look at.

akamhy commented 3 years ago

No open-cv is not good enough for an extractor. FFmpeg rocks.