Multichannel Channel Order |
Multichannel Channel Order |
Dec 12 2011, 22:21
Post
#1
|
|
|
Group: Members Posts: 20 Joined: 29-September 11 Member No.: 94046 |
I've found that the option "--channel-order=" only works with raw PCM.
I had a 5 channel WAV (FL,FR,LFE,BL,BR) that I encoded. I then used "wvunpack -s foo.wv" and got back "channels: 5 (unassigned speakers)" I wanted to have the channels assigned so CODE wavpack --channel-order=FL,FR,LFE,BL,BR foo.wav and got back "this WAV file already has channel order information!"I converted the WAV to raw PCM then CODE wavpack --channel-order=FL,FR,LFE,BL,BR foo.raw --raw-pcm=48000,24,5 which worked.Is the option "--channel-order=" supposed to work like this? I would think it's counter-intuitive that one couldn't change the channel order of a WAV file with the "--channel-order=" option. --- Edit: It was actually a WAVEX if that makes any difference. This post has been edited by xslig: Dec 12 2011, 22:37 |
|
|
|
![]() |
Dec 13 2011, 16:28
Post
#2
|
|
![]() Group: Developer Posts: 2983 Joined: 2-December 07 Member No.: 49183 |
http://msdn.microsoft.com/en-us/windows/ha.../gg463006#ECMAC :
QUOTE Having nChannels exceed the number of bits set in dwChannelMask can produce inconsistent results and should be avoided if possible. http://msdn.microsoft.com/en-us/library/wi...2(v=vs.85).aspx QUOTE KSAUDIO_SPEAKER_DIRECTOUT represents a configuration with no speakers and is defined in Ksmedia.h as zero. [...] For example, channels 0 through 30 might contain, respectively, drums, guitar, bass, voice, and so on. For this kind of raw audio data, speaker positions are meaningless, and assigning speaker positions to the input or output streams could cause a component such as KMixer to intervene inappropriately by performing an unwanted format conversion. If a device is unable to process the raw audio streams, it should reject a request to change its speaker configuration to KSAUDIO_SPEAKER_DIRECTOUT. IMHO current SoX behaviour is preferred: SoX output data are (usually) regular audio files (speech/music/etc), not some raw audio data. |
|
|
|
Dec 13 2011, 17:49
Post
#3
|
|
![]() Group: Members Posts: 51 Joined: 11-December 11 From: United Kingdom Member No.: 95728 |
Well, then by implication the channel allocation is simultaneously redundant and untrustworthy, because it's not derived from any real knowledge but instead inferred from a convention.
The inconsistency to which the Microsoft documentation refers is precisely the inconsistency you're proposing to make mandatory by writing a guess into an authoritative field. This post has been edited by Gumboot: Dec 13 2011, 17:54 |
|
|
|
xslig Multichannel Channel Order Dec 12 2011, 22:21
bryant QUOTE (xslig @ Dec 12 2011, 14:21) It was... Dec 13 2011, 06:29
nu774 QUOTE (bryant @ Dec 13 2011, 14:29) For W... Dec 13 2011, 11:17

Gumboot QUOTE (nu774 @ Dec 13 2011, 10:17) I had ... Dec 13 2011, 12:27
Gumboot QUOTE (bryant @ Dec 13 2011, 05:29) It wo... Dec 13 2011, 11:35
lvqcl The best option is to write correct channel map; h... Dec 13 2011, 18:26
bryant I agree that having SoX unconditionally write a ... Dec 13 2011, 21:43
Gumboot QUOTE (bryant @ Dec 13 2011, 20:43) zero ... Dec 13 2011, 22:26
bryant QUOTE (Gumboot @ Dec 13 2011, 14:26) We h... Dec 14 2011, 01:59
Gumboot QUOTE (bryant @ Dec 14 2011, 00:59) I thi... Dec 16 2011, 23:06
nu774 Wow, when it comes to interpretation of spec writt... Dec 14 2011, 09:03![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 18:13 |