mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-08 05:27:04 +00:00
Wav problem #272
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @easly1989 on GitHub (Jan 30, 2018).
Hello there,
Trying to Unzip this -> https://github.com/anoyetta/ACT.Hojoring/releases/download/v4.0.12/ACT.Hojoring-v4.0.12.7z
I get several errors for every *.wav file it is trying to extract.
The error is: Not supported Method specified (translated from: Specifiato metodo non supportato)
The stack is:
The code I use to extract is:
`
using (var archive = ArchiveFactory.Open(zip))
{
var archiveEntries = archive.Entries.Where(x => !x.IsDirectory && !x.IsEncrypted).ToArray();
var count = 1;
foreach (var entry in archiveEntries)
{
try
{
var value = (100 * count) / archiveEntries.Length;
Console.Write($"\r{installText} {value}%");
count++;
`
All the other files gets estracted without any problem.
Any help?
@adamhathcock commented on GitHub (Jan 31, 2018):
Honestly, I'm not sure off the top of my head. If the LZMA decoder doesn't like wav files I'm not sure how to fix that.
Ugh, I hate the 7Zip format.
@easly1989 commented on GitHub (Jan 31, 2018):
maybe i'm just doing something wrong.
If you, or someone else, would like to try and unzip that file (the link in the OT)
maybe you can come up with a solution (or just find out i'm the one messing up)
Thank you for the answer btw
@ghost commented on GitHub (Feb 20, 2018):
@easly1989 you are not doing anything wrong; WAV files appear to compress using the
FILTER_DELTAflag, which is not supported by the current implementation in SharpCompress (inCompressors\LZMA\Registry.CreateDecoderStream, the switch case fork_Deltafalls through to the exception you are seeing).@adamhathcock at some point 7zip started automatically detecting sub-blocks that would be good candidates for having the delta filter applied. This filter reorders the bytes being loaded by some offset, as can be seen from the C code 7zip is based on. The delta state size is set as
#define DELTA_STATE_SIZE 256.It is late where I'm at, so I may just be tired, but I believe this mirrors some of the logic found in
LzBinTreein the LZMA SDK.