You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this library seems unmaintained, I went through the hassle of writing something similar (except it is based on Rust instead of C++). If you want to give it a try: https://github.com/gcanat/video_reader-rs
It has the get_batch method similar to decord, so if you want to get certain frames from a video you can do:
NOTE: regarding your code snippet to benchmark decord you dont even need opencv to get the frame count, once your instantiate the VideoReader object you can do len(vr) to get it. Also, I'm not sure what you are trying to do with a for loop iterating on each frame index. That's not how this library is supposed to be used. You should use the get_batch method instead and get all the frames you want at once.
Anyway, it is true that decord has some memory management issues and that's also why I made video_reader-rs
Most of my discussion can be seen here:
python/cpython#120610
The text was updated successfully, but these errors were encountered: