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
Tests failing with wrong shapes #2
Comments
Hey. Thanks for the report. No, the test vectors weren't changed. On my machine and on Travis the tests succeed. What version of ffmpeg are you using on what OS? |
Hi @faroit
|
okay, I can now reproduce your issue on travis: https://travis-ci.org/faroit/stempeg/builds/326423503 Basically this means ffmpeg > 3 decode the file differently regarding the zeros padding. I don't know yet what would be the best solution. Either force users to upgrade ffmpeg extending zeros to the output from within python |
Okay, I figures out the difference. it is because the older version ships with a different aac decoder which pads 2048 samples of silence in the beginning whereas the newer versions do only append 1024 samples: |
Okay I did not find a better solution than issue a UserWarning if the ffmpeg version < 3 and the duration in samples cannot be divided by 1024 when writing stems. Sorry, but these codecs are a mess.... |
Hi author(s),
I'm trying to run the tests included in this package, but the assert statements on the shapes of the stems are failing. The tests expect a shape of
(5, 265216, 2)
but the file has a shape of(5, 267264, 2)
.Is this a bug or have the files been updated without updating the tests?
Thanks!
The text was updated successfully, but these errors were encountered: