Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

7zip Ultra LZMA2 compression

How can I convert this settings into command?

enter image description here

Here are the results:

// Manual Compression (see the image above) Compressed Size: 12,647,451 bytes  // Ultra 7z a -t7z Files.7z -mx9 -aoa Compressed Size: 12,676,886 bytes  // LZMA2 7z a -t7z Files.7z -m9=LZMA2 -aoa Compressed Size: 14,237,515 bytes   

I am looking here:
http://sevenzip.sourceforge.jp/chm/cmdline/switches/method.htm

I am about to put this in a batch file.

like image 710
fiberOptics Avatar asked Mar 27 '14 07:03

fiberOptics


People also ask

Which 7zip compression method is best?

For the best compression rate, choose 7z. Compression level — the compression time increases with the compression level. The presets range from Store (fastest compression) to Ultra (slowest compression time with the most space saved).

What is 7-Zip compression level?

7-Zip is a file archive with the highest compression ratio. It works on the 7z format, which is the successor to the zip format. This format enables it to achieve more than a 1350 percent compression ratio compared to the zip format.

What is ultra compression?

Product Details. Combining effective graduated compression to reduce fatigue with our patented toesock freedom, blister prevention and balance, this is the sock for long races and high-mileage training days. Compression starts at the ankle and continues up the leg to aid circulation and blood flow.

What is LZMA2 compression in Zim?

LZMA2 (de)compression is the standard and only one compression algorithm supported in ZIM. In the standart implementation this done with the xz-utils library. A problem with LZMA2 is, that with higher compression rates the memory needed for decompression increases.

What is the dictionary size for 7-zip LZMA?

Sets Dictionary size for LZMA. You must specify the size in bytes, kilobytes, or megabytes. The maximum value for dictionary size is 1536 MB, but 32-bit version of 7-Zip allows to specify up to 128 MB dictionary. Default values for LZMA are 24 (16 MB) in normal mode, 25 (32 MB) in maximum mode (-mx=7)...

What is the size of LZMA2 file?

// Manual Compression (see the image above) Compressed Size: 12,647,451 bytes // Ultra 7z a -t7z Files.7z -mx9 -aoa Compressed Size: 12,676,886 bytes // LZMA2 7z a -t7z Files.7z -m9=LZMA2 -aoa Compressed Size: 14,237,515 bytes I am about to put this in a batch file. Show activity on this post.

How much RAM do I need for LZMA2 compression?

A problem with LZMA2 is, that with higher compression rates the memory needed for decompression increases. Using the highest rate 9, 65 MB RAM is needed. On the Nanonote, which we want to support we have only 32 MB installed. Tests showed, that level 4 is too much, but 3 is ok.


2 Answers

Your command line should be at least:

7z a -t7z Files.7z -m0=lzma2 -mx=9 -aoa 

Note that you'll get better compression when using 1 or 2 threads, not 8. So, even closer to your GUI settings (ms : solid, d : dictionary size, mhe : encrypt header (file names), p : password)

7z a -t7z -m0=lzma2 -mx=9 -aoa -mfb=64 -md=32m -ms=on -d=1024m -mhe -pSECRET 
like image 159
tricasse Avatar answered Sep 22 '22 06:09

tricasse


It's hard to get the same result, but this is the best I can get so far:

7z a -t7z Files.7z -m0=BCJ2 -m1=LZMA2:d=1024m -aoa 
like image 45
fiberOptics Avatar answered Sep 19 '22 06:09

fiberOptics