title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Dynamic CLI for Wavpack here, trying to figure out one for OptimFROG

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lynx_TWO
    dBpoweramp Enthusiast

    • Aug 2009
    • 84

    Dynamic CLI for Wavpack here, trying to figure out one for OptimFROG

    Hello!

    After extension reading and testing, I have generated a dynamic CLI for the new Wavpack 4.80 codec. I do have a couple issues that happen though.

    This is my first attempt at a dynamic CLI so if there are any improvements to be made let me know and I'll make them! I used my Google-fu on this so definitely not an expert...

    1. In using the hybrid mode, the correction file gets deleted unless I use the -x switch, and even then the correction file does not get named as the source file - it stays with an 8-character name.

    2. I can't figure out why checking Asymmetric encoding works if entered into the command line manually but wont work if simply checking the box

    3. Is there a switch that will tell dBpoweramp to put the command line used into a tag embedded in the file? Currently I have this done manually as you can see...

    4. I can not get Stdpipe to work with this, it always has to create a temp file, which, honestly is not a big deal...

    Thank you in advance for your time!

    Code:
    [codec]
    .wv
    wavpack.exe
    
    [msgifnoencoder]
    Before using this encoder WavPack Win64 (for 64-bit Windows) must first be downloaded from http://www.wavpack.com/downloads.html .
    
    [image]
    167
    50
    WavePack.bmp
    yes
    no
    
    [label]
    0
    2
    Mode:
    
    [radio&slider]
    4
    36
    292
    1
    26
    0
    Lossless
    
    13
    Encode Profile: Fast (fast, lowest compression ratio)
    -f -m -v -w "Lossless=WavPack v4.80 (-f -m -v -w)" 
    Encode Profile: High (better compression)
    --optimize-mono -h -m -v -w "Lossless=WavPack v4.80 (--optimize-mono -h -m -v -w)" 
    Encode Profile: Very High (best compression, slowest to encode)
    --optimize-mono -hh -m -v -w "Lossless=WavPack v4.80 (--optimize-mono -hh -m -v -w)" 
    [/sliderend]
    70
    0
    Hybrid Mode (Correction File)
    
    8
    24 Kbps (min)
    --optimize-mono -c -b24 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b24 -hh -x6 -m -n -v -w)" 
    48 Kbps
    --optimize-mono -c -b48 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b48 -hh -x6 -m -n -v -w)" 
    56 Kbps
    --optimize-mono -c -b56 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b56 -hh -x6 -m -n -v -w)" 
    64 Kbps
    --optimize-mono -c -b64 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b64 -hh -x6 -m -n -v -w)" 
    80 Kbps
    --optimize-mono -c -b80 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b80 -hh -x6 -m -n -v -w)" 
    96 Kbps
    --optimize-mono -c -b96 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b96 -hh -x6 -m -n -v -w)" 
    128 Kbps
    --optimize-mono -c -b128 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b128 -hh -x6 -m -n -v -w)" 
    144 Kbps
    --optimize-mono -x6 -c -b144 -hh -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b144 -hh -x6 -m -n -v -w)" 
    160 Kbps
    --optimize-mono -c -b160 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b160 -hh -x6 -m -n -v -w)" 
    192 Kbps (min for CD)
    --optimize-mono -c -b192 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b192 -hh -x6 -m -n -v -w)" 
    224 Kbps
    --optimize-mono -c -b224 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b224 -hh -x6 -m -n -v -w)" 
    256 Kbps
    --optimize-mono -c -b256 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b256 -hh -x6 -m -n -v -w)" 
    320 Kbps
    --optimize-mono -c -b320 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b320 -hh -x6 -m -n -v -w)" 
    386 Kbps
    --optimize-mono -c -b386 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b386 -hh -x6 -m -n -v -w)" 
    480 Kbps (bitrate for AC3 DVD)
    --optimize-mono -c -b480 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b480 -hh -x6 -m -n -v -w)" 
    640 Kbps (bitrate for AC3 Bluray)
    --optimize-mono -c -b600 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b640 -hh -x6 -m -n -v -w)" 
    1411 Kbps (CD bitrate)
    --optimize-mono -c -b1411 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b1411 -hh -x6 -m -n -v -w)" 
    2116 Kbps (bitrate for 24-bit 44.1khz)
    --optimize-mono -c -b2116 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b2116 -hh -x6 -m -n -v -w)" 
    2304 Kbps (bitrate for 24-bit 48khz)
    --optimize-mono -c -b2304 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b2304 -hh -x6 -m -n -v -w)" 
    4233 Kbps (bitrate for 24-bit 88.2khz)
    --optimize-mono -c -b4233 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b4233 -hh -x6 -m -n -v -w)" 
    4608 Kbps (bitrate for 24-bit 96khz)
    --optimize-mono -c -b4608 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b4608 -hh -x6 -m -n -v -w)" 
    8467 Kbps (bitrate for 24-bit 176.4khz)
    --optimize-mono -c -b8467 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b8467 -hh -x6 -m -n -v -w)" 
    9216 Kbps (bitrate for 24-bit 192khz)
    --optimize-mono -c -b9216 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b9216 -hh -x6 -m -n -v -w)" 
    9600 Kbps (max)
    --optimize-mono -c -b9600 -hh -x6 -m -n -v -w "Encoder=WavPack v4.80 Hybrid (--optimize-mono -c -b9600 -hh -x6 -m -n -v -w)" 
    [/sliderend]
    180
    0
    Lossy (Not Recommended)
    
    8
    LOSSY! - 24 Kbps (min)
    --optimize-mono -b24 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b24 -hh -x6 -m -v -w)" 
    LOSSY! - 48 Kbps
    --optimize-mono -b48 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b48 -hh -x6 -m -v -w)" 
    LOSSY! - 56 Kbps
    --optimize-mono -b56 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b56 -hh -x6 -m -v -w)" 
    LOSSY! - 64 Kbps
    --optimize-mono -b64 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b64 -hh -x6 -m -v -w)" 
    LOSSY! - 80 Kbps
    --optimize-mono -b80 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b80 -hh -x6 -m -v -w)" 
    LOSSY! - 96 Kbps
    --optimize-mono -b96 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b96 -hh -x6 -m -v -w)" 
    LOSSY! - 128 Kbps
    --optimize-mono -b128 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b128 -hh -x6 -m -v -w)" 
    LOSSY! - 144 Kbps
    --optimize-mono -b144 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b144 -hh -x6 -m -v -w)" 
    LOSSY! - 160 Kbps
    --optimize-mono -b160 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b160 -hh -x6 -m -v -w)" 
    LOSSY! - 192 Kbps (min for CD)
    --optimize-mono -b192 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b192 -hh -x6 -m -v -w)" 
    LOSSY! - 224 Kbps
    --optimize-mono -b224 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b224 -hh -x6 -m -v -w)" 
    LOSSY! - 256 Kbps
    --optimize-mono -b256 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b256 -hh -x6 -m -v -w)" 
    LOSSY! - 320 Kbps
    --optimize-mono -b320 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b320 -hh -x6 -m -v -w)" 
    LOSSY! - 386 Kbps
    --optimize-mono -b386 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b386 -hh -x6 -m -v -w)" 
    LOSSY! - 480 Kbps (bitrate for AC3 DVD)
    --optimize-mono -b480 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b480 -hh -x6 -m -v -w)" 
    LOSSY! - 640 Kbps (bitrate for AC3 Bluray)
    --optimize-mono -b600 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b640 -hh -x6 -m -v -w)" 
    LOSSY! - 1411 Kbps (CD bitrate)
    --optimize-mono -b1411 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b1411 -hh -x6 -m -v -w)" 
    LOSSY! - 2116 Kbps (bitrate for 24-bit 44.1khz)
    --optimize-mono -b2116 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b2116 -hh -x6 -m -v -w)" 
    LOSSY! - 2304 Kbps (bitrate for 24-bit 48khz)
    --optimize-mono -b2304 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b2304 -hh -x6 -m -v -w)" 
    LOSSY! - 4233 Kbps (bitrate for 24-bit 88.2khz)
    --optimize-mono -b4233 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b4233 -hh -x6 -m -v -w)" 
    LOSSY! - 4608 Kbps (bitrate for 24-bit 96khz)
    --optimize-mono -b4608 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b4608 -hh -x6 -m -v -w)" 
    LOSSY! - 8467 Kbps (bitrate for 24-bit 176.4khz)
    --optimize-mono -b8467 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b8467 -hh -x6 -m -v -w)" 
    LOSSY! - 9216 Kbps (bitrate for 24-bit 192khz)
    --optimize-mono -b9216 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b9216 -hh -x6 -m -v -w)" 
    LOSSY! - 9600 Kbps (max)
    --optimize-mono -b9600 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b9600 -hh -x6 -m -v -w)" 
    [/sliderend]
    
    
    [disablecheckbox]
    30
    14
    0
     Asymmetric Compression
    -x6 
    -x6 
    
    [disablecheckbox]
    130
    14
    0
     Optimum Blocksize (better compression)
    --blocksize=16 --merge-blocks 
    --blocksize=16 --merge-blocks 
    
    [label]
    10
    55
    Least Compression
    808080
    
    [label]
    235
    55
    Most Compression
    808080
    
    
    [clistring]
    "[infile]" "[outfile]"
    
    [highestqualitydecode]
    
    
    [minfreq]
    8000
    
    [maxfreq]
    192000
    
    [maxchannels]
    8
    
    [helpbutton]
    283
    0
    C:\Program Files\dBpoweramp\encoder\CLI Encoder\wavpack_doc.html
    
    [estimatesize]
    -f -m -v -w "Lossless=WavPack v4.80 (-f -m -v -w)" 
    780226
    --optimize-mono -h -m -v -w "Lossless=WavPack v4.80 (--optimize-mono -h -m -v -w)" 
    722432
    --optimize-mono -hh -m -v -w "Lossless=WavPack v4.80 (--optimize-mono -hh -m -v -w)" 
    679086
    --optimize-mono -b24 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b24 -hh -x6 -m -v -w)" 
    24576
    --optimize-mono -b48 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b48 -hh -x6 -m -v -w)" 
    49152
    --optimize-mono -b56 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b56 -hh -x6 -m -v -w)" 
    57344
    --optimize-mono -b64 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b64 -hh -x6 -m -v -w)" 
    65536
    --optimize-mono -b80 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b80 -hh -x6 -m -v -w)" 
    81920
    --optimize-mono -b96 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b96 -hh -x6 -m -v -w)" 
    98304
    --optimize-mono -b128 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b128 -hh -x6 -m -v -w)" 
    131072
    --optimize-mono -b144 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b144 -hh -x6 -m -v -w)" 
    147456
    --optimize-mono -b160 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b160 -hh -x6 -m -v -w)" 
    163840
    --optimize-mono -b192 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b192 -hh -x6 -m -v -w)" 
    196608
    --optimize-mono -b224 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b224 -hh -x6 -m -v -w)" 
    229376
    --optimize-mono -b256 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b256 -hh -x6 -m -v -w)" 
    262144
    --optimize-mono -b320 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b320 -hh -x6 -m -v -w)" 
    327680
    --optimize-mono -b386 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b386 -hh -x6 -m -v -w)" 
    395264
    --optimize-mono -b480 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b480 -hh -x6 -m -v -w)" 
    491520
    --optimize-mono -b600 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b640 -hh -x6 -m -v -w)" 
    614400
    --optimize-mono -b1411 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b1411 -hh -x6 -m -v -w)" 
    1444864
    --optimize-mono -b2116 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b2116 -hh -x6 -m -v -w)" 
    2166784
    --optimize-mono -b2304 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b2304 -hh -x6 -m -v -w)" 
    2359296
    --optimize-mono -b4233 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b4233 -hh -x6 -m -v -w)" 
    4334592
    --optimize-mono -b4608 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b4608 -hh -x6 -m -v -w)" 
    4718592
    --optimize-mono -b8467 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b8467 -hh -x6 -m -v -w)" 
    8670208
    --optimize-mono -b9216 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b9216 -hh -x6 -m -v -w)" 
    9437184
    --optimize-mono -b9600 -hh -x6 -m -v -w "Encoder=WavPack v4.80 LOSSY (--optimize-mono -b9600 -hh -x6 -m -v -w)" 
    9830400
Working...

]]>