-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Unify video backend #1514
Unify video backend #1514
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1514 +/- ##
=========================================
- Coverage 64.66% 63.9% -0.77%
=========================================
Files 83 83
Lines 6461 6507 +46
Branches 992 1004 +12
=========================================
- Hits 4178 4158 -20
- Misses 1984 2056 +72
+ Partials 299 293 -6
Continue to review full report at Codecov.
|
@fmassa this PR looks good to me. Thanks for unifying the API from pyav and video_reader backends. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Unify video backend interfaces * Remove reference cycle * Make functions private and enable tests on OSX * Disable test if video_reader backend not available * Lint * Fix import after refactoring * Fix lint * Fix merge conflict after cherry-picking for 0.4.2
This PR makes
set_video_backend
to actually do something insideread_video
andread_video_timestamps
.It unifies the interface of both backends, and also add separate unittest for each backend.
I had to move the video reader initialization because it was causing reference cycles with the code.
cc @stephenyan1231 for review