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
264 stars 41 forks source link

Temp folder not freeing up #102

Open 96jaco96 opened 1 year ago

96jaco96 commented 1 year ago

The temp folder (or cache folder on Mac) gets increasingly bigger when processing a lot of videos at the same time.

It SHOULD cleanup after itself, and not leave the working/temp files there.

Currently i have to do it manually when processing ~20k files

lounging-lizard commented 1 year ago

I second this issue, it fills up quickly creating duplicates of the original its a real pain

Edit: I found the deleted_storage_path method on the VideoHash class which can be used to delete these onces you're done with them.

IMO it should just be apart of the destructor.

Demmenie commented 3 days ago

I implemented a feature that automatically takes care of this issue in my fork: https://github.com/Demmenie/videohash2 https://pypi.org/project/videohash2/