I'm trying to reduce my Nuendo projects using flac.
I use this command to create a flac file:
flac -8 --keep-foreign-metadata -f -V "Audio 04_01.wav"
but the result is :
ERROR reading foreign metadata: invalid WAVE file: unexpected EOF (010)
When I remove --keep-foreign-metadata switch I get:
Audio 04_01.wav: WARNING: skipping unknown sub-chunk 'bext' (use --keep-foreign-metadata to keep)
Audio 04_01.wav: WARNING: skipping unknown sub-chunk 'Fake' (use --keep-foreign-metadata to keep)
I've no idea what are those sub-chunks but I don't want to lose any metadata.
I really appreciate your help!
Thanks!
Difficult to say where's a problem without the file. You can create a small WAV file that has this problem, upload it somewhere and post a link to it.
You can find a sample file here
Thank you!
Here's what sndfile-info prints:
So, RIFF chunk size is odd (and also there's no padding byte for data chunk).
That's why FLAC --keep-foreign-metadata fails: it implicitly expects it to be even.
I'm not sure how to properly fix it. Anyone?
Last edit: lvqcl 2014-11-24
Thanks for information.
You should be able to use the
sndfile-convert
program to convert it into something usable, eg:and that new file should work.
Did you try the suggestion I made on 2014-11-30?
Hello,
Thank you for your concern.
Yes I did, but the same happened:
sndfile-convert "Audio 04_01.wav" new-file.wav
flac -8 --keep-foreign-metadata -f -V "new-file.wav"
Output:
new-file.wav: ERROR reading foreign metadata: invalid WAVE file: unexpected EOF(010)
I also used sndfile-convert.exe for flac conversion and it worked,but it seemed that sndfile-convert.exe did not keep the meta-data.
I did the following to find out whether the meta-data were still there:
sndfile-convert "Audio 04_01.wav" sndfile-out.flac
sndfile-convert sndfile-out.flac sndfile-out.wav
flac -8 -f -V sndfile-out.wav
when I used flac.exe to convert the original file without --keep-foreign-metadata, I received the following warnings:
Audio 04_01.wav: WARNING: skipping unknown sub-chunk 'bext' (use --keep-foreign-metadata to keep)
Audio 04_01.wav: WARNING: legacy WAVE file has format type 1 but bits-per-sample=24
Audio 04_01.wav: WARNING: skipping unknown sub-chunk 'Fake' (use --keep-foreign-metadata to keep)
but when I used flac.exe to convert sndfile-out.wav the output was just:
sndfile-out.wav: WARNING: legacy WAVE file has format type 1 but bits-per-sample=24
and there was no sign of other warnings ('bext' and 'Fake' sub-chunks). They had been deleted by sndfile-convert.exe while converting to flac and again converting to wave.
I have no idea about those strange meta-data and I don’t know whether they are really important or I can just simply ignore them.
Thank you.