gfieldGG / videohash

Near Duplicate Video Detection (Perceptual Video Hashing) - Get a 256-bit comparable hash value for any video.
MIT License
0 stars 0 forks source link

use ffmpeg for video duration #12

Closed gfieldGG closed 1 year ago

gfieldGG commented 1 year ago

About three times faster. (up to 8 times with some formats/files) No more ffprobe dependency.

Only outputs the container duration, not the more desirable and robust first video stream duration, but that's worth the 10-20% overall speed increase. It is also less precise (rounded to tenth of second) but that should be fine.