Questions tagged [lzma]

Lempel–Ziv–Markov chain Algorithm is an compression algorithm which uses a dictionary compression. Is a default 7-zip algorithm.

Lempel–Ziv–Markov chain Algorithm is an compression algorithm which uses a dictionary compression. Is a default 7-zip algorithm.

More about LZMA at Wikipedia article on LZMA

233 questions
10
votes
2 answers

How does the LZMA compression method work?

I need to know details about LZMA compression algorithm. I know its general concept, but I need some examples explaining it in detail. Can anybody please help me to get more information? Thank you.
Shadi
  • 649
  • 3
  • 15
  • 30
9
votes
1 answer

How to decompress lzma2 (.xz) and zstd (.zst) files into a folder using Python 3?

I have been working for a long time with .bz2 files. To unpack/decompress .bz2 files into a specific folder I have been using the following function: destination_folder = 'unpacked/' def decompress_bz2_to_folder(input_file): unpackedfile =…
Aventinus
  • 1,322
  • 2
  • 15
  • 33
9
votes
5 answers

Is there a library available for compression in Javascript

I am looking for sending data from server in a compressed format to client(with ajax requests), and than decompress that data with a browser? Is there a library for this? I am not looking for compressing javascript files! EDIT: I think question was…
gkaykck
  • 2,347
  • 10
  • 35
  • 52
9
votes
1 answer

Installation of R 3.3.1 in Red Hat. LZMA version >=5.0.3 required

I am installing R 3.3.1 from source. During ./configure --enable-R-shlib execution, error pops up: checking for lzma_version_number in -llzma... yes checking lzma.h usability... yes checking lzma.h presence... yes checking for lzma.h... yes checking…
j1897
  • 1,507
  • 5
  • 21
  • 41
9
votes
2 answers

Issues with compression in javascript

I have an object I am trying to compress. It is of the form [ { array string }, { array string }, ... ] The arrays are no more than 10-15 in length, extremely small in comparison to the strings (they are html, roughly 170k…
Peter P
  • 289
  • 1
  • 5
  • 17
9
votes
3 answers

How to use LZMA SDK in C++?

i have difficulties in using LZMA SDK in my application. I would like to create a kind of single file compression tool. I dont need any directory support, just need only the LZMA2 stream. But i have no idea on how LZMA SDK is to be used for…
salim_aliya
  • 253
  • 2
  • 3
  • 14
9
votes
3 answers

How to create zip with lzma compression

I know how to create zip archive: import java.io.*; import java.util.zip.*; public class ZipCreateExample{ public static void main(String[] args) throws Exception // input file FileInputStream in = new…
hudi
  • 15,555
  • 47
  • 142
  • 246
8
votes
3 answers

LzmaLib: compress / decompress buffer in C

I'm trying to use LzmaLib's LzmaCompress() and LzmaDecompress() with buffers, adapting the examples provided here. I'm testing with a ~3MB buffer and the compression function seems to work fine (produces a ~1.2MB compressed buffer), but when I try…
karliwson
  • 3,365
  • 1
  • 24
  • 46
8
votes
2 answers

How to open and read LZMA file in-memory

I have a giant file, let's call it one-csv-file.xz. It is an XZ-compressed CSV file. How can I open and parse through the file without first decompressing it to disk? What if the file is, for example, 100 GB? Python cannot read all of that into…
Totes McGoats
  • 111
  • 1
  • 3
7
votes
1 answer

Iterate a large .xz file line by line in python

I have a large .xz file (few gigabytes). It's full of plain text. I want to process the text to create custom dataset. I want to read it line by line because it is too big. Anyone have an idea how to do it ? I already tried this How to open and read…
Andrej Hucko
  • 510
  • 1
  • 5
  • 15
7
votes
1 answer

Decompressing LZMA with PHP

I have a load of SWF files compressed with LZMA that I would like to programatically decompress and read with PHP on my server. Can someone direct me to a PHP LZMA SDK? I've googled for it, but have so far found nothing but references to a broken…
hedgehog90
  • 1,402
  • 19
  • 37
6
votes
3 answers

Reverse Engineering: How do I identify an unknown compression method?

I'm with a group of modders attempting to reverse engineer and mod a Blu-Ray player. We're stuck because the firmware code seems to be compressed, and the decompression code is nowhere to be found. Presumably, the decompression is handled by…
tank
6
votes
2 answers

How to enable LZMA compression in Flash Player 11?

As mentioned in release notes to Flash Player 11, developers added LZMA compression support. Question is how can one enable this support? Maybe there's an mxmlc option? Or more steps? Simply setting -swf-version=13 and switching playerglobal.swc in…
moropus
  • 3,672
  • 1
  • 22
  • 30
6
votes
0 answers

Is there any pure PHP implementation of LZMA

So I'm building a web app to decompress an LZMA compressed CSV file and then let the user edit it, when saved it will be recompressed. I have the code to compress/decompress in C# using the 7-Zip LZMA SDK, but with my hosting plan I can't use exec()…
Undersc0re
  • 302
  • 2
  • 7
6
votes
1 answer

LZMA compression settings details

I really need to know what each lzma parameter (mf, fb, lp, ...) means. I could not find any good documentation in the internet. I need details of this algorithm. the most detailed one is: http://www.bugaco.com/7zip/MANUAL/switches/method.htm I…
Shadi
  • 649
  • 3
  • 15
  • 30
1
2
3
15 16