Jimen Ching | 3 Dec 2003 20:51
Favicon

Re: AIFF/IMA ADPCM amd WAV/IMA ADPCM

On Wed, 26 Nov 2003, Jerry G. Chiuan wrote:
>Now I have AIFF file (w/ IMA ADPCM, raw data is 16-bit, 16,000 sample rate)
>and want to play it
>
>- does sox can play it?

Looking at the source, it doesn't look like sox's support for AIFF
supports IMA ADPCM.  Even though IMA ADPCM is supported with WAV files.
It shouldn't be difficult to add if someone knew the AIFF header format.
I can't see in the source code how the encoding method is specified in the
header.

--jc
--

-- 
Jimen Ching (WH6BRR)      jching <at> flex.com     wh6brr <at> uhm.ampr.org

-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
Kevin Cosgrove | 4 Dec 2003 23:50

WAV to OGG?


I'm trying to convert from wav format to ogg format.  I think this 
should work:

sox -V sounds.wav sounds.ogg

But, it produces an empty ogg file.  Am I doing this wrong?
The verbose output from sox makes me think this should work.

I'm using SoX version 12.17.3.

Thanks....

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Kevin Cosgrove | 5 Dec 2003 09:33

Re: WAV to OGG?


On 4 December 2003 at 14:50, Kevin Cosgrove <kevinc <at> doink.com> wrote:

> I'm trying to convert from wav format to ogg format.  I think this 
> should work:
> 
> sox -V sounds.wav sounds.ogg
> 
> But, it produces an empty ogg file.  Am I doing this wrong?
> The verbose output from sox makes me think this should work.
> 
> I'm using SoX version 12.17.3.

OK, I read through the changelog for 12.17.4 and found out that there 
were ogg bugfixes.  I decided to compile 12.17.4 on my Mandrake 9.0 
system with ALSA 0.9.0-0.8rc.  The compile made it a good long way, 
but bailed out like so:

