Using ZPAQ

I tried to test the compression algorithms on the mahoney matte website, but when I want to decompress the file, it only saves the first block. He gives me the following instructions

"zpaqd v6.19 ZPAQ development tool, " __DATE__ "\n"
"To compress: zpaqd {a|c}[i|n|s|t]... config [arg]... archive files...\n"
"  a - append to existing archive.zpaq\n"
"  c - create new archive.zpaq\n"
"  i - don't save file sizes in comments\n"
"  n - don't save file names\n"
"  s - don't save SHA-1 checksums or test post-processor\n"
"  t - don't save header locator tag\n"
"  config.cfg with args $1...$9 - see libzpaq.h\n"
"To decompress:   zpaqd d archive [output [block [blocks [segments]]]]\n"
"To list:         zpaqd l archive\n"
"To run:          zpaqd r config [arg]... {h|p} [input [output]]\n"
"To trace:        zpaqd t config [arg]... {h|p} [N|xN]...\n"
"To compute SHA1: zpaqd s files...\n"
"See http://mattmahoney.net/zpaq/ for latest version\n"

      

The information about filenames and blocks is given to me, but I have no idea what "[output [block [blocks [segments]]]]" means. I am trying to unpack but I really didn't get it. I know this site is not about specific programs, but I have not found any information on the whole web and this is my last resource.

+3


source to share


1 answer


Use zpaq

to retrieve, not zpaqd

.

zpaq

(current version 6.41) is a general purpose archiver. zpaqd

is mainly a tool for developing and testing compression algorithms written in the ZPAQL language. However, you can use it to compress and decompress a single file like this:



zpaqd c 3 archive.zpaq input
zpaqd d archive.zpaq output

      

For detailed specifications, see the source code comments at zpaqd.cpp or zpaq.cpp. If you are using zpaqd it helps to understand the archive format described in http://mattmahoney.net/dc/zpaq202.pdf and the ZPAQL language described in libzpaq.h.

+2


source







All Articles