iluvcapra / wavinfo

Probe WAVE Files for all metadata
https://wavinfo.readthedocs.io/
MIT License
36 stars 7 forks source link

Support RF64 files #3

Closed iluvcapra closed 5 years ago

iluvcapra commented 5 years ago

See #2

emc2hahn commented 5 years ago

Well, small files is a problem here: The RF64 file I tested previously was from Sequoia and I just figured out that Sequoia only writes the RF64 header in files that exceed the 2GB RIFF limit. Even for short multichannel files they stick with RIFF, what surprises me.

I just created an all empty large wav that compresses down to a few MB, but be aware that it expands to over 2GB! Testfile_SEQ_RF64 Big.zip

iluvcapra commented 5 years ago

This is main reason I was stalling on this, the coding is one thing but setting up the test cases in a way that doesn't eat gigs of storage is a pain. WAV-RF64 promotion is part of the standard, an RF64 under 2 gigs is technically not a WAV file.

iluvcapra commented 5 years ago

@emc2hahn try the commit 242fa51b32b9c9de76656f5b9240b0304a8d8dd3, this appears to work.

emc2hahn commented 5 years ago

That is amazing, it works! I appreciate your effort a lot! Now things are set for me to complete my metadata and file organization script.

In the long run it would be amazing if there would be also a module that allows to write the values provided by your class back into wav files but I know this will be a whole new project. I hope to find time one day to dive that deep into your code.

iluvcapra commented 5 years ago

I'd also like this feature and definitely is something I'd like to implement someday. For now if I need to write something back I usually use ffmpeg, which usually does the right thing for my effects library management, though a lot of client apps tend to ignore this metadata or read it in a peculiar way.

Def reach out if you find anything else you'd like implemented!

emc2hahn commented 5 years ago

great, i'll get back in touch!

All the best so far!