7Zip with ZStandard (ZStd) for both packing and unpacking

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
arberg
Junior Member
Junior Member
Posts: 9
Joined: 2018-04-20, 10:00 UTC

7Zip with ZStandard (ZStd) for both packing and unpacking

Post by *arberg »

Hi,

I would like to be able to compress and uncompress 7zip archives with zstd.

It looked from the release-notes of 11.00 like zip should support zstd (though I didn't think that was possible in zip?). I don't know how to get a zip file compressed with zstd. Though I'm not sure I would want that if it was possible. But I don't understand what's the deal with zip and zstd in release TC 11.00.

I found that if I replace `TCLZMA64.DLL` in the install dir with this version from TotalCmd.7z, Total commander can now uncompress a .7z file compressed with zstd (by C-PgDw and copy, or just Alt-F9): https://github.com/mcmilk/7-Zip-zstd/releases/tag/v22.01-v1.5.5-R3.

So far so good...

I would like to be able to also create 7zip archives from within Total Commander. I tried both old plugins, 7zip and Total7Zip, none have it. I tried updating the 7z.exe, dll and 7z.sfx (incl x64), to new 7Zip Std version in Total7Zip plugin, but that didn't work. The Total7Zip plugin then opens the new 7z config and I can enter ZStd, but it compresses with lzma. I know it was lzma by testing with '7z l file.7z'.

Best Alex
arberg
Junior Member
Junior Member
Posts: 9
Joined: 2018-04-20, 10:00 UTC

Re: 7Zip with ZStandard (ZStd) for both packing and unpacking

Post by *arberg »

* UPDATE *
Zip does indeed now support Zstd compression. 7Zip even supports it directly in the GUI, in the 7Zip-Zstd I linked. I tested native TC decompression of a *.zip file using zstd and it worked fine i TC v11.00.

Here's some background links about zip support of Zstd:
User avatar
AntonyD
Power Member
Power Member
Posts: 1563
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: 7Zip with ZStandard (ZStd) for both packing and unpacking

Post by *AntonyD »

2arberg
It would very cool if you for ex. could ask the author of 7zstd - why there is big distance between sources of his release and the original 7z?
7z already has 23.01 build!
#146217 personal license
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Re: 7Zip with ZStandard (ZStd) for both packing and unpacking

Post by *hlloyge »

7-zip doesn't support zstd. It's just this fork, which was solely made to support this type of compression.
arberg
Junior Member
Junior Member
Posts: 9
Joined: 2018-04-20, 10:00 UTC

Re: 7Zip with ZStandard (ZStd) for both packing and unpacking

Post by *arberg »

Yes exactly hlloyge.

If someone knows where the authors of Total7Zip hang out that would be helpful, maybe they can do an easy quick fix (?).

---

I learned that Total Commander can actually package *.zip files using zstd if I configure 7-zip. I rediscovered F1, Thank you Ghisler for writing an helpful help section :)

This is how I did it:

Total Commander Preference Zip Packer can be configured to create Zstd *.zip archives
• Zip Packer: C:\ProgramData\scoop\apps\7zip-zstd\current\7zg.exe -m0=zstd
• Disable 'use internal'
• Enable 7z
• Note 1: Do not change 'Zip unpacker' to 7z.
• Note 2: Above will make all zip files be compressed with zstd, thus mean others might not be able to decompress them. Enabling 'Use Internal' makes TC compress the old-fashioned way again.
• Note 3: The compression level is (only) set via the interactive zip-dialog (top right corner), and it only permits 1-9. zstd use levels 1-22 and 11 is normal. BUT level 9 still produce smaller files than regular zip and is twice as fast. Adding -mx11 is ignored (or overwritten) by TC.

---

I would still prefer a *.7z archive, so I could leave my *.zip files being something 'everyone' can decompress...
Post Reply