gcc -g -O2 -Wall -I. -I.   -c -o alsa.o alsa.c
alsa.c: In function `alsa_hw_info_get':
alsa.c:91: warning: assignment from incompatible pointer type
alsa.c:92: dereferencing pointer to incomplete type
alsa.c:92: dereferencing pointer to incomplete type
alsa.c:92: dereferencing pointer to incomplete type
alsa.c:92: dereferencing pointer to incomplete type
alsa.c:92: dereferencing pointer to incomplete type
alsa.c:92: dereferencing pointer to incomplete type
alsa.c:92: dereferencing pointer to incomplete type
alsa.c:92: dereferencing pointer to incomplete type
alsa.c:92: dereferencing pointer to incomplete type
(Continue reading)

Ove Peter | 5 Dec 2003 12:12
Picon
Picon

Re: WAV to OGG?

Hi Kevin,

I had the same problem some time ago when trying to compile 12.17.4 on 
Mandrake 9.0. Jimen Ching pointed out back then that he upgraded the SoX ALSA 
handler to use rc6 API and above. Seems that Mandrake shipped 9.0 with a pre/
test version of ALSA (rc2) which is incompatible with newer ALSA releases.

I just compiled sox on a Mandrake 9.1 PPC system, and there the alsa error is 
gone.

So I guess could update Mandrake to at least 9.1 or install ALSA from source 
(you'll need the kernel sources then). If the oss audio driver is sufficient 
to you, you can also disable compilation of alsa in sox by doing './configure 
--disable-alsa-dsp'.

Regards,
Ove

>
>On 4 December 2003 at 14:50, Kevin Cosgrove <kevinc <at> doink.com> wrote:
>
>> I'm trying to convert from wav format to ogg format.  I think this 
>> should work:
>> 
>> sox -V sounds.wav sounds.ogg
>> 
>> But, it produces an empty ogg file.  Am I doing this wrong?
>> The verbose output from sox makes me think this should work.
>> 
>> I'm using SoX version 12.17.3.
(Continue reading)

Kevin Cosgrove | 5 Dec 2003 20:34

Re: WAV to OGG?


On 5 December 2003 at 12:12, Ove Peter <ovepeter <at> gmx.de> wrote:

> I had the same problem some time ago when trying to compile 12.17.4 on 
> Mandrake 9.0. Jimen Ching pointed out back then that he upgraded the SoX ALSA 
> handler to use rc6 API and above. Seems that Mandrake shipped 9.0 with a pre/
> test version of ALSA (rc2) which is incompatible with newer ALSA releases.
> 
> I just compiled sox on a Mandrake 9.1 PPC system, and there the alsa error is 
> gone.
> 
> So I guess could update Mandrake to at least 9.1 or install ALSA from source 
> (you'll need the kernel sources then). If the oss audio driver is sufficient 
> to you, you can also disable compilation of alsa in sox by doing './configure 
> --disable-alsa-dsp'.

I built sox 12.17.4 from the Mandrake 9.2 source RPM by adding 
"--disable-alsa-dsp" to the configure line in the sox.spec file.
The wav to ogg conversion works now.  This version of SoX seems to 
work fine with SoundStudio 1.0.6, including reading in an ogg file.

Thanks Ove!

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Jimen Ching | 5 Dec 2003 22:41
Favicon

Re: WAV to OGG?

On Fri, 5 Dec 2003, Kevin Cosgrove wrote:
>gcc -g -O2 -Wall -I. -I.   -c -o alsa.o alsa.c
>alsa.c: In function `alsa_hw_info_get':
>alsa.c:91: warning: assignment from incompatible pointer type
>alsa.c:92: dereferencing pointer to incomplete type
>alsa.c:110: warning: assignment from incompatible pointer type
>alsa.c:111: dereferencing pointer to incomplete type
>alsa.c: In function `alsa_hw_info_set':
>alsa.c:136: warning: assignment from incompatible pointer type
>alsa.c:137: dereferencing pointer to incomplete type
>alsa.c:142: warning: assignment from incompatible pointer type
>alsa.c:143: dereferencing pointer to incomplete type
>make: *** [alsa.o] Error 1
>
>Any ideas what to do about this?

Can you use a later version of ALSA?  Even though the version is 0.9.x,
there was a major API change to the driver code.

--jc
--

-- 
Jimen Ching (WH6BRR)      jching <at> flex.com     wh6brr <at> uhm.ampr.org

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Felix Erkinger | 6 Dec 2003 21:51
Picon

Epoc Psion 5mx pro Soundrec.app file conversion

Hi !

I've recorded a session of an ethnologist visiting in vienna.

Now i would like to convert it to mp3 or ogg, but i had to compress
it via the advanced coding scheme of the soundrecorder (which is a type
of adpcm, in contrast to the other alaw recording).

I didnt found any posibility to convert it via sox or any other tool.
(I dont have psiwin as i dont have windows)

Is there a possibility to convert (even with cutting out the encoded
data manually an write a new header) to convert it via sox ?

I know how the epoc record file is designed so, i could cut out the
samples only (beside the fact i dont know which flavour of adpcm it
uses) but i have no idea of the next step.

Any suggestions ?

Thank you in advance,
   Felix.

ps.: Please CC reply me as it was not possible for me to subscribe the
mailing list via sourceforge (no confirmation mail was sent)

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
(Continue reading)

Juhana Sadeharju | 9 Dec 2003 21:02
Picon
Picon
Favicon

Re: AIFF/IMA ADPCM amd WAV/IMA ADPCM

Hello.
I have plain IMA ADPCM files for which I would like to have
a converter. They don't have AIFF or WAV wrapping; many example
headers are given below. I may provide example files if
anyone is willing to take a look at this.

Some guessing:
The 3th column is some kind of name; it may not have any other
meaning.
Last column tells how much data is following the header.
Only the following combinations of other columns seem to exists:
  512 0 1 2 0
  512 0 1 1 0
 2048 1 1 2 0
 2048 1 1 1 0

Regards,
Juhana

 == cut ==
IMA_ADPCM_Sound 512 0000030205^ <at>  226832 0 1 2 0 1.000 114688 M
IMA_ADPCM_Sound 512 0000040004^ <at>  197550 0 1 2 0 1.000 99840 M-
IMA_ADPCM_Sound 512 0002040205^ <at>  101508 0 1 2 0 1.000 51200 ^A
IMA_ADPCM_Sound 512 0003050103^ <at>  741876 0 1 1 0 1.000 373760 ^
IMA_ADPCM_Sound 512 0004010104^ <at>  48506 0 1 2 0 1.000 24576 ^O^
IMA_ADPCM_Sound 512 0004050205^ <at>  179550 0 1 2 0 1.000 90624 ^ <at> 
IMA_ADPCM_Sound 512 0008020205^ <at>  122943 0 1 2 0 1.000 61952 ^]
IMA_ADPCM_Sound 512 0017000100^ <at>  126670 0 1 2 0 1.000 64000 ^ <at> 
IMA_ADPCM_Sound 512 0017010000^ <at>  116125 0 1 2 0 1.000 58880 M-
IMA_ADPCM_Sound 512 0018000100^ <at>  87206 0 1 2 0 1.000 44032 M-}
(Continue reading)

jkinney | 10 Dec 2003 09:56

Help with install

I am very new to working with Unix. Can someone help me/point me to some install Sox for dummies info?

Stephen Stocker | 11 Dec 2003 03:13

Re: Help with install

  Hi,

  You're no dummy, it just takes a little getting used to. :)

  Basically, if you download the Sox source code, you can extract it into
your home directory with "tar xzvf sox-whatever-version.tar.gz", cd into
the directory it creates (sox or sox-whatever-version), type "./configure"
then "make". If all goes well, login as root and type "make install". Oh,
and all of the above should be done without the quotes.

  You should be up and going. By the way, this is fairly standard for most
Linux stuff, and it's usually a lot easier than it looks. I hope that
helps, and tells you what you wanted to know.

  Take care,
  Steve

On Wed, 10 Dec 2003, jkinney wrote:

> I am very new to working with Unix. Can someone help me/point me to some
> install Sox for dummies info?
>
>

-------------------------------------
Hope, Despair and the Triumph of Life
http://www.hdtl.org
Abuse Prevention/Survivor Support
Peace & Human Rights

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

Gmane