How can I convert this settings into command?
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.
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).
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.
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.
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.
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)...
// 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.
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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With