Bugs item #3586597, was opened at 2012-11-12 20:42
Message generated for change (Tracker Item Submitted) made by vsiivola
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3586597&group_id=10706

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Vesa Siivola (vsiivola)
Assigned to: Nobody/Anonymous (nobody)
Summary: Output to raw differs seemingly randomly

Initial Comment:
Running sox several times with the same command line produces different raw 
output. I've assumed there's no randomness in downsampling etc., but maybe I am 
mistaken.

$ sox -t wav file.wav -r 16000 -b 16 -c 1 -e signed-integer -t raw out.raw
$ sox -t wav file.wav -r 16000 -b 16 -c 1 -e signed-integer -t raw out2.raw
$ cmp out.raw out2.raw
out.raw out2.raw differ: byte 1, line 1

For completeness, here is the same with verbose -V -V output:

$ sox -V -V -t wav file.wav -r 16000 -b 16 -c 1 -e signed-integer -t raw out.raw
sox:      SoX v14.4.0
time:     May 24 2012 19:42:00
issue:    Ubuntu
uname:    Linux vsiivola-N56VM 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 
10:26:51 UTC 2012 x86_64
compiler: gcc 4.7.0
arch:     1288 48 88 L OMP
sox DBUG wav: WAV Chunk fmt 
sox DBUG wav: WAV Chunk data
sox DBUG wav: Reading Wave file: Microsoft PCM format, 2 channels, 44100 
samp/sec
sox DBUG wav:         176400 byte/sec, 4 block align, 16 bits/samp, 2613248 
data bytes
sox DBUG wav:         653312 Samps/chans

Input File     : 'file.wav'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:00:14.81 = 653312 samples = 1111.07 CDDA sectors
File Size      : 2.61M
Bit Rate       : 1.41M
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no

sox INFO sox: Overwriting `out.raw'

Output File    : 'out.raw'
Channels       : 1
Sample Rate    : 16000
Precision      : 16-bit
Duration       : 00:00:14.81 = 237029 samples ~ 1111.07 CDDA sectors
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no
Comment        : 'Processed by SoX'

sox DBUG remix: 0: 
sox DBUG remix:         0 0.5
sox DBUG remix:         1 0.5
sox DBUG rate: i/o=2.75625; 441:640 @ level 1
sox DBUG effects_i_dsp: 1 0.29345 1.5
sox DBUG effects_i_dsp: make_lpf(n=19199, Fc=0.00188523 beta=13.7461 dc-norm=1 
scale=640)
sox DBUG rate: fir_len=30 phases=640 coef_interp=0 mult=1 size=154k
sox DBUG effects_i_dsp: 0.4655 0.020248 0.5
sox DBUG effects_i_dsp: make_lpf(n=409, Fc=0.479752 beta=12.8525 dc-norm=1 
scale=1)
sox DBUG rate: fir_len=409 dft_length=4096 Fp=0.931 att=125 mult=1
sox DBUG effects_i_dsp: 0.337778 0.0952082 0.5
sox DBUG effects_i_dsp: make_lpf(n=89, Fc=0.404792 beta=12.8525 dc-norm=1 
scale=1)
sox DBUG rate: fir_len=89 dft_length=4096 Fp=0.675556 att=125 mult=1
sox DBUG rate: stage=0  pre_post=0  pre=0  preload=44
sox DBUG rate: stage=1  pre_post=29 pre=0  preload=14
sox DBUG rate: stage=2  pre_post=0  pre=0  preload=204
sox INFO sox: effects chain: input        44100Hz  2 channels (multi) 16 bits 
00:00:14.81
sox INFO sox: effects chain: channels     44100Hz  1 channels (multi) 32 bits 
00:00:14.81
sox INFO sox: effects chain: rate         16000Hz  1 channels         32 bits 
00:00:14.81
sox INFO sox: effects chain: dither       16000Hz  1 channels         16 bits 
00:00:14.81
sox INFO sox: effects chain: output       16000Hz  1 channels (multi) 16 bits 
00:00:14.81

$ sox -V -V -t wav file.wav -r 16000 -b 16 -c 1 -e signed-integer -t raw 
out.raw2
sox:      SoX v14.4.0
time:     May 24 2012 19:42:00
issue:    Ubuntu
uname:    Linux vsiivola-N56VM 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 
10:26:51 UTC 2012 x86_64
compiler: gcc 4.7.0
arch:     1288 48 88 L OMP
sox DBUG wav: WAV Chunk fmt 
sox DBUG wav: WAV Chunk data
sox DBUG wav: Reading Wave file: Microsoft PCM format, 2 channels, 44100 
samp/sec
sox DBUG wav:         176400 byte/sec, 4 block align, 16 bits/samp, 2613248 
data bytes
sox DBUG wav:         653312 Samps/chans

Input File     : 'file.wav'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:00:14.81 = 653312 samples = 1111.07 CDDA sectors
File Size      : 2.61M
Bit Rate       : 1.41M
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no


Output File    : 'out.raw2' (raw)
Channels       : 1
Sample Rate    : 16000
Precision      : 16-bit
Duration       : 00:00:14.81 = 237029 samples ~ 1111.07 CDDA sectors
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no
Comment        : 'Processed by SoX'

sox DBUG remix: 0: 
sox DBUG remix:         0 0.5
sox DBUG remix:         1 0.5
sox DBUG rate: i/o=2.75625; 441:640 @ level 1
sox DBUG effects_i_dsp: 1 0.29345 1.5
sox DBUG effects_i_dsp: make_lpf(n=19199, Fc=0.00188523 beta=13.7461 dc-norm=1 
scale=640)
sox DBUG rate: fir_len=30 phases=640 coef_interp=0 mult=1 size=154k
sox DBUG effects_i_dsp: 0.4655 0.020248 0.5
sox DBUG effects_i_dsp: make_lpf(n=409, Fc=0.479752 beta=12.8525 dc-norm=1 
scale=1)
sox DBUG rate: fir_len=409 dft_length=4096 Fp=0.931 att=125 mult=1
sox DBUG effects_i_dsp: 0.337778 0.0952082 0.5
sox DBUG effects_i_dsp: make_lpf(n=89, Fc=0.404792 beta=12.8525 dc-norm=1 
scale=1)
sox DBUG rate: fir_len=89 dft_length=4096 Fp=0.675556 att=125 mult=1
sox DBUG rate: stage=0  pre_post=0  pre=0  preload=44
sox DBUG rate: stage=1  pre_post=29 pre=0  preload=14
sox DBUG rate: stage=2  pre_post=0  pre=0  preload=204
sox INFO sox: effects chain: input        44100Hz  2 channels (multi) 16 bits 
00:00:14.81
sox INFO sox: effects chain: channels     44100Hz  1 channels (multi) 32 bits 
00:00:14.81
sox INFO sox: effects chain: rate         16000Hz  1 channels         32 bits 
00:00:14.81
sox INFO sox: effects chain: dither       16000Hz  1 channels         16 bits 
00:00:14.81
sox INFO sox: effects chain: output       16000Hz  1 channels (multi) 16 bits 
00:00:14.81

$ cmp out.raw out2.raw
out.raw out2.raw differ: byte 1, line 1


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3586597&group_id=10706

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

Reply via email to