Linux Sound subsystem development
 help / color / mirror / Atom feed
* Multimedia compression
@ 2000-06-16 21:35 Sergey
  2000-06-16 21:55 ` paco
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sergey @ 2000-06-16 21:35 UTC (permalink / raw)
  To: linux-sound

Hi!
 Have someone heard of "Multimedia compression"?
 I mean, a special Zip (WINZIP :( ) which compresses PCM WAVes without
 losses. (Special optimized algorythms are used)
 Is there something like that for Linux?
 
 As I know, it will save 30-40% of disk space if you store plain PCMs -
whiel a ususal bzip or zip saves just about 5%.
 
 Please do not write of mpeg or any other "destructive" compression.
         Sergey.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multimedia compression
  2000-06-16 21:35 Multimedia compression Sergey
@ 2000-06-16 21:55 ` paco
  2000-06-16 21:56 ` paco
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paco @ 2000-06-16 21:55 UTC (permalink / raw)
  To: linux-sound

There's something called SHORTEN that does lossless compression of .WAV
files. It produces .SHN files that are roughly 1/2 the size of the .WAV,
but... you can't play a SHN file (yet).  You have to decompress it to a
WAV and listen to it that way.  So, it's good for up/down-loading music
and for archiving music.

You can whip up a little script to play CDs full of SHN files.  I did.  It
just decompresses the SHN off of a CD and pipes the output directly to
"play" so that I can keep twice the music on a single CD.

I don't remember the Shorten website name exactly, but there is a link to
it off of my website.

	http://www.hydrofunk.org/music

peace,
--Paco

On Sat, 17 Jun 2000, Sergey wrote:

> Hi!
>  Have someone heard of "Multimedia compression"?
>  I mean, a special Zip (WINZIP :( ) which compresses PCM WAVes without
>  losses. (Special optimized algorythms are used)
>  Is there something like that for Linux?
>  
>  As I know, it will save 30-40% of disk space if you store plain PCMs -
> whiel a ususal bzip or zip saves just about 5%.
>  
>  Please do not write of mpeg or any other "destructive" compression.
>          Sergey.
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multimedia compression
  2000-06-16 21:35 Multimedia compression Sergey
  2000-06-16 21:55 ` paco
@ 2000-06-16 21:56 ` paco
  2000-06-17 16:57 ` Benno Senoner
  2000-06-20 17:08 ` paco
  3 siblings, 0 replies; 5+ messages in thread
From: paco @ 2000-06-16 21:56 UTC (permalink / raw)
  To: linux-sound

On Fri, 16 Jun 2000 paco@rift.hydrofunk.org wrote:

> I don't remember the Shorten website name exactly, but there is a link to
> it off of my website.
> 
> 	http://www.hydrofunk.org/music


Whoops!  The page is http://www.hydrofunk.org/software .  My bad.

-Paco

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multimedia compression
  2000-06-16 21:35 Multimedia compression Sergey
  2000-06-16 21:55 ` paco
  2000-06-16 21:56 ` paco
@ 2000-06-17 16:57 ` Benno Senoner
  2000-06-20 17:08 ` paco
  3 siblings, 0 replies; 5+ messages in thread
From: Benno Senoner @ 2000-06-17 16:57 UTC (permalink / raw)
  To: linux-sound

On Fri, 16 Jun 2000, paco@hydrofunk.org wrote:
> There's something called SHORTEN that does lossless compression of .WAV
> files. It produces .SHN files that are roughly 1/2 the size of the .WAV,
> but... you can't play a SHN file (yet).  You have to decompress it to a
> WAV and listen to it that way.  So, it's good for up/down-loading music
> and for archiving music.
> 
> You can whip up a little script to play CDs full of SHN files.  I did.  It
> just decompresses the SHN off of a CD and pipes the output directly to
> "play" so that I can keep twice the music on a single CD.

I tried shorten some time ago:

when using lossy compression you can achieve 1:4 - 1:5 but on soft passages
the sound is very crappy.

OTOH, when using lossless compression the gain is sometime minimal,
only 20% if you are unlucky.
Not much for my taste.

I prefer to use MPEG Layer 2 ( MP2) at 384kbit (lossy) which outperforms all MP3
based codecs even 320kbit. 

Do you think that in future it will be possible to squeeze out even more
redundancy out of PCM audio using lossless compression ?
( 1:3 - 1:5 would be really cool, but I think there will be no hope ...
audio is just too unpredictable.

OTOH, one way to achieve great compression with little distorsion would be 
decomposing the audio stream in it's elementary "instruments", like
drumset , guitars ,violines , bass etc, and then code a sort of MIDI-like file
(very short) with the "samples" stored in the stream only once.

I think MP4-SAOL is a step in that direction.

Perhaps John Lazzaro could give us more insights regarding this field.

I know that the goal will be "statistically indistinguishable from CD" sound,
just like AAC 128kbit or  MP3  > 160-192kbit  does. ( no folks, those believing
MP3 128kbit = TRUE CD quality are completely FOOLISH),
but I am just curious what the achievable compression ratio will be , when
compressing a typical pop, rock, techno, classical  song using structured
audio.
Will 1:20 , 1:30 be possible in future ?

cheers,
Benno.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multimedia compression
  2000-06-16 21:35 Multimedia compression Sergey
                   ` (2 preceding siblings ...)
  2000-06-17 16:57 ` Benno Senoner
@ 2000-06-20 17:08 ` paco
  3 siblings, 0 replies; 5+ messages in thread
From: paco @ 2000-06-20 17:08 UTC (permalink / raw)
  To: linux-sound


On Sat, 17 Jun 2000, Benno Senoner wrote:

> I tried shorten some time ago:
> 
> OTOH, when using lossless compression the gain is sometime minimal,
> only 20% if you are unlucky.
> Not much for my taste.

I find this very hard to believe.  Speaking from my own experience, I've
had nothing but outstanding results with SHORTEN.

I collect live concert bootlegs; recorded on DAT, dumped down onto the
HDD as WAVs, compressed to SHNs, and burned onto CDs that I listen to.
I've got nearly 100 such CDs sitting here at my side, and here's the
stats based on those live concert CDs.

My average song compression		52% savings
My worst single-song comression		35% savings
My best single-song compression		60% savings

The main thing I wanted to point out is that I've never had a something
compress less than 35%.

peace,
-Paco

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-06-20 17:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-16 21:35 Multimedia compression Sergey
2000-06-16 21:55 ` paco
2000-06-16 21:56 ` paco
2000-06-17 16:57 ` Benno Senoner
2000-06-20 17:08 ` paco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox