7zip Ultra LZMA2 compression

fiberOptics picture fiberOptics · Mar 27, 2014 · Viewed 46.7k times · Source

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.

Answer

tricasse picture tricasse · Feb 12, 2015

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