Comments (3)
@specky532 what do you mean by frame interval? Is it "The number of interval frames between two I-frames"? or do you want support to specify the timeframe(duration)? All the frames are available to you via the collage_dir
attribute.
Alternatively, be able to select a total number of frames and have it randomly select that number of frames from across the video.
I don't understand why randomly selecting will help. Random frames selection will instead make it harder to match other copies.
I also think it is a great idea to support specifying time interval(s) for video hash generation. But I don't understand how random frame selection will improve the project.
Also, you said you work on very long videos, how long are your videos and how much time does it take to generate the hash for these long videos?
from videohash.
Sorry for the lack of clarity had a big week.
My understanding is that the video hash takes a frame every 1 second by default. framesextractor.py in the init can take a frame interval paramter. but there is nowhere to change this in the video hash, when video hash calls the frames extractor it just passes 1, instead of a variable that the user can specify. It would be useful to be able to specify this.
IE take a frame every 5 seconds or even every 0.1 seconds etc. I've had a look through the code and looks like this should be very easy to implement as the framesextractor.py init already takes the frame interval as a paramater.
The random idea was a brain fart on friday afternoon haha.
from videohash.
IE take a frame every 5 seconds or even every 0.1 seconds etc. I've had a look through the code and looks like this should be very easy to implement as the framesextractor.py init already takes the frame interval as a parameter.
Yes, it should be trivial to implement this but I will also have to take care of the tests and coverage.
I will release the updated code by next Sunday(28 Nov).
from videohash.
Related Issues (20)
- Write FFmpeg installer for windows in Python 3 (should try if you are good at writing installer for windows) HOT 5
- add a duration attribute to the videohash objects HOT 1
- BUG REPORT - MAKE the -f worst optional HOT 5
- assets host issue HOT 9
- add conda-forge HOT 1
- BUG REPORT HOT 3
- Long Video might fail to maketile due to the jpeg format HOT 3
- Hash Collision HOT 6
- Hashing speed issue. HOT 3
- pyhon subprocess inherits stdin by default and causes ffmpeg to fail
- Video hashs on vastly different videos yield is_similar() True HOT 1
- Videohash 'is_similar' function returns True for different videos
- Temp folder not freeing up HOT 1
- Feature Request: serialize and deserialize hash result
- [Feature Request] Command-line interface.
- [WARNING] False Positive Issues
- ERROR: [generic] None: Unable to download webpage: (caused by URLError('unknown url type: c'))
- [Feature Request] Hash based on limited number of frames HOT 2
- BUG REPORT: AttributeError due to PIL.Image v10+ dropping ANTIALIAS HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videohash.