|
From: Jan S. <ha...@st...> - 2010-08-17 12:40:55
|
On Aug 17 12:49:41, Jonas Kellens wrote: > On 08/17/2010 11:53 AM, Jan Stary wrote: > > What does soxi(1) say about the file? > > > > The original files : > > [root@asterisk testing]# soxi testExtended.wav > > Input File : 'testExtended.wav' > Channels : 2 > Sample Rate : 44100 > Precision : 16-bit > Duration : 00:00:56.57 = 2494953 samples = 4243.12 CDDA sectors > Sample Encoding: 16-bit Signed Integer PCM > > [root@asterisk testing]# soxi testLong.wav > > Input File : 'testLong.wav' > Channels : 2 > Sample Rate : 44100 > Precision : 16-bit > Duration : 00:01:27.05 = 3839052 samples = 6529 CDDA sectors > Sample Encoding: 16-bit Signed Integer PCM This looks better. I don't know why your installation of file(1) said it was a zillion-channel file of goooglilion Hz samplerate. > > Why are you using deprecated effects?? > > > > sox -V testExtended.wav testExtended2.wav remix - rate 8000 > > sox -V testExtended.wav -c 1 -r 8000 testExtended2.wav > > > > [root@asterisk testing]# sox -V testLong.wav -c 1 -r 8000 testLong3.wav > sox: SoX v14.2.0 > sox formats: detected file format type `wav' > > Input File : 'testLong.wav' > Channels : 2 > Sample Rate : 44100 > Precision : 16-bit > Duration : 00:01:27.05 = 3839052 samples = 6529 CDDA sectors > Sample Encoding: 16-bit Signed Integer PCM > Endian Type : little > Reverse Nibbles: no > Reverse Bits : no > > > Output File : 'testLong3.wav' > Channels : 1 > Sample Rate : 8000 > Precision : 16-bit > Duration : 00:01:27.05 = 696427 samples ~ 6529 CDDA sectors > Sample Encoding: 16-bit Signed Integer PCM > Endian Type : little > Reverse Nibbles: no > Reverse Bits : no > Comment : 'Processed by SoX' > > sox sox: effects chain: input 44100Hz 2 channels 16 bits (multi) > sox sox: effects chain: rate 44100Hz 2 channels 16 bits > sox sox: effects chain: mixer 8000Hz 2 channels 16 bits (multi) > sox sox: effects chain: output 8000Hz 1 channels 16 bits (multi) > sox effects: rate clipped 13 samples; decrease volume? > > > > Looks good; what does soxi(1) say about the file? > > Can you play the resulting mono/8000 file? > > > > [root@asterisk testing]# soxi testLong3.wav > > Input File : 'testLong3.wav' > Channels : 1 > Sample Rate : 8000 > Precision : 16-bit > Duration : 00:01:27.05 = 696427 samples ~ 6529 CDDA sectors > Sample Encoding: 16-bit Signed Integer PCM > > > I can play this file in Gnome Mplayer. So sox did exactly what you told it to do: it converted the original 2c/44k/16b file to a 1c/8k/16 file. What seems to be the problem here? > Does this mean the resulting Mono 8000Hz file is correct ?! How would I know? You have played it in mplayer, so you know. Technically, it's a 1c/8k/16b file, just as you wanted. > If so, the > problem indeed lies with the Asterisk software. A question there has > been asked but left unanswered. > > If you are 100% sure the resulting file testLong3.wav should be a > correct wav-file, then this topic is closed. |