Skip to content
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

Fix duplicate <fmt > chunks #264

Open
MarcosSueiro opened this issue Sep 15, 2023 · 3 comments
Open

Fix duplicate <fmt > chunks #264

MarcosSueiro opened this issue Sep 15, 2023 · 3 comments

Comments

@MarcosSueiro
Copy link

MarcosSueiro commented Sep 15, 2023

I have discovered several hundred WAVE files with multiple fmt chunks (see this example). It seems that an editing software used by our institution renders WAVE files with several headers as a way to divide the file into sections (!!). Besides length, sometimes the headers even include different sample rates or bit depths --which can make an audio player play the file at the wrong speed.

Naturally, this seems to confuse various readers: values for e.g length appear differently in ffprobe, mediaInfo and exiftool.

This issue is admittedly an outlier, but... Is there a way to fix it? Even just adding markers at the positions of the original headers would be helpful.

@JeromeMartinez
Copy link
Member

Naturally, this seems to confuse various readers: values for e.g length appear differently in ffprobe, mediaInfo and exiftool.

MediaInfo output is fixed now, you have the 2 durations, sample rates and bit depths displayed, as well as the total duration.

In BWF MetaEdit, theses files are currently rejected (unsupported), we could easily show the full trace (currently parsing stops at the 1st error so the 2nd fmt), it would be lot of work to support edition of such file.

Is there a way to fix it?

We could merge both "tracks" into 1 (upscaling if not the same sample rates or bit depths), add a cue sheet with a marker, but theses files have other opaque metadata chunks ("aux " and "DAVD"), they could become incoherent.
Also not a small task.

@MarcosSueiro
Copy link
Author

Great about MediaInfo, very helpful.

As discussed with @dericed, the best result may be to have the option to split the file into separate WAVE files each with its own header.

@JeromeMartinez
Copy link
Member

We'll do that soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants