-
Notifications
You must be signed in to change notification settings - Fork 288
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
flac seems to write malformed AIFF-C, both none and sowt #767
Comments
I just made a pull request for a potential fix for this issue. Could you try again with the binary under https://github.com/xiph/flac/actions/runs/12135436767 (as soon as it is finished) |
It seems to resolve the invalid files creation, but I discovered a few things that may or may not be related. First, how it behaves on those files now:
So it looks like the decoder knows that AIFC-none and AIFC-sowt are different, but not that old-fashion AIFF and AIFC are different formats? Doing the same with --keep-foreign-metadata-if-present --force-[the wave and rf64 formats], reveal the same as in the first item above: Then a couple of issues I discovered when testing
|
Also, it might leave suspicious or corrupted decoded files upon throwing those errors, but that is maybe expected. |
This is 'first come, first served' in case of decoding AIFF to AIFF-C or vice versa, the total length of the file is different and this is encountered first. In the case of mixing up sowt and NONE, the file length is the same, and the first error is a different COMM chunk. I am not sure changing that is practical, but I can take a look.
Yes, that is correct. I forgot to add that apparently. However, I wonder, in case a filename ends in aifc, should flac default to NONE, sowt or throw an error that this is ambiguous.
I'll take a look, should be an easy fix. |
My first reaction is, "decoder chooses". Because we have already gotten used to it doing so for -o outfile.wav. Watch out or you are in for a --prefer-output-format=[ordered list] ;-) |
In the course of testing input file handling after this one - used: 1.4.3 and including https://github.com/xiph/flac/actions/runs/12089446877 which I think is the most recent?
Running the following on the attached .flac:
... gets me the two .aiff files in the attachment.
Then try
flac --no-padding aiffc*.aiff
:With
--keep-foreign-metadata-if-present
added:aiffc.zip
The text was updated successfully, but these errors were encountered: