Skip to contentSkip to conversation

compression tools

DISCUSSION Florin Andrei 3 participants 3 messages Sep 20, 1998 – Sep 22, 1998 Sound

lore
Share & tools
lore
#0 lore raw

I need some real-time compression tools, wich can provide a reasonable sound quality and a good compression ratio.
I tried gsm-toast, but it sounds awfully when i put music through it.
Some mpeg will be fine, but the compression speed is bad, or so i think after seeing 8hz how it converts a 52 seconds wav during 4 minutes and a half!!! (this was on a PII 233). This could not be real-time!
I need this thing in order to transmit *music* over a 33.6 kbps
connection, at the best quality possible.
I tried netstreamer, but at 16 kHz sampling ratio still sounds not so
well.
Any suggestions?

Florin Andrei

#1 lore raw

I can only speak from the point of view of *free*. Best quality is only going to come with buying something from the likes of RealAudio.

Besides that, I've had good luck with various ADPCM formats. Both IMA ADPCM and Microsoft ADPCM can convert 16-bit audio into 4-bit audio which results in a considerable compression. Plus realtime compression/decompression is easy on even limited machines (even 386s). Sound quality holds up remarkably well. Right now its probably easiest to convert your samples into .wav files under windows as it includes codecs for both of those versions.

I've implemented the decoder portion into sox but haven't gotten around to adding the encoder (although the algorithms are readily available). You could use that to listen to the streaming audio. IMA ADPCM was designed to support streaming (recovery from lost blocks of data) although I haven't seen any decoders take advantage of this. You can grab a copy of sox with this support from:

http://home.sprynet.com/sprynet/cbagwell/projects.html

There is also a RAW IMA ADPCM encoder/decoder available on the net that compiles under most versions of unix. Do a search for adpcm.shar.

Hope it helps,
Chris

Quoted 14 lines · Florin Andrei

I need some real-time compression tools, wich can provide a reasonable sound quality and a good compression ratio.
I tried gsm-toast, but it sounds awfully when i put music through it.
Some mpeg will be fine, but the compression speed is bad, or so i think after seeing 8hz how it converts a 52 seconds wav during 4 minutes and a half!!! (this was on a PII 233). This could not be real-time!
I need this thing in order to transmit *music* over a 33.6 kbps
connection, at the best quality possible.
I tried netstreamer, but at 16 kHz sampling ratio still sounds not so
well.
Any suggestions?

Florin Andrei

Signature · 2 lines
          Chris Bagwell              |  Fujitsu Network Communications
 mailto:[email protected]   |         Richardson, Texas
#2 lore raw
In reply to Florin Andrei

There is an implementation of the adpcm algorithms available in the
Speak Freely package: http://www.fourmilab.ch/speakfree/

Off topic: Although, I'm wonder if anyone has implemented the adaptive audio compression algorithms from Dr. Dobbs a few months ago...

Quoted 31 lines · Chris Bagwell

I can only speak from the point of view of *free*. Best quality is only going to come with buying something from the likes of RealAudio.

Besides that, I've had good luck with various ADPCM formats. Both IMA ADPCM and Microsoft ADPCM can convert 16-bit audio into 4-bit audio which results in a considerable compression. Plus realtime compression/decompression is easy on even limited machines (even 386s). Sound quality holds up remarkably well. Right now its probably easiest to convert your samples into .wav files under windows as it includes codecs for both of those versions.

I've implemented the decoder portion into sox but haven't gotten around to adding the encoder (although the algorithms are readily available). You could use that to listen to the streaming audio. IMA ADPCM was designed to support streaming (recovery from lost blocks of data) although I haven't seen any decoders take advantage of this. You can grab a copy of sox with this support from:

http://home.sprynet.com/sprynet/cbagwell/projects.html

There is also a RAW IMA ADPCM encoder/decoder available on the net that compiles under most versions of unix. Do a search for adpcm.shar.

Hope it helps,
Chris

Quoted 3 lines · Florin Andrei

I need some real-time compression tools, wich can provide a reasonable sound quality and a good compression ratio.

[snip]

Quoted 6 lines
Quoted 2 lines

Any suggestions?
Florin Andrei

--
Chris Bagwell | Fujitsu Network Communications
mailto:[email protected] | Richardson, Texas

Signature · 3 lines
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell         mailto:[email protected] |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+