Does putting media files in archives help save space?

0

For example if you used WinRAR or Winzip on .mp3 or .wmv files would it save disk space? I thought the answer was no because the compression was already built into their encoding. But then I red this wikipedia article and it says

7z's LZMA algorithm has a higher compression ratio than RAR, except for "multimedia" files like .wav and .bmp files, for which RAR uses specialized routines that outperform LZMA.

Celeritas

Posted 2012-08-14T08:00:34.607

Reputation: 7 487

1Helps for what? I think you should revise your question to be more specific for your problem, and to fit better on superuser. – amotzg – 2012-08-14T08:13:09.030

help save space – Celeritas – 2012-08-14T08:21:28.103

mp3 and wmv are compressed files, but bmp files are not compressed and wav files could be lossless if it contains PCM. So it's normal that compressing mp3s and wmvs doesn't save space, but with bmp and wav you could. :) – Flinth – 2012-08-14T08:25:52.680

Sorry, didn't read well, still I think it is a too general question. But I'll try to write an answer. – amotzg – 2012-08-14T08:26:16.627

Putting media files in archives saves space if two things are the case. First, the media files have to be compressible. Second, the archiver has to know how to exploit the compressibility of those files. – David Schwartz – 2012-08-14T09:40:57.703

Answers

0

WAV and BMP are not compressed as part of their formats, so it will usually reduce the file size considerably to compress it with a general compression tool. Here there can be an advantage to an algorithm that takes the file type into account, or that is more suitable to a specific file type.
MP3 on the other hand is compressed as part of saving the file format. Compressing a MP3 file will usually reduce very little from the file size and sometimes will increase the total archive size do to archive format overhead.
For a WMV container format things are more complicated, this is because the data compression can be different depending on the implementation.

In some cases, even when compressing MP3 files or files with other built-in compression (e.g. jpeg), you can achieve more compression when compressing more than one file into one archive. Also, when dealing with many files, only packing the files into a single file can save some space filesystem wise.
But those are much little differences and you should consider the time and overhead and archive size overhead depending on the reason you like to compress the files. For instance, when copying files, one large file will generally copy faster then many small ones with the same size.

amotzg

Posted 2012-08-14T08:00:34.607

Reputation: 911

0

I got comparatively positive result with commercial product Stuff-It. I tried it in spite of I do not trust advertisements. I was really surprised. Archiver was really reduced size of .wmv, .avi, .jpeg. Not so good result - WinZip zipx with WavPack and Jpeg compression. The first one is a well known tool for Mac but unknown for Windows. It is OK if you create archive for yourself but I do not think that 90% your friends have a software to extract these archives. For extract of Stuff-it files you have install Stuff Expander (free extracting tool). For extract WinZip zipx you need WinZip. I tried other sowtware like PowerArchiver (commercial) and 7-Zip (freeware) but they support general archive methods (LZMA, PPMD) only but not WavPack and Jpeg

P.S. Stuff-IT compressed my jpeg ~25-29%, mp3 ~15%, text files ~ 90% (greater than WinRar and WinZip). GUI absolutely inconvenient and ugly comparable with any standard archiver. I tried to create an archive ~1 Gb at external hard drive - Stuff-It crashed but I could create an archive at C: drive without any problems. I had only C: 128 GB at my old Win XP computer with 1 Gb Ram. When I installed Stuff-It Expander 2011 Stuff-It Archiver started frequently crash. I did not test Stuff-It at my new computer with Windows 8.

user3303579

Posted 2012-08-14T08:00:34.607

Reputation: 1

Paraphrased just like a TV commercial – pun – 2016-06-06T02:26:30.713