- Notifications
You must be signed in to change notification settings - Fork234
fix: pad audio arrays to same shape if sample rates differ#1880
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
fix: pad audio arrays to same shape if sample rates differ#1880
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
It would be nice to add a test case to show that the problem is fixed.
Hey@chrisammon3000 , Thanks a lot for the contribution. However we would ask you to submit a test case to make sure the error case is covered and to make sure that the commits are Please take a look at our contributing guidelines (https://github.com/docarray/docarray/blob/main/CONTRIBUTING.md) |
codecovbot commentedApr 4, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #1880 +/- ##==========================================- Coverage 84.69% 84.63% -0.06%========================================== Files 136 136 Lines 9263 9274 +11 ==========================================+ Hits 7845 7849 +4- Misses 1418 1425 +7
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. |
Uh oh!
There was an error while loading.Please reload this page.
Description
Please refer to#1875 for a detailed description of the issue this fixes. When ffmpeg creates subclips of a video sometimes the audio sample rates are inconsistent causing an error due to different size arrays. To fix this the arrays are padded to ensure they are all the same shape before they are parsed as AudioNdArray.