View Single Post
  #1  
Old 28-07-2016, 11:48
averanted averanted is offline
Registered User
 
Join Date: Jul 2016
Location: tunnel
Posts: 3
Thanks: 4
Thanked 1 Time in 1 Post
averanted is on a distinguished road
Need help with opus and freearc

Hello guys I have a problem.
I am trying to compress wav files with opusenc and arc.
Compression process works fine but when I try to decompress it, freearc keeps extracting the file again and again and never stops.
I used this command to compress my wav:
Code:
arc a -mopus out.bin file.wav
and to decompress it:
Code:
arc x out.bin
my arc.ini file
Quote:
[External compressorpus]
header = 0
packcmd = opusenc {option} --bitrate 320.000 --comp 10 --quiet --framesize 60 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = opusdec $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:flac]
header = 0
packcmd = flac {option} -f -8 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
unpackcmd = flac {option} -d -o$$arcdatafile$$.tmp $$arcpackedfile$$.tmp
Output from cmd:
Compression
Quote:
D:\Test\inno\Compressor v1.2.0\Include>arc a -mopus out.bin file.wav
FreeArc 0.67 (November 12 2011) updating archive: out.bin
Compressing 1 file, 40,355,660 bytes. Processed 0%
Compressing 40,355,660 bytes with opusenc --bitrate 320.000 --comp 10 --quiet -
-framesize 60 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
100%
Errorlevel=0
Compressed 1 file, 40,355,660 => 9,325,308 bytes. Ratio 23.1%
Compression time: cpu 0.62 secs, real 13.51 secs. Speed 2,988 kB/s
All OK
decompression:
Quote:
FreeArc 0.67 (November 12 2011) extracting archive: out.bin
Extracting 1 file, 40,355,660 bytes. Processed 0%
Unpacking 9,325,308 bytes with opusdec $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

Decoding to 44100 Hz (2 channels)
Encoded with libopus 1.1
ENCODER=opusenc from opus-tools 0.1.9
ENCODER_OPTIONS=--bitrate 320.000 --comp 10 --quiet --framesize 60
Decoding complete.

Errorlevel=0

Unpacking 9,325,308 bytes with opusdec $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

Decoding to 44100 Hz (2 channels)
Encoded with libopus 1.1
ENCODER=opusenc from opus-tools 0.1.9
ENCODER_OPTIONS=--bitrate 320.000 --comp 10 --quiet --framesize 60
Decoding complete.

Errorlevel=0

Unpacking 9,325,308 bytes with opusdec $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

Decoding to 44100 Hz (2 channels)
Encoded with libopus 1.1
ENCODER=opusenc from opus-tools 0.1.9
ENCODER_OPTIONS=--bitrate 320.000 --comp 10 --quiet --framesize 60
[\] 00:00:36
Errorlevel=-1073741510

ERROR: can't close file (null)
I pressed Ctrl+C to stop it.

With flac and it worked fine.
Compression:
Quote:
D:\Test\inno\Compressor v1.2.0\Include>arc a -mflac out.bin file.wav
FreeArc 0.67 (November 12 2011) creating archive: out.bin
Compressing 1 file, 40,355,660 bytes. Processed 0%
Compressing 40,355,660 bytes with flac -f -8 -o$$arcpackedfile$$.tmp $$arcdataf
ile$$.tmp

flac 1.3.1, Copyright (C) 2000-2009 Josh Coalson, 2011-2014 Xiph.Org Foundatio
n
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.

100%$$arcdatafile$$.tmp: wrote 23359691 bytes, ratio=0.579

Errorlevel=0
Compressed 1 file, 40,355,660 => 23,359,691 bytes. Ratio 57.8%
Compression time: cpu 0.59 secs, real 6.34 secs. Speed 6,368 kB/s
All OK
decompression:
Quote:
D:\Test\inno\Compressor v1.2.0\Include>arc x out.bin
FreeArc 0.67 (November 12 2011) extracting archive: out.bin
Extracting 1 file, 40,355,660 bytes. Processed 0%
Unpacking 23,359,691 bytes with flac -d -o$$arcdatafile$$.tmp $$arcpackedfile$$
.tmp

flac 1.3.1, Copyright (C) 2000-2009 Josh Coalson, 2011-2014 Xiph.Org Foundatio
n
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.

$$arcpackedfile$$.tmp: done

Errorlevel=0
Extracted 1 file, 23,359,691 => 40,355,660 bytes. Ratio 57.8%
Extraction time: cpu 0.72 secs, real 2.03 secs. Speed 19,869 kB/s
All OK
I think I know why it works for flac but not for opus.
opus's output is lossy but arc is trying to get the original wav file which is not possible.

Is there a way to stop arc after first attempt.

Sorry if all this is stupid, but I just came to know about arc.ini is and what it does.
Reply With Quote
The Following User Says Thank You to averanted For This Useful Post:
1234567890123 (29-07-2016)
Sponsored Links