-
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
.WAV files are deleted after decoding attempt #763
Comments
Please provide the command used and the whole output |
C:\test>flac.exe -d -f 1.flac flac 1.4.3 1.flac: done C:\test>flac.exe -d -f 1.wav flac 1.4.3 1.wav: ERROR while decoding metadata C:\test> |
Thanks. This behaviour is expected although a little 'clumsy'. I'll look into it. |
I had started looking into
So I tested the following: copied a flacfile.flac to flacfile.wrongextension.aiff, flacfile.wrongextension.w64, flacfile.wrongextension.rf64, flacfile.wrongextension.ogg and flacfile.wrongextension.oga. Then tried to flac -d each of them. The three former produced .wav output. The two latter did not. On the other hand, "re-encoding" works for all. (Putting "re-encoding" in quotation marks, because nothing is overwritten when the original extension wasn't ".flac" - even if it is ".fla", it doesn't replace files.) (edit: undid nonsense edit) Which brings me to asking what the encoder/decoder actually does under all circumstances (hm, does foreign metadata change anything?) - and maybe ask whether something is pending a change, rather than writing an elaborate help file text that is about to become obsolete. (Honestly it looks puzzling that if it knows headers, it relies on filenames; if it knows headers, it doesn't need filename - and if it doesn't know the headers of the file, it cannot use the filename for anything?) |
Maybe this should have been a separate issue ( @ktmf01 ?), but: I did further testing on this, confirming it:
So, when encoding from a FLAC file with no extension or wrong extension, works - but decoding (and testing) fails if the wrong extension is .oga/.ogg , then it cannot recognize it. Worse is when trying decoding OGG FLAC files with wrong (or no) file extension. Then everything goes wrong. Also, flac infile -o outfile.oga produces FLAC files not OGG FLAC. "My" concern about this is that I was trying to make sense of the flac.md help file, which is in part wrong. But if there is a chance that this will be fixed, making reality catch up with the help file ... ? |
Yes, I've opened a new issue. |
Hello.
In case you accidentally try to decode .WAV instead of .FLAC there is an error shown:
ERROR while decoding metadata
state = FLAC__STREAM_DECODER_END_OF_STREAM
Press any key to continue . . .
and .WAV file disappears.
build is taken here https://github.com/xiph/flac/actions/runs/11893043149
The text was updated successfully, but these errors were encountered: