Is it possible to create a 7z file from a zip file on the fly, without first extracting everything to hard disk? The other way (7z -> zip) should be possible too.
If this does not require a lot of coding, I would give it a try.
This is what I would use it for: a lot of huge games distribute quite a lot of zip files in them (renamed to pak, e.g. Far Cry has 2,72 GB of such files). When compressing FarCry, 7z could repack the .pak files as zip, and when decompressing recreate the zip files again. Of course this zip files will not be identical to the original ones, but in this case it does not matter. What matters is that compression would be a lot better.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To convert anything to anything first requires it to be converted to raw data, aka uncompressing it first, then recompressing it with the output system.
Certain things might already be uncompressed so that you don't have to convert it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i know, but if the encoder/decoders are stream based, it would work in the unix way:
cat test.tar.gz | gzip -d |bzip2 >test.tar.bz2
this decompresses a gz file, and recompresses it into a bz2 file without needing to store the uncompressed data onto the hard disk.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Repacking archived files I think is a great idea, though I am not much concerned with how much disk space the decompressed files take up. Nearly every installer for Windows comes with .cab or .zip files. Those made for distribution via CD often have a minimal compression ratio to speed up installation from fast media.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
such a convertion would be a really useful featue
the best would be batch convertion by gui
so i could shrink my down.loaded files in a few minutes by a lot of MB
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also PowerArchiver, which is regularly improved, has batch 7zip creation and converts selected archives to another supported format, like 7zip, with and without rightclick.
PA features advanced GUI options that would be nice in 7zip later.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to create a 7z file from a zip file on the fly, without first extracting everything to hard disk? The other way (7z -> zip) should be possible too.
If this does not require a lot of coding, I would give it a try.
This is what I would use it for: a lot of huge games distribute quite a lot of zip files in them (renamed to pak, e.g. Far Cry has 2,72 GB of such files). When compressing FarCry, 7z could repack the .pak files as zip, and when decompressing recreate the zip files again. Of course this zip files will not be identical to the original ones, but in this case it does not matter. What matters is that compression would be a lot better.
To convert anything to anything first requires it to be converted to raw data, aka uncompressing it first, then recompressing it with the output system.
Certain things might already be uncompressed so that you don't have to convert it.
i know, but if the encoder/decoders are stream based, it would work in the unix way:
cat test.tar.gz | gzip -d |bzip2 >test.tar.bz2
this decompresses a gz file, and recompresses it into a bz2 file without needing to store the uncompressed data onto the hard disk.
Repacking archived files I think is a great idea, though I am not much concerned with how much disk space the decompressed files take up. Nearly every installer for Windows comes with .cab or .zip files. Those made for distribution via CD often have a minimal compression ratio to speed up installation from fast media.
such a convertion would be a really useful featue
the best would be batch convertion by gui
so i could shrink my down.loaded files in a few minutes by a lot of MB
>> cat test.tar.gz | gzip -d |bzip2 >test.tar.bz2
Using 7zip, you can do this too :
7za x -so archive.zip | 7za a -si archive.7z
But of course, it works if you have only ONE file in the archive, as the extracted data is 1 single stream.
There is already a program to open .PAK files, its called PakScape
--Sean
IZarc does these conversions on the right mouse button.
Cam
Also PowerArchiver, which is regularly improved, has batch 7zip creation and converts selected archives to another supported format, like 7zip, with and without rightclick.
PA features advanced GUI options that would be nice in 7zip later.