Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Problem encoding/playing 24bit wav to flac (Read 4127 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Problem encoding/playing 24bit wav to flac

Hi,

I've been trying to encode some 24bit/44.1kHz wavs to flac using both the flac frontend and foobar2000.
When I encode using the frontend (unticking all the boxes), I keep getting: 

"warning: legacy WAVE file has format type 1 but bits-per-sample=24".

It produces a file but when I try to play it in foobar2000 I get the warning:

"Decoding failure at 0:00.093 (Unsupported format or corrupted file)".

The time of failure varies, though it's always near the start.
Converting in foobar2000 doesn't work either.

I've checked both wavs and flacs using the AudioTester app which shows no errors.
I've also tried converting the 24bit files to 16bit, then to flac, which works fine.
I really want to keep the flacs at 24bits rather than 16. Am I missing something? I'm a new
user.

I'm using flac 1.2.1b and foobar2000 0.9.4.5 on Win XP2.
Thanks in advance!

Problem encoding/playing 24bit wav to flac

Reply #1
FLAC is probably making files with Rice2 residual blocks which that version of foobar2000 doesn't support.  Your FLAC files are fine.  Some solutions are to get an updated app which can handle the relatively new Rice2 residuals in FLAC, or transcode your files into an older version of FLAC which won't use them.

Problem encoding/playing 24bit wav to flac

Reply #2
I updated to foobar2000 0.9.5.1, seems to have sorted it. 
Thanks for your help!

 

Problem encoding/playing 24bit wav to flac

Reply #3
While Microsoft doesn't LIKE you to create 24-bit wave files using the standard PCM flag (format 1), there isn't anything wrong with it - the files should play just fine. Ideally, for high-bitrate (>16-bit) and multi-channel audio you're supposed to use WAVE_FORMAT_EXTENSIBLE (a later revision of Wave).

I'm surprised the app even complained... standard format-1 24-bit wave files are commonplace, even if not recommended by MS.

(I actually don't see the value in using the revised format, unless you need the extra channel mapping information in the extended format chunk, or you need to do something weird like store 20-bit PCM in a 32-bit container.)