Skip to content

Size limitations of WAV container #4

@YourMJK

Description

@YourMJK

Just something else that came to mind regarding long/large input files:

As I understand it, the MXV format uses 64bit offsets for audio.
But the WAV container uses a 32bit field for encoding the file size in the header which limits its maximum size to 4GiB (2^32-1 B).
I've also seen some programs breaking at 2GiB, probably because they are interpreting it as a signed integer (2^31-1 B).

For 48kHz, stereo, 16bit audio this means a maximum of ~6.2h (or ~3.1h for signed integers).
For 48kHz, stereo, 24bit it's ~4.1h (~2.1h).

I don't have an issue with this personally, my MXV files are unlikely to ever be that long.
So no need in fixing this ;)

But I thought this might be something that should be documented somewhere, maybe also with a warning during execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions