View Single Post
  #5  
Old 04-02-2021, 17:57
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
are you precompressing something that requires depth level to be set to 3 or higher? as for choosing between reflate or preflate, you need to know how each works as they have their advantages and disadvantages.

Code:
.\xtool.exe precomp -mzlib+reflate -d3 -c128mb -t100p-1 D:\xtool2020\test.zip output.bin
14992 streams
.\xtool.exe precomp -mzlib+preflate -d5 -c128mb -t100p-1 D:\xtool2020\test.zip output.bin
2603 streams
which should explain their differences seen here. What I would point out as the main difference, reflate supports streams with no tail while preflate doesn't so if a special deflate encoder was used or if a stream had been cut off, preflate will be unable to process such streams but reflate is able to handle these.

as for {option} via freearc, I'd first say you need to understand the command line syntax of xtool. The old xtool and new xtool use different syntax.

Code:
[External compressor:xtool]
header    = 0
packcmd   = xtool.exe precomp -mzlib -c32mb -t100p - - <stdin> <stdout>
Ideally this would become

Code:
[External compressor:xtool]
header    = 0
packcmd   = xtool.exe precomp {option} - - <stdin> <stdout>
then used as -mxtool:mzlib:c32mb:t100p from freearc.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
ffmla (04-02-2021)