FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Helping thread :) (https://fileforums.com/showthread.php?t=98274)

felice2011 10-10-2017 12:02

Quote:

Originally Posted by Andu21 (Post 463009)
Hi guys, i'm testing xz 5.2.1 and i'm having a hard time in making it work with freearc. I'm using these parameters:

Code:

[External compressor:xz]
packcmd  = xz.exe -9 -v -c <stdin> <stdout>
unpackcmd = xz.exe -d -c <stdin> <stdout>

It achieves 99~100% but at the end shows this error:
Code:

ERROR: general (de)compression error in xz
Any clues?

Code:

Usage: xz [OPTION]... [FILE]...
Compress or decompress FILEs in the .xz format.

Mandatory arguments to long options are mandatory for short options too.

 Operation mode:

  -z, --compress      force compression
  -d, --decompress    force decompression
  -t, --test          test compressed file integrity
  -l, --list          list information about .xz files

 Operation modifiers:

  -k, --keep          keep (don't delete) input files
  -f, --force        force overwrite of output file and (de)compress links
  -c, --stdout        write to standard output and don't delete input files
      --single-stream decompress only the first stream, and silently
                      ignore possible remaining input data
      --no-sparse    do not create sparse files when decompressing
  -S, --suffix=.SUF  use the suffix `.SUF' on compressed files
      --files[=FILE]  read filenames to process from FILE; if FILE is
                      omitted, filenames are read from the standard input;
                      filenames must be terminated with the newline character

      --files0[=FILE] like --files but use the null character as terminator

 Basic file format and compression options:

  -F, --format=FMT    file format to encode or decode; possible values are
                      `auto' (default), `xz', `lzma', and `raw'
  -C, --check=CHECK  integrity check type: `none' (use with caution),
                      `crc32', `crc64' (default), or `sha256'
      --ignore-check  don't verify the integrity check when decompressing
  -0 ... -9          compression preset; default is 6; take compressor *and*
                      decompressor memory usage into account before using 7-9!
  -e, --extreme      try to improve compression ratio by using more CPU time;
                      does not affect decompressor memory requirements
  -T, --threads=NUM  use at most NUM threads; the default is 1; set to 0
                      to use as many threads as there are processor cores
      --block-size=SIZE
                      start a new .xz block after every SIZE bytes of input;
                      use this to set the block size for threaded compression
      --block-list=SIZES
                      start a new .xz block after the given comma-separated
                      intervals of uncompressed data
      --flush-timeout=TIMEOUT
                      when compressing, if more than TIMEOUT milliseconds has
                      passed since the previous flush and reading more input
                      would block, all pending data is flushed out
      --memlimit-compress=LIMIT
      --memlimit-decompress=LIMIT
  -M, --memlimit=LIMIT
                      set memory usage limit for compression, decompression,
                      or both; LIMIT is in bytes, % of RAM, or 0 for defaults
      --no-adjust    if compression settings exceed the memory usage limit,
                      give an error instead of adjusting the settings downwards

 Custom filter chain for compression (alternative for using presets):

  --lzma1[=OPTS]      LZMA1 or LZMA2; OPTS is a comma-separated list of zero or
  --lzma2[=OPTS]      more of the following options (valid values; default):
                        preset=PRE reset options to a preset (0-9[e])
                        dict=NUM  dictionary size (4KiB - 1536MiB; 8MiB)
                        lc=NUM    number of literal context bits (0-4; 3)
                        lp=NUM    number of literal position bits (0-4; 0)
                        pb=NUM    number of position bits (0-4; 2)
                        mode=MODE  compression mode (fast, normal; normal)
                        nice=NUM  nice length of a match (2-273; 64)
                        mf=NAME    match finder (hc3, hc4, bt2, bt3, bt4; bt4)
                        depth=NUM  maximum search depth; 0=automatic (default)

  --x86[=OPTS]        x86 BCJ filter (32-bit and 64-bit)
  --powerpc[=OPTS]    PowerPC BCJ filter (big endian only)
  --ia64[=OPTS]      IA-64 (Itanium) BCJ filter
  --arm[=OPTS]        ARM BCJ filter (little endian only)
  --armthumb[=OPTS]  ARM-Thumb BCJ filter (little endian only)
  --sparc[=OPTS]      SPARC BCJ filter
                      Valid OPTS for all BCJ filters:
                        start=NUM  start offset for conversions (default=0)

  --delta[=OPTS]      Delta filter; valid OPTS (valid values; default):
                        dist=NUM  distance between bytes being subtracted
                                  from each other (1-256; 1)

 Other options:

  -q, --quiet        suppress warnings; specify twice to suppress errors too
  -v, --verbose      be verbose; specify twice for even more verbose
  -Q, --no-warn      make warnings not affect the exit status
      --robot        use machine-parsable messages (useful for scripts)

      --info-memory  display the total amount of RAM and the currently active
                      memory usage limits, and exit
  -h, --help          display the short help (lists only the basic options)
  -H, --long-help    display this long help and exit
  -V, --version      display the version number and exit

With no FILE, or when FILE is -, read standard input.

Code:

[External compressor:xz]
packcmd  = xz -z -9 -T0 -M0 -v $$arcdatafile$$.tmp
unpackcmd = xz -d -v $$arcdatafile$$.tmp.xz
packedfile = $$arcdatafile$$.tmp.xz

;)

Andu21 10-10-2017 20:20

Thanks felice2011 it's working fine now. It's a shame stdio doesn't work properly.

linggar17x 29-10-2017 16:42

I extract game using quick bms and done. Then How to packing again the file after extracted?

Andu21 02-11-2017 07:30

Is there any gain in ratio by using different srep versions? Let's say by using 3.92 instead of the latest 3.93 beta?

PsYcHo_RaGE 21-03-2018 07:58

Help me with WPI
 
Hello Guyz its About Razors Original Script, I really appericiate that guy

so i am here because i am still a noob & don't try to laugh at me

Basically i want to add Music Button, About Button, Fonts, Video Trailer(Optional)

Don't tell me use modded versions because they are messed up with lots of bugs and i also don't want to messup with razors code, Help me please it will be appreciated.

Thanks:)

panker1992 21-03-2018 10:25

xz ~ with stdio capabilities
 
Quote:

Originally Posted by Andu21 (Post 463024)
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)

Andu21 21-03-2018 10:45

Thanks. i'll give it a try, this is esentially creating a xz archive through 7-Zip right?

Quote:

Originally Posted by panker1992 (Post 469424)
this combo does need ram so careful

Why not use radyx instead?

panker1992 21-03-2018 13:35

Quote:

Originally Posted by Andu21 (Post 469426)
Thanks. i'll give it a try, this is esentially creating a xz archive through 7-Zip right?


Why not use radyx instead?

i haven't tried radyx myself but its author said to achieve the ratio you get on xz/7z you need double the ram so...... radyx gives speed not good ratio unless you have a ram hungry machine

Andu21 21-03-2018 16:31

Alright i thought it was the other way around due to some improvements from zstd, less memory and same ratio.

rinaldo 22-03-2018 16:49

1 Attachment(s)
Quote:

PsYcHo_RaGE
Quote:

Music Button, About Button, Fonts, Video Trailer(Optional)
too many things together and can be done in 100 different ways (paradoxical but true) :eek:

Quote:

Don't tell me use modded versions because they are messed up with lots of bugs
then you'll have to learn the code yourself or adapt an existing one around the forum (I'll tell you that razor will make you a customized version) ;) :rolleyes:


Example =>

PsYcHo_RaGE 22-03-2018 22:14

Quote:

Originally Posted by rinaldo (Post 469510)
too many things together and can be done in 100 different ways (paradoxical but true) :eek:


then you'll have to learn the code yourself or adapt an existing one around the forum (I'll tell you that razor will make you a customized version) ;) :rolleyes:


Example =>

Can You Help Me, Okay i want to add music & About button only now so i can understand how to edit the script in a right manner.

Please if you are going to gimme a new script, gimme razors original script but with music button & about button working and nothing much more

and as you said about me, i am still learning and still a noob:rolleyes:

78372 22-03-2018 23:04

http://fileforums.com/showpost.php?p=433799&postcount=1

Check Update3 afair it has music button

rinaldo 23-03-2018 02:17

Quote:

PsYcHo_RaGE]
I gave you an example so that you can understand, without all that code that can distort you from your goal, I do not think you'll find better solution in the forum ;)

PsYcHo_RaGE 24-03-2018 01:31

Quote:

Originally Posted by 78372 (Post 469514)
http://fileforums.com/showpost.php?p=433799&postcount=1

Check Update3 afair it has music button

Bro i tried but hasn't music button included, am i doing anything wrong:confused:

PsYcHo_RaGE 24-03-2018 01:38

Quote:

Originally Posted by rinaldo (Post 469518)
I gave you an example so that you can understand, without all that code that can distort you from your goal, I do not think you'll find better solution in the forum ;)

I appericiate your help brother but if you can gimme that razors original script without changing anything other than music & about button :(

rinaldo 24-03-2018 06:56

but if you can gimme that razors original script :confused:

PsYcHo_RaGE 24-03-2018 22:16

Quote:

Originally Posted by rinaldo (Post 469554)
but if you can gimme that razors original script :confused:

You don't have it Really you are kidding me!:eek:

http://fileforums.com/showpost.php?p=433799&postcount=1

If you are going to modify it just add music & about button and please don't remove anything else, your help will be appreciated, Thanks

rinaldo 25-03-2018 07:29

I thought you wanted to learn Lol, but I misunderstood, you want someone to do the work for you ?

PsYcHo_RaGE 27-03-2018 22:17

Quote:

Originally Posted by rinaldo (Post 469582)
I thought you wanted to learn Lol, but I misunderstood, you want someone to do the work for you ?

yes i understand now, changed the big pieces of script after 2 days of Hardwork;) solutions at last i did it.


Thanks for your Help:D

kj911 11-04-2022 05:21

Incompressibble data block compress (CDM vs. any)
 
Available in last time the CLS-based and XP-compatible CDM compressor?? (see from encode.su forums, integrated to 7-Zip) aka called name, "CLS-CDM.dll" or more. Likely separate (de)compressor from compress incompressible data streams betterly than lzma(2) algo's. (Integrate to FreeArc/Installer usage.) Or any codec/compressors? Reliable fast, better than LZ4+LZP combo.


All times are GMT -7. The time now is 14:19.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com