-
Notifications
You must be signed in to change notification settings - Fork 273
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 support for multiple timecode objects in an AAF #966
Add support for multiple timecode objects in an AAF #966
Conversation
contrib/opentimelineio_contrib/adapters/advanced_authoring_format.py
Outdated
Show resolved
Hide resolved
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!
Codecov Report
@@ Coverage Diff @@
## master #966 +/- ##
==========================================
+ Coverage 85.61% 85.63% +0.01%
==========================================
Files 191 191
Lines 18212 18227 +15
Branches 2071 2074 +3
==========================================
+ Hits 15593 15608 +15
Misses 2088 2088
Partials 531 531
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Looks great, just had some style things in there. Thanks @stefanschulze!
contrib/opentimelineio_contrib/adapters/advanced_authoring_format.py
Outdated
Show resolved
Hide resolved
contrib/opentimelineio_contrib/adapters/advanced_authoring_format.py
Outdated
Show resolved
Hide resolved
contrib/opentimelineio_contrib/adapters/tests/test_aaf_adapter.py
Outdated
Show resolved
Hide resolved
…mat.py Co-authored-by: Stephan Steinbach <61017+ssteinbach@users.noreply.github.com>
…mat.py Co-authored-by: Stephan Steinbach <61017+ssteinbach@users.noreply.github.com>
Co-authored-by: Stephan Steinbach <61017+ssteinbach@users.noreply.github.com>
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.
Looks great. I made a couple of small requests.
contrib/opentimelineio_contrib/adapters/advanced_authoring_format.py
Outdated
Show resolved
Hide resolved
contrib/opentimelineio_contrib/adapters/advanced_authoring_format.py
Outdated
Show resolved
Hide resolved
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.
minor typos
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.
Looks good, thanks @stefanschulze
The current implementation of the AAF reader is very strict if it comes to the number of discovered TimeCode objects in the AAF. If there is more than one TimeCode object found, the reader throws an exception.
However, there are situations where you can have multiple TimeCode objects, for example one created via the AuxTC24 bin-column in MediaComposer.
This change relaxes the rule a bit by accepting multiple TimeCode objects as long as they have the same start and length, in which case they are considered 'same'.
Also added an AAF with such multiple TimeCode objects and updated test_aaf_adapter to just read that AAF to make sure it can be read without throwing an exception.