Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: 7z beats other codecs on 24bit 48khz sample (Read 33274 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

7z beats other codecs on 24bit 48khz sample



I just lold ))
flac highest  610 -> 377
monkey's insane 610 -> 375
7zip 610 -> 211

Use 7zip guys )))
---
UPD. added Monkeys audio

7z beats other codecs on 24bit 48khz sample

Reply #1
Have you tried zipping the flac or other codecs? The comparison is not totally fair now as zip is no audio codec. It cant be played back directly or seeked ahead in. It needs to be unpacked to memory or temp file in full before the enclosed data can be played. The other formats can be played from halfway the file without decoding the whole file first.

7z beats other codecs on 24bit 48khz sample

Reply #2
Have you tried zipping the flac or other codecs? The comparison is not totally fair now as zip is no audio codec. It cant be played back directly or seeked ahead in. It needs to be unpacked to memory or temp file in full before the enclosed data can be played. The other formats can be played from halfway the file without decoding the whole file first.

Hello.
Zipping already compressed things is bad idea)

Yes, you're right, but I was surprised that 7zip, which used for common compression, got better results than most popular audio compression codecs on their highest settings. And 7zip is not just better, it have ~55 - 75% bonus in file size.

For me, lossless is only for archive needs. For listening needs I have lossy codecs, because my SD card or flash card in my phone dosent have so much space.

I think peoples like me, who need lossless for archive needs must think about this moment)

7z beats other codecs on 24bit 48khz sample

Reply #3
I can see how this is interesting for purely archiving purposes. It not that surprising though. The zipping can use much large blocks and compress patterns throughout the file, while an audio codec must use smaller blocks (sequentially) to be realtime decodeable and playable.

7z beats other codecs on 24bit 48khz sample

Reply #4
I fail to see how this is interesting that you found one file where 7z wins.

I tried on an album:
wav: 678MB
7z: 572MB
rar: 373MB
wv: 255MB


I would take any wager on general compressors losing that battle 95%+ of the time.

7z beats other codecs on 24bit 48khz sample

Reply #5
My test:

WAV 16/44: 569 743 820 bytes
7z LZMA Ultra: 529 341 057 bytes
RAR5 Best: 427 763 395  bytes
FLAC -8:  362 224 323 bytes

7z beats other codecs on 24bit 48khz sample

Reply #6
I fail to see how this is interesting that you found one file where 7z wins.

I tried on an album:
wav: 678MB
7z: 572MB
rar: 373MB
wv: 255MB


I would take any wager on general compressors losing that battle 95%+ of the time.

strange. maybe its because I used 24bit 48khz wav input? and lossless codecs are not optimized good to compress >22khz frequencies? so pure math of 7z make it winner?
here is the link to my test file http://yadi.sk/d/hpGxgr9y8-z1e
and here is spectrogramm that shows that frequencies >22khz available
Spoiler (click to show/hide)

7z beats other codecs on 24bit 48khz sample

Reply #7
strange. maybe its because I used 24bit 48khz wav input? and lossless codecs are not optimized good to compress >22khz frequencies? so pure math of 7z make it winner?
here is the link to my test file http://yadi.sk/d/hpGxgr9y8-z1e

One possible explaination: Quite few of the possible sample values between the files minimum and maximum value are present in the file. That's nice for general purpose file compressors.

Some possible reasons:

- Amplification by a quite large factor
- Companded source signal (a-law, u-law etc.)

The resulting sample distribution then contains a lot of holes.

While some audio compressor can detect an amplification by an integer power of 2 (the wasted bits feature), to my knowledge only OptimFrog's experimental mode can take advantage of other transformations.

I tried it. Because this feature currently only works for 16 bit samples, i converted your file to 16 bit / 96 khz (without dithering).

Results:

Optimfrog Normal:  41.87 % (of the uncompressed file size)
Optimfrog Normal -- experimental:  29.46 %

This seems to support my hypothesis.


7z beats other codecs on 24bit 48khz sample

Reply #8
I can see how this is interesting for purely archiving purposes. It not that surprising though. The zipping can use much large blocks and compress patterns throughout the file, while an audio codec must use smaller blocks (sequentially) to be realtime decodeable and playable.


Since 7zip doesn't know about stereo, I expect that for anything but mono audio or two uncorrelated stereo channels, a regular lossless codec will have a pretty big advantage since it can do M/S stereo. 


7z beats other codecs on 24bit 48khz sample

