View Single Post
  #326  
Old 21-03-2018, 10:25
panker1992's Avatar
panker1992 panker1992 is offline
Registered User
 
Join Date: Oct 2015
Location: Always Somewhere
Posts: 564
Thanks: 116
Thanked 881 Times in 319 Posts
panker1992 is on a distinguished road
xz ~ with stdio capabilities

Quote:
Originally Posted by Andu21 View Post
Thanks felice2011 it's working fine now. It's a shame stdio doesn't work properly.
the reason why xz cant be used with stdio capabilities are various, but i can show you how to use xz with 7z support it supports stdin and stdout and its streaming works wonderfully

[External compressor:xz,lzma2]
header = 0
packcmd = 7z a -txz -an -m0=lzma2{:option}:fb=273:mf=bt4:mc=100000000:lc=4: lp=0 -mx9 -si -so <stdin> <stdout>
unpackcmd = 7z x -txz -an -y -si -so <stdin> <stdout>

use it like this

srep:m3f:a1+lzma2:d256m:c1024m:mt4
or
srep:m3f:a1+xz:d256m:c1024m:mt4

d(dictionary)m
c(chunk)m
mt4 = 4 threads

this combo does need ram so careful

enjoy a wonderful streaming experience both in comp and decomp (decomp is now multithreaded)
__________________
My projects : Masked Compression, lzma2(xz) on Freearc, Zstd compressor for windows
My optimizations : packjpg.exe, zstd, lzham, precomp-dev-0.45.

Last edited by panker1992; 21-03-2018 at 10:28. Reason: quick fix
Reply With Quote
The Following 2 Users Say Thank You to panker1992 For This Useful Post:
Andu21 (21-03-2018), pakrat2k2 (21-03-2018)