-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Read wavfiles of size > 4GB #8529
Conversation
Would it be a lot of extra work to add the equivalent writer? If not, then a round-trip test could work. |
Or, add a small wav file in the large-file format. Presumably, the
format can describe also small files.
|
I've added the corresponding writer, however I'm still not sure how to go about implementing the test, since the format only really makes sense for data > 4GB, so the writer should only use the format if the data is too large for RIFF. |
Although this might be true in practice, can you opt in to using the RF64 format even for files < 4 GB (even if just for the purpose of testing round-trip IO)? |
According to the official specs, the standard filesize-locations should be used if the file is smaller than 4GB: https://tech.ebu.ch/docs/tech/tech3306-2009.pdf |
This makes sense, and seems like reasonable behavior for SciPy to follow.
This is what I propose to do for testing purposes only, yes. Especially if there is some way to do it that does not expose the option to the user (since it's non-standard). Maybe a private function that does the heavy lifting could be used for this purpose. |
This would be a valuable addition!! |
@TimFelixBeyer are you interested in returning to do this? Sounds like it's all that is needed to test this properly and get this in. Judging by the recent comment, there is still some demand for this feature. |
Sure, I’m currently busy but can take another look in about 3 weeks if that’s ok. |
@lucascolley I'd like some input regarding testing. |
We have a marker for extremely slow tests, which can be applied with |
Opened #20079 to avoid having to rebase etc. @lucascolley feel free to check out the new PR |
Adds the ability to open a .wav file with the 'RF64' format for files with a file size > 4GB, I'm not sure how to write a unit test for this, since it'd require uploading a huge .wav file.