Reply #10
Although not directly related to this conversation, it may be useful to know that foobar2000 has a component add on that allows for playing soundfiles embedded in 7z archives without needing to manually decompress them.
Be a false negative of yourself!

7z beats other codecs on 24bit 48khz sample

Reply #11
Yes, and that component decompresses the entire file to memory before playing it.

7z beats other codecs on 24bit 48khz sample

Reply #12
I was wondering... does it work out better if you compress the wav with or the already compressed flac/ape ect with 7z. I'd love to try it but I have to get some sleep now =(

7z beats other codecs on 24bit 48khz sample

Reply #13
I was wondering... does it work out better if you compress the wav with or the already compressed flac/ape ect with 7z. I'd love to try it but I have to get some sleep now =(


Well, one album I tested (metal album, released 2013, with low dynamic range) compressed to:

wav: 484 MB (uncompressed)
flac: 344 MB (level 8)
wav->7z: 468 MB (ultra)
flac->7z: 344 MB  (level 8, ultra)

So basically just a waste of time and resources.

Since compression algorithms make the compressed data more random further compression can only squeeze out a few more bytes, or if the initial compression was done well actually increase the size (so a waste of time, resources, and disk space).
"I hear it when I see it."

7z beats other codecs on 24bit 48khz sample

Reply #14
On the other hand, since WinZip can compress with the WavPack compression algorithm, it will compress wav files quite efficiently.

7z beats other codecs on 24bit 48khz sample

Reply #15
And only WinZip can unpack those.

7z beats other codecs on 24bit 48khz sample

Reply #16
Also bear in mind 7-zip isn't actively developed, it hasn't had a stable (non alpha/beta) release since 2010.

7z beats other codecs on 24bit 48khz sample

Reply #17
Also bear in mind 7-zip isn't actively developed, it hasn't had a stable (non alpha/beta) release since 2010.

Then why did the developer announce a new alpha release in the coming days? 

It's still being actively developed, there's just not much to fix especially in the stable version.
"I hear it when I see it."

7z beats other codecs on 24bit 48khz sample

Reply #18
By the way 7-zip LZMA Ultra uses 64 MB dictionary size, that helps a lot, lossless audio codecs cannot exist with a dictionary size this huge, it would make seeking almost impossible.
LAME 3.100.1 -V0

7z beats other codecs on 24bit 48khz sample

Reply #19
I took a look at this file, and as Thomas says, the high compression is based on missing sample values. The lower 10 bits are essentially wasted as almost every sample is a multiple of 32767 / 32, and since that's not an even power of 2 the algorithms in many lossless compressors that eliminate redundant LSBs don't do anything. I have no guess how this file got like this, but it essentially has only 14 bits of resolution.

A long time ago I considered trying to take advantage of this to get better compression for real CDs. I seem to remember that about 10% of my CD collection showed some statistical discrepancy that could be leveraged for improved compression, in some cases up to 10%! The first problem was the complexity (there were many variations on how the missing sample values were manifested) and the other thing that bothered me was that I would be taking advantage of something that really shouldn't be there at all with well-mastered material. I would be curious as to how common this is in modern recordings, but this definitely strikes me as an edge-case not worth considering beyond mathematical curiosity.

7z beats other codecs on 24bit 48khz sample

Reply #20
Then why did the developer announce a new alpha release in the coming days? 

It's still being actively developed, there's just not much to fix especially in the stable version.


You answered your own question, the clue being the word alpha  I said stable.

Even the latest alpha is dated October 2012. Taking 3 years to get a new release out when it's been in beta is what I'd call not actively developed.

7z beats other codecs on 24bit 48khz sample

Reply #21
I smell something extremely fishy here.

Like your album has several bit-identical songs, so 7z takes advantage of its enormous dictionary.

Care to share the album name?

7z beats other codecs on 24bit 48khz sample

Reply #22
Just to make sure: is the test file in 24 bit 96 kHz format ? The spectrogram shows content up to 48 kHz, indicating a sampling rate of 96 kHz, but the topic mentions 48 kHz.
Also, has it been verified that the process is lossless ?

7z beats other codecs on 24bit 48khz sample

Reply #23
Probably the test sample wav were recorded using std Audacity, which does let record/save 24-bit wav files bits 17-24 filled with zeros.


7z beats other codecs on 24bit 48khz sample

Reply #24
bryant's already explained exactly what's happening - why are you guys still speculating?