HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: iwod on 2002-02-26 17:14:18

Title: "Zipping" Music
Post by: iwod on 2002-02-26 17:14:18
Monkey audio from what i understand is basically zipping Music like winzip zip a .doc file. When you play it you have to extract.

But why not use other program which also offer great compression like winrar or winAce?? ( i personally thinks winzip is crap ) What makes monkey audio from these compression program??

And what other simliar program that does the silmilar thing as monkey audio?? ( acooding to the monkey audio site it said the it does NOT loss ANY quality. so is there any other format or program that does that ?? )
Title: "Zipping" Music
Post by: Jan S. on 2002-02-26 17:32:09
hehe, it functions LIKE zip. It's not the same. You can say it functions like rar or ace too.

It just means that it's lossless like using zip on your files.
Title: "Zipping" Music
Post by: krsna77 on 2002-02-26 18:35:20
I'm not an expert, so someone correct me if I'm wrong...

But the way I understand it, Monkey's Audio is a better compression method for audio (WAV) than ZIP, RAR, BZ2 (the best BTW), or whatever, because whereas the latter compression methods are designed for general use, Monkey's Audio is engineered to *specifically* compress _audio_, and is therefore best suited to deal with the unique attributes inherent in digital audio files. Thus, WAVs are smaller using APE than just ZIP.

It's kinda like asking why don't we use ZIP or RAR for graphics instead of PNG. Same answer - the tuned compression method utilizes methods geared for the specific filetype, and better compression is achieved.

Anyhoo, Monkey's Audio is good, but now the official "Hydrogen Audio Sanctioned Lossless Format" is FLAC (http://www.hydrogenaudio.org/forums/showthread.php?threadid=1150)  (and I've always preferred FLAC anyway... so I'm happy . It's a command-line app, but I believe there are some good Windows front-ends for it (well, that's how Monkey's Audio works anyway... it's just bundled with the front-end.
Title: "Zipping" Music
Post by: Jan S. on 2002-02-26 18:51:16
Everything was correct.
Title: "Zipping" Music
Post by: Gecko on 2002-02-26 21:53:10
I found this on the page of Monkey's Audio: http://www.monkeysaudio.com/theory.html (http://www.monkeysaudio.com/theory.html) It tells you on a basic level how lossless audio compression is achieved. On the FLAC page there is also a documentation but I have not bothered to read it: http://flac.sourceforge.net/documentation.html (http://flac.sourceforge.net/documentation.html)

Digital audio data is relatively easy to predict so you store a start value and start predicting the next one. Compare the prediction with the actual value and store the difference. Predict the following and so on. Due to the good predictability the difference values will be very small, and small numbers in turn can be compressed more efficiently than large ones.
Title: "Zipping" Music
Post by: Radboy on 2002-02-26 22:54:23
You can listen to an .ape file from your hard drive. YOu don't have to decompress it first. Can't do that with zip or rar or ace.
Title: "Zipping" Music
Post by: rjamorim on 2002-02-26 23:02:20
Quote
Originally posted by Radboy
You can listen to an .ape file from your hard drive. YOu don't have to decompress it first. Can't do that with zip or rar or ace.


You can. But you must use Winamp with Peter's in_wave and readfile.dll.

And, besides compressing less than MA or FLAC, the files are decompressed completely to memory before playing. What means ~50Mb for a 5min music.
Title: "Zipping" Music
Post by: fewtch on 2002-02-27 02:11:52
Quote
Originally posted by rjamorim
And, besides compressing less than MA or FLAC, the files are decompressed completely to memory before playing. What means ~50Mb for a 5min music.

My God... !  It hardly seems worth it.
Title: "Zipping" Music
Post by: rjamorim on 2002-02-27 02:39:31
Of course it's not worth. 

But you CAN play the compressed waves without decoding them to disk first.
Title: "Zipping" Music
Post by: superorc on 2002-02-27 06:47:16
im ripping very cd im doing with monkeys audio. well first i have 160 gigs of hard drive space, plus monkeys audio has id3 tagging. flac as far as i see it doesnt have anything like id3 tags
Title: "Zipping" Music
Post by: sven_Bent on 2002-02-27 08:26:43
Quote
You can listen to an .ape file from your hard drive. YOu don't have to decompress it first. Can't do that with zip or rar or ace.


actually you can do this. you jsut ned the XOR archive input plugin from the winamp website

i used to compres my .aac fiels with winrar to save another 6% (lossless) compression.

then i renamed my .rar to .rac and could play it in winamp without needing to decompress or anything

:-)
Title: "Zipping" Music
Post by: superorc on 2002-02-27 09:49:54
Quote
Originally posted by sven_Bent
 

actually you can do this. you jsut ned the XOR archive input plugin from the winamp website

i used to compres my .aac fiels with winrar to save another 6% (lossless) compression.

then i renamed my .rar to .rac and could play it in winamp without needing to decompress or anything

:-)


wouldnt that be a waste?
Title: "Zipping" Music
Post by: rjamorim on 2002-02-27 14:40:49
Quote
Originally posted by sven_Bent
 

actually you can do this. you jsut ned the XOR archive input plugin from the winamp website

i used to compres my .aac fiels with winrar to save another 6% (lossless) compression.

then i renamed my .rar to .rac and could play it in winamp without needing to decompress or anything

:-)


Well, you ARE decompressing them entirely to memory when you play, and I believe it's kinda of a waste of memory for just ~6% compression.

The only compression format where you don't need to decode it entirely to retrieve parts of the data (afaik) is Gzip, via zlib functions, but, in this case, search is REALLY slow.
Title: "Zipping" Music
Post by: fewtch on 2002-02-27 20:38:02
Quote
Originally posted by rjamorim


Well, you ARE decompressing them entirely to memory when you play, and I believe it's kinda of a waste of memory for just ~6% compression.

I wonder why these plugins don't decompress to disk instead of to memory?  It would be a simple matter to use the default %temp% directory, and would eliminate the chance of disk swapping when listening to longer tunes.  Decompressing to memory, uggh...
Title: "Zipping" Music
Post by: sven_Bent on 2002-02-28 07:32:18
Quote
Originally posted by rjamorim Well, you ARE decompressing them entirely to memory when you play, and I believe it's kinda of a waste of memory for just ~6% compression.


Actually you are decompressiong into af temp folder inside winamp. the decompression takes below 2secs.
nothing you notice unless you have live albums

Besides that using around 8 megs for keeping the uncrompress music in the memmory is not more wasting memmory then when you are keeping you entire .mpc/.mp3 in memmory.

and 8 megs out of 1 gig is not the much memmory.


My point with this input plugin was that YOU don't ned to decompress yuorself. The plugin does it automatically for you once installed correctly


and 6% of 300gigs is stil af saving of 18.gigs

Last time i check hardware prices a 18gigs drive was more expensive then 8 megs of memmory
Title: "Zipping" Music
Post by: Archet on 2002-02-28 09:16:04
Did I get this? You say, that rar compresses better than Monkey's Audio or is able to compress it even more? I doubt that since Monkey's algorithm is specifically designed for it and most likely better than rar compression for multimedia files.

I'm keeping copies of files that I'm going to burn on Audio CD (as soon as I got all the songs of one genre that I want to have on a CD) as monkey files on my HD which saved me about 25% of HD space. Using the plugin that comes with it I can listen to them from HD (I guess they are decompressed into mem) without problems.
Title: "Zipping" Music
Post by: layer3maniac on 2002-02-28 17:58:54
What he may have been referring to is this: Take a lossless file and compress it with rar or even zip. It gets SAMALLER. This is a good indication that there is still redundant data being left in lossless files.
Title: "Zipping" Music
Post by: Tes on 2002-02-28 18:51:11
Quote
Originally posted by sven_Bent
i used to compres my .aac fiels with winrar to save another 6% (lossless) compression.


It looks like he was actually compressing lossy (AAC) files with rar.
Title: "Zipping" Music
Post by: sven_Bent on 2002-02-28 21:41:30
Quote
Originally posted by Archet
Did I get this? You say, that rar compresses better than Monkey's Audio or is able to compress it even more? I doubt that since Monkey's algorithm is specifically designed for it and most likely better than rar compression for multimedia files.


Nope i didn't say that .  Try reading again i know i spell like shit not having English at my native tounge, but I'm retty shure that was not what i typed.


Quote
]Originally posted by TesIt looks like he was actually compressing lossy (AAC) files with rar.


Yes that was it
Title: "Zipping" Music
Post by: Archet on 2002-02-28 22:01:21
I got it. Still I think it's quite weird that rar can still compress something out of an already compressed file. Seems aac needs a bit of tuning
Title: "Zipping" Music
Post by: layer3maniac on 2002-03-01 02:22:35
Try it on an ape file sometime.
Title: "Zipping" Music
Post by: Delirium on 2002-03-01 04:10:39
I think the main reason is that audio codecs compress in blocks, and thus only eliminate redundancy within the blocks.  General-purpose compression programs generally search for redundancy throughout the whole file, which (most) audio codecs will not take advantage of...
Title: "Zipping" Music
Post by: fewtch on 2002-03-01 22:49:58
Quote
Originally posted by Delirium
I think the main reason is that audio codecs compress in blocks, and thus only eliminate redundancy within the blocks.  General-purpose compression programs generally search for redundancy throughout the whole file, which (most) audio codecs will not take advantage of...

If that's the case, we need more 2-pass audio encoders that can check for general redundancies (among other things).  After all this time, most encoders are still single-pass, and I wonder why (?).
Title: "Zipping" Music
Post by: Garf on 2002-03-01 23:21:25
Because otherwise (non-block oriented compression) you'd break streaming.

--
GCP
Title: "Zipping" Music
Post by: Delirium on 2002-03-02 02:43:39
Just out of curiosity, do lossless encoders do block-oriented or full-file compression?
Title: "Zipping" Music
Post by: fewtch on 2002-03-02 06:51:05
Quote
Originally posted by Garf
Because otherwise (non-block oriented compression) you'd break streaming.

Couldn't there at least be a switch, and a choice for those who don't stream?  Yeah, I know the question is academic and kind of dumb  .  But if compression (and maybe quality) could be improved...