[asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-12 Thread Kaushal Shriyan
Hi, Can someone please comment about the below issue [root@host0040 kaushal]# file obd-demo.mp3 obd-demo.mp3: MPEG ADTS, layer III, v1, 256 kBits, 44.1 kHz, Monaural [root@host0040 kaushal]# sox obd-demo.mp3 -e stat sox: Failed reading obd-demo.mp3: Do not understand format type: mp3 [root@host0

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-12 Thread Sam Govind
1- *-bash: obd-demo.ulaw: No such file or directory* // try use absolute file path i.e /usr/src/mymp3.mp3 . I guess that's why its saying no such file or directory. 2- http://lists.digium.com/pipermail/asterisk-users/2006-March/144689.html Go through this thread. 3- When everything fails from sox

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Eric Wieling
risk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3 Hi, Can someone please comment about the below issue [root@host0040 kaushal]# file obd-demo.mp3 obd-demo.mp3: MPEG ADTS, layer III, v1, 256 kBits, 44.1 kHz, Monaural [root@host0040 kaushal]# sox obd-demo.mp3 -e stat s

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Matthew J. Roth
Kaushal, Your version of SoX does not have MP3 support. Since you have LAME installed, use it as a first step to produce an intermediate file that SoX supports. Then use SoX to convert the intermediate file to the desired format. Step 1 -- # lame --decode obd-demo.mp3 obd-demo.wav input:

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Kaushal Shriyan
On Tue, Sep 13, 2011 at 6:47 PM, Matthew J. Roth wrote: > Kaushal, > > Your version of SoX does not have MP3 support.  Since you have LAME > installed, use it as a first step to produce an intermediate file > that SoX supports.  Then use SoX to convert the intermediate file > to the desired format

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Steve Edwards
On Wed, 14 Sep 2011, Kaushal Shriyan wrote: Also please let me know the difference between .ulaw and .alaw format and is there a way i can play this file formats. alaw = Europe, ulaw = US & Japan Wikipedia has articles on both algorithms if you are interested in the specifics. If you forma

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Kaushal Shriyan
On Wed, Sep 14, 2011 at 6:42 AM, Steve Edwards wrote: > On Wed, 14 Sep 2011, Kaushal Shriyan wrote: > >> Also please let me know the difference between .ulaw and .alaw format and >> is there a way i can play this file formats. > > alaw = Europe, ulaw = US & Japan > > Wikipedia has articles on both

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Steve Edwards
On Wed, 14 Sep 2011, Kaushal Shriyan wrote: I have carried out the below steps [root@host0040 test]# sox -V obd-demo.wav -r 8000 -b -t ul -c 1 obd-demo.alaw sox: Output file obd-demo.alaw: using sample rate 8000 size bytes, encoding u-law, 1 channel Sox v14.x complains about the '-

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Kaushal Shriyan
On Wed, Sep 14, 2011 at 7:04 AM, Steve Edwards wrote: > On Wed, 14 Sep 2011, Kaushal Shriyan wrote: > >> I have carried out the below steps >> >> [root@host0040 test]# sox -V obd-demo.wav -r 8000 -b -t ul -c 1 >> obd-demo.alaw > >> sox: Output file obd-demo.alaw: using sample rate 8000 >>        s

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-14 Thread Steve Edwards
On Wed, 14 Sep 2011, Kaushal Shriyan wrote: Please let me know the correct procedure to get .alaw file format since I belong to India region. Well, let's see... You used '-t ul' and got a 'ulaw.' I wonder what '-t al' will give you? Failing that, I suspect 'sox --help' or Google would be a

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-15 Thread Kaushal Shriyan
On Thu, Sep 15, 2011 at 11:45 AM, Steve Edwards wrote: > On Wed, 14 Sep 2011, Kaushal Shriyan wrote: > >> Please let me know the correct procedure to get .alaw file format since I >> belong to India region. > > Well, let's see... > > You used '-t ul' and got a 'ulaw.' > > I wonder what '-t al' wil

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-15 Thread Steve Edwards
On Thu, 15 Sep 2011, Kaushal Shriyan wrote: I did ran the below command [root@host0040 test]# file obd-demo.alaw obd-demo.alaw: data [root@host0040 test]# sox obd-demo.alaw -e stat sox: Failed reading obd-demo.alaw: Do not understand format type: alaw [au]law are 'headerless' file formats so

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-15 Thread Danny Nicholas
-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3 On Thu, 15 Sep 2011, Kaushal Shriyan wrote: > I did ran the below command > > [root@host0040 test]# file obd-demo.alaw > obd-demo.alaw: data > > [root@host0040 test]# sox obd-demo.alaw -e stat > so