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

217 questions
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,110
  • 18
  • 45
8
votes
2 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
  • 243
  • 1
  • 3
  • 13
8
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
  • 13,245
  • 40
  • 125
  • 230
7
votes
4 answers

Python decompression relative performance?

TLDR; Of the various compression algorithms available in python gzip, bz2, lzma, etc, which has the best decompression performance? Full discussion: Python 3 has various modules for compressing/decompressing data including gzip, bz2 and lzma. gzip…
ibrewster
  • 2,972
  • 3
  • 29
  • 48
7
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,019
  • 1
  • 12
  • 29
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,142
  • 16
  • 31
7
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
  • 101
  • 1
  • 3
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,294
  • 1
  • 19
  • 30
6
votes
2 answers

Problem with creating an environment from .yml file, error "CondaEnvException: Pip failed" raised

I am trying to create an environment based on a .yml file, the name of the file is env.yml . I run the following snippet on terminal: conda env create -f env.yml Then anaconda starts installing all packages outlined in the .yml file, until it…
6
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…
Andrej Hucko
  • 420
  • 4
  • 14
6
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,297
  • 3
  • 15
  • 36
6
votes
2 answers

Python 2.7: Compressing data with the XZ format using the "lzma" module

I'm experimenting with the lzma module in Python 2.7.6 to see if I could create compressed files using the XZ format for a future project that will make use of it. My code used during the experiment was: import lzma as xz in_file =…
ki2ne
  • 78
  • 1
  • 1
  • 7
5
votes
1 answer

Mimic 7zip with python

I am using Python 3.6, and currently I subprocess out to my 7zip program to get the compression I need. subprocess.call('7z a -t7z -ms=off {0} *'.format(filename)) I know the zipfile class has ‘ZIP_LZMA’ compression, but the application I am passing…
JabberJabber
  • 115
  • 12
5
votes
1 answer

extract 7z file using python 3

I was trying to decompress a 7z file using python, but I can't seem to figure it out. I figured I could use the lzma module in python 3, but I can't seem to figure it out: I thought it would work like the zipfile package: import lzma with…
code base 5000
  • 2,892
  • 8
  • 37
  • 62
1
2
3
14 15