View Single Post
  #1  
Old 15-08-2022, 19:37
ncomerci ncomerci is offline
Registered User
 
Join Date: Aug 2022
Location: Uruguay
Posts: 3
Thanks: 3
Thanked 16 Times in 3 Posts
ncomerci is on a distinguished road
My Precomp fork with stdin/stdout support

Hi, I've been working on a precomp fork for a few weeks now.
There is still a lot of stuff I want to do with it, but I think right now its on a place where it might be cool to let you guys try it.

Interesting features so far:
  • No changes to PCF header format, meaning at least for now, there should still be full compatibility with PCF files created from main precomp project (v0.4.8) lastest executable and this fork
  • Temp files have a random tag prepended on their filename, meaning you can run multiple instances working on files on the same folder and they should not interfere with each other
  • stdout support for precompression (stdin impractical, at least without heavy reengineering as we do seek on the input file many times during recompression)
  • stdin/stdout support for recompression

Usage:
Mostly the same as regular precomp, the only differences are for using stdin/stdout
  • (example of decompression using stdout) precomp -ostdout -cn -intense -brute file.dat > file.dat.pcf
  • (example of using stdin and stdout for recompression) srep -v0 -d file.tar.pcf.srep - | precomp -ostdout -r stdin | 7za x -si -ttar
so essentially, just use stdout as "output filename" or stdin as "input filename"

This fork should make precomp more practical to use in contexts where only xtool was practical before.

If anybody wants to see the code its at https://github.com/nicolas-comerci/precomp-cpp
Code is still on the compatible_refactor branch

You can find attached 32/64 bits zipped executables.
Please feel free to test and use and report any errors.
For now I am mostly interested on making sure I haven't introduced any new bugs, so I probably won't be fixing anything that also fails on mainline Precomp 0.4.8

EDIT 08/21/22: Added v1.0 of my fork, has been tested a little more and I fixed some OTF compression/decompression problems
Attached Files
File Type: rar precomp fork (broken OTF compression).rar (2.18 MB, 80 views)
File Type: 7z precomp stdin-stdout v1.0 32bit.7z (602.5 KB, 50 views)
File Type: 7z precomp stdin-stdout v1.0 64bit.7z (678.7 KB, 106 views)

Last edited by ncomerci; 21-08-2022 at 15:17. Reason: x64 binary was outdated, included newly compiled one
Reply With Quote
The Following 10 Users Say Thank You to ncomerci For This Useful Post:
Balaji007 (04-09-2022), BLACKFIRE69 (16-08-2022), ffmla (16-08-2022), Gehrman (16-08-2022), kj911 (10-12-2022), Lord.Freddy (15-08-2022), Masquerade (15-08-2022), Razor12911 (16-08-2022), ScOOt3r (16-08-2022), Vladislav989 (09-09-2022)
Sponsored Links