-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add get_monotonic_batch(...) #114
Comments
Just my two cents for this particular use case:
For example, to
@frankier Anything else you want to add to this? |
My use case involves only reading the video in a single pass, so no caching is needed. I suppose in terms of optimising I was thinking about at least two things:
I don't know if 2. would be that big a speed up -- and perhaps the idea of keeping track of the current keyframe could be integrated in anyway but it would be nice to at least have 1. so we can opt out of the (useful in the general case) Feel free to close this issue if you don't think it's helpful. I just started thinking about this while trying to figure out #111 |
Otherwise let me know which way you think is best, and I can put together a PR. |
@frankier Sorry I missed the update for a while. After a rethinking, I feel like the specific access pattern could benefit from another class, e.g.,
Does it sound good to you? |
The current
get_batch(...)
does all sorts of de-duplication and will seek anywhere needed. I wonder if it would be useful for people who need to get almost successive frames (e.g. own-keyframes [not video format keyframes] known beforehand or frames with a frameskip) to have aget_batch(...)
specialized for this access pattern.The text was updated successfully, but these errors were encountered: