View Single Post
Old 21st February 2012, 22:28   #572  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
RE Normalizing multichannel sources with SoX

Good news! The latest SoX release candidate version 14.4.0rc3 did fix the old bug that the parameter "gain -n" screwed up normalization for multichannel files. Here is the log:

Code:
LameXP v4.03 (Build #774), compiled on 2011-11-12 at 16:13:26

-------------------------------

Copy file "I:/Title1.wav" to "I://d4349fe33fa94bc5b533da544cdce4bc.wav"

Exited with code: 0x0000

-------------------------------

E:/Programme/LameXP/tools/774/sox.exe -V3 -S --temp . I:\\d4349fe33fa94bc5b533da544cdce4bc.wav I:\\edcda78cbcba4818a3a3427361023840.wav gain -n -0.50

E:\Programme\LameXP\tools\774\sox.exe: SoX v14.4.0
E:\Programme\LameXP\tools\774\sox.exe INFO formats: detected file format type `wav'
E:\Programme\LameXP\tools\774\sox.exe INFO wav: EXTENSIBLE
Input File : 'I:\\d4349fe33fa94bc5b533da544cdce4bc.wav'
Channels : 6
Sample Rate : 48000
Precision : 16-bit
Duration : 00:03:27.62 = 9965568 samples ~ 15571.2 CDDA sectors
File Size : 120M
Bit Rate : 4.61M
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
E:\Programme\LameXP\tools\774\sox.exe INFO sox: Overwriting `I:\\edcda78cbcba4818a3a3427361023840.wav'
Output File : 'I:\\edcda78cbcba4818a3a3427361023840.wav'
Channels : 6
Sample Rate : 48000
Precision : 16-bit
Duration : 00:03:27.62 = 9965568 samples ~ 15571.2 CDDA sectors
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
Comment : 'Processed by SoX'
E:\Programme\LameXP\tools\774\sox.exe INFO sox: effects chain: input 48000Hz 6 channels
E:\Programme\LameXP\tools\774\sox.exe INFO sox: effects chain: gain 48000Hz 6 channels
E:\Programme\LameXP\tools\774\sox.exe INFO sox: effects chain: dither 48000Hz 6 channels
E:\Programme\LameXP\tools\774\sox.exe INFO sox: effects chain: output 48000Hz 6 channels
Done.

Exited with code: 0x0000

-------------------------------

Copy file "I://edcda78cbcba4818a3a3427361023840.wav" to "I://Title1 (2).wav"

Exited with code: 0x0000
Which means that the temporary fix (using -ne or -nb) is no longer necessary. Very nice...


Cheers
manolito
manolito is offline   Reply With Quote