|
From: kd2bd <kd...@ya...> - 2007-11-07 20:49:32
|
> Thanks for trying to debug this some... Could you also add a "-V4" to=20 > your command line when running SoX? It should print out some extra=20 > information like about chunks it finds: This is what I get with monkey.wav: sox: SoX v14.0.0 sox auto: Detected file format type: wav sox wav: WAV Chunk fmt=20 sox wav: WAV Chunk FF=C2=A6 sox soxio: Failed reading `/usr/src/sox-14.0.0/src/monkey.wav': Could not find data chunk. SoX v13.0.0 reports the following: sox auto: Detected file format type: wav sox wav: WAV Chunk fmt=20 sox wav: WAV Chunk fact sox wav: WAV Chunk data sox wav: Reading Wave file: Microsoft U-law format, 1 channel, 8012 samp/se= c sox wav: 8012 byte/sec, 1 block align, 8 bits/samp, 1652 data bytes sox wav: 1652 Samps/chans Input File : '/usr/src/sox-13.0.0/src/monkey.wav' Sample Size : 8-bit (1 byte) Sample Encoding: u-law Channels : 1 Sample Rate : 8012 Duration : 00:00.21 =3D 1652 samples =3D 2.80952 CDDA sectors Endian Type : N/A Reverse Nibbles: no Reverse Bits : no > Also, is this *all* WAV files that fail or just some? All that I've tried have failed in the same manner. I have even tried usin= g SoX to create a sample file: rec -r 44100 test.wav and get: sox: SoX v14.0.0 sox auto: Detected file format type: wav sox wav: WAV Chunk fmt=20 sox wav: WAV Chunk RIFF sox wav: WAV Chunk z sox soxio: Failed reading `test.wav': Could not find data chunk. Whereas version 13.0 reads the same file correctly: sox auto: Detected file format type: wav sox wav: WAV Chunk fmt=20 sox wav: WAV Chunk data sox wav: Reading Wave file: Microsoft PCM format, 1 channel, 44100 samp/sec sox wav: 88200 byte/sec, 2 block align, 16 bits/samp, 229376 data bytes sox wav: 114688 Samps/chans Input File : 'test.wav' Sample Size : 16-bit (2 bytes) Sample Encoding: signed (2's complement) Channels : 1 Sample Rate : 44100 Duration : 00:02.60 =3D 114688 samples =3D 195.048 CDDA sectors Endian Type : little Reverse Nibbles: no Reverse Bits : no Notice the weird output reported on the last Chunk in v14! John --=20 View this message in context: http://www.nabble.com/SoX-v14.0.0-WAV-file-is= sues...-tf4722025.html#a13635775 Sent from the SoX mailing list archive at Nabble.com. |