View Single Post
Old 1st April 2008, 13:25   #4102  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by madshi View Post
However, I've once seen a FLAC file with a Windows WAV style channelmask field in the metadata. Now I don't know whether this is a secretly supported option (having channelmask information in the metadata). Probably not. So I guess FLAC doesn't like 3/1.0.
Using WAVE_FORMAT_EXTENSIBLE header wav's with the ChannelMask set properly I obtain:
Code:
C-0.0.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x0004
L-0.0.wav: wrote 116967 bytes, ratio=0,061                        (OK mask=0x0001)
1-0.1.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x000C
2-0.0.wav: wrote 276354 bytes, ratio=0,072                        (OK mask=0x0003)
2-0.1.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x000B
2-1.0.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x0103
3-0.0.wav: wrote 382988 bytes, ratio=0,066                        (OK mask=0x0007)
2-1.1.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x010B
2-2.0.wav: wrote 525781 bytes, ratio=0,068                        (OK mask=0x0033)
3-0.1.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x000F
3-1.0.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x0107
2-2.1.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x003B
3-1.1.wav: ERROR: WAVEFORMATEXTENSIBLE chunk with unsupported channel mask=0x010F
3-2.0.wav: wrote 632393 bytes, ratio=0,066                        (OK mask=0x0037)
3-2.1.wav: wrote 737200 bytes, ratio=0,064                        (OK mask=0x003F)
BTW, when flac decode to wav these files make standard pcm wav file headers for mono and stereo.
If channels are >2 use WAVE_FORMAT_EXTENSIBLE header wav's with the ChannelMask set properly for 3 and 4 channels (always 3/0.0 and 2/2.0), but with 5 and 6 channels I obtain:

Code:
mask=0x0037 (FL FR FC BL BR) -> flac -> mask=0x0607 (FL FR FC SL SR)
mask=0x003F (FL FR FC LF BL BR) -> flac -> mask=0x060F (FL FR FC LF SL SR)
Seems flac developpers mistake the:
"back/surround left, back/surround right" (BL, BR)
with the
"SideLeft, SideRight" (SL, SR)
tebasuna51 is offline