Windows distribution: par2.exe

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
orangeboy
Newbie
Newbie
Posts: 18
Joined: November 28th, 2008, 2:17 pm

Windows distribution: par2.exe

Post by orangeboy »

Version: 0.6.15
OS: Windows Server 2003
Install-type: SABnzbd-0.6.15-win32-setup.exe
Skin (if applicable): N/A
Firewall Software: N/A
Are you using IPV6? N/A
Is the issue reproducible? yes

The (non-classic) par2 executable delivered with the Windows distribution appears to be broke. Attempting to use -t+ with the delivered executable failed miserably. Reviewing the par2.exe I had in my Windows %path% (downloaded in 2009 from who knows where), the versions are the same but the sizes are considerably different (the SABnzbd delivered copy has been renamed to "not.par2.exe"):

Code: Select all

Thu 02/23
 0:34:49=>dir "D:\Program Files\SABnzbd\win\par2\*par2.exe"
 Volume in drive D is Paging
 Volume Serial Number is 60BD-5B33

 Directory of D:\Program Files\SABnzbd\win\par2

12/09/2011  01:41 PM           423,936 not.par2.exe
09/30/2009  01:25 PM           171,520 par2.exe
               2 File(s)        595,456 bytes
Copying the %path% par2.exe into "\SABnzbd\win\par2\" allowed the desired post-processing to complete successfully. I discovered this with 0.6.14. After upgrading to 0.6.15, I found that SABnzbd was no longer downloading additional par files for missing or malformed downloaded files, and post-processing completely stopped. Realizing the upgrade had brought in the same (larger) par2.exe as before, I again replaced it with the (smaller) copy I already had. SABnzbd post-processing is behaving correctly once again.

Invocation of both executables, SABnzbd's delivered copy first:

Code: Select all

Thu 02/23
 0:09:32=>"D:\Program Files\SABnzbd\win\par2\not.par2.exe"
Not enough command line arguments.
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
Modifications for concurrent processing, Unicode support, and hierarchial
directory support are Copyright (c) 2007-2009 Vincent Tan.
Concurrent processing utilises Intel Thread Building Blocks 2.0,
Copyright (c) 2007-2008 Intel Corp.
Executing using the 32-bit x86 (IA32) instruction set.

par2cmdline comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version. See COPYING for details.


Usage:

  par2 c(reate) [options] <par2 file> [files] : Create PAR2 files
  par2 v(erify) [options] <par2 file> [files] : Verify files using PAR2 file
  par2 r(epair) [options] <par2 file> [files] : Repair files using PAR2 files

You may also leave out the "c", "v", and "r" commands by using "parcreate",
"par2verify", or "par2repair" instead.

Options:

  -b<n>  : Set the Block-Count
  -s<n>  : Set the Block-Size (Don't use both -b and -s)
  -r<n>  : Level of Redundancy (%)
  -c<n>  : Recovery block count (Don't use both -r and -c)
  -f<n>  : First Recovery-Block-Number
  -u     : Uniform recovery file sizes
  -l     : Limit size of recovery files (Don't use both -u and -l)
  -n<n>  : Number of recovery files (Don't use both -n and -l)
  -m<n>  : Memory (in MB) to use
  -v [-v]: Be more verbose
  -q [-q]: Be more quiet (-q -q gives silence)
  -t<+|0|->: Threaded processing. The options are:
     -t+ to checksum and create/repair concurrently - uses multiple threads - good for hard disk files - [default]
     -t0 to checksum serially but create/repair concurrently - good for slow media such as CDs/DVDs
     -t- to checksum/create/repair serially - uses a single thread - good for testing this program
  -d<dir>: root directory for paths to be put in par2 files OR root directory for files to repair from par2 files
  -0     : create dummy par2 files - for getting actual final par2 files sizes without doing any computing
  --     : Treat all


Thu 02/23
 0:23:06=>"D:\Program Files\SABnzbd\win\par2\par2.exe"
Not enough command line arguments.
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
Modifications for concurrent processing, Unicode support, and hierarchial
directory support are Copyright (c) 2007-2008 Vincent Tan.
Concurrent processing utilises Intel Thread Building Blocks 2.0,
Copyright (c) 2007-2008 Intel Corp.
Executing using the 32-bit x86 (IA32) instruction set.

par2cmdline comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version. See COPYING for details.


Usage:

  par2 c(reate) [options] <par2 file> [files] : Create PAR2 files
  par2 v(erify) [options] <par2 file> [files] : Verify files using PAR2 file
  par2 r(epair) [options] <par2 file> [files] : Repair files using PAR2 files

You may also leave out the "c", "v", and "r" commands by using "parcreate",
"par2verify", or "par2repair" instead.

Options:

  -b<n>  : Set the Block-Count
  -s<n>  : Set the Block-Size (Don't use both -b and -s)
  -r<n>  : Level of Redundancy (%)
  -c<n>  : Recovery block count (Don't use both -r and -c)
  -f<n>  : First Recovery-Block-Number
  -u     : Uniform recovery file sizes
  -l     : Limit size of recovery files (Don't use both -u and -l)
  -n<n>  : Number of recovery files (Don't use both -n and -l)
  -m<n>  : Memory (in MB) to use
  -v [-v]: Be more verbose
  -q [-q]: Be more quiet (-q -q gives silence)
  -t<+|0|->: Threaded processing. The options are:
     -t+ to checksum and create/repair concurrently - uses multiple threads - good for hard disk files - [default]
     -t0 to checksum serially but create/repair concurrently - good for slow media such as CDs/DVDs
     -t- to checksum/create/repair serially - uses a single thread - good for testing this program
  -d<dir>: root directory for paths to be put in par2 files OR root directory for files to repair from par2 files
  --     : Treat all remaining CommandLine as filenames

If you wish to create par2 files for a single source file, you may leave
out the name of the par2 file from the command line.
Post Reply