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: WAVEFORMATEXTENSIBLE chunk error (Read 4001 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

WAVEFORMATEXTENSIBLE chunk error

Recently I ripped some 5 channel 24/96 audio off of a DVD-A that I owned and when I went to encode the WAV file into FLAC, the encoder gave me this error:

ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x003B

I got around the error by using this command line in foobar:
--channels=5 --channel-map=none --bps=24 --sample-rate=96000 -s -8 - -o %d

But I was just wondering how to fix the header so I can use FLAC without the special commands

WAVEFORMATEXTENSIBLE chunk error

Reply #1
Seems like a bug. 0x003B means FL FR LFE BL BR (w/o center ch) and flac should support it since 1.1.3:
Quote
- Encoder can now take WAVEFORMATEXTENSIBLE WAVE files as input; decoder will output WAVEFORMATEXTENSIBLE WAVE files when necessary to conform to the latest Microsoft specifications.

- Now properly supports AIFF and WAVEFORMATEXTENSIBLE multichannel input, performing necessary channel reordering both for encoding and decoding. WAVEFORMATEXTENSIBLE channel mask is also saved to a tag on encoding and restored on decoding for situations when there is no natural mapping to FLAC channel assignments.

WAVEFORMATEXTENSIBLE chunk error

Reply #2
FLAC does not have a standard channel assignment that matches FL FR LFE BL BR so you will have to use --channel-map=none for these.

the FLAC assignments are here: http://flac.sourceforge.net/format.html#frame_header