Update: Nov 15/26

From ripped WAV to completed codec

Using your cd ripper, create a WAV file. All process below is done in a RAM disk, files only written to disk at completion. Ram disk unnecesary for process, saves disk writes.

e:\bird\waveclip %1 %2 z.wav
e:\bird\cdburn\wav2cdr --towav --fadeout 80 z.wav -w 9
ren 9.01 y.wav

Can use any software that fades an audio file. Command line best for batch mode.

Waveclip %1=Wav file %2=time length.
use --fadein, --fadeout 80 equals a second in time. -w adds to beginning of temporary file name.

Result:
e:\bird\waveclip file.wav :3-4:26.50 z.wav

Cut file at 3 seconds, end at 4 minutes 26 and half seconds. File z.wav is time edited!

z.wav with 1 second fadeout renamed to y.wav. Choose Y or Z and rename to original WAV. Delete the other. Wav2cdr can also cut either end of file.


Next is to Deglitch or remove damaged samples. Sometimes none, typical 10 samples or less. The most was 63. Windoze tool Odin/Wine functions.

d:\odin\system32\pec d:\odin\system32\deglitch -y %1

Using Shibatch tool normalize volume to 1.1 decibel below maximum. -twopass likely unnecessary.

ssrc --att 1.1db --twopass --normalize %1 z.wav

Sox tool modify pitch from 440hz to 432hz.

sox z.wav %1 pitch -.3176665363342928


File ready for encoding. First is Musepack

d:\odin\system32\pec d:\odin\system32\mpcenc --silent --quality 5.35 %1

Removed --silent parameter to show statistic.

Result:

MPC Encoder 1.30.0 --stable-- (C) 1999-2009 Buschmann/Klemm/Piecha/MDT
Built Feb 26 2009 20:33:36

 encoding file 'file.wav'
       to file 'file.mpc'

 SV 8, Profile 'Standard'

    %|avg.bitrate| speed|play time (proc/tot)| CPU time (proc/tot)| ETA
100.0  186.7 kbps 18.66x     3:59.0    3:59.0     0:12.8    0:12.8

Finally, Monkey Audio APE is created, temporary files cleaned up.

mac %1 %1.ape -c4000
ren *.wav.ape *.ape
del z.wav

--- Monkey's Audio Console Front End (v 3.99) (c) Matthew T. Ashland ---
Compressing (extra high)...
Progress: 100.0% (0.0 seconds remaining, 19.1 seconds total)
Success...

Result:
file.ape 30538104
file.mpc 5576579
file.wav 42159648

Musepack for play, Monkey's Audio to archive

Other settings

You will find songs where the volume is outside normal, too low typical from the 1970's or latest songs too loud. Normalize can not adjust enough. Solution is manually adjust volume by using:
e:\bird\cdburn\wav2cdr --towav --fscale %2 %1 -w 9
ren 9.01 z.wav
:: range .7 to 1.7, .85 for lower typically sufficient

Parameter %2 is scale adjust, %1 is file name. You can add the --fadeout parameter. Usually 1950-1960 era is normal, 1970's quiet, 1980-2000's regular, 2010-onward has some crazy loud files.

Audio files that are only spoken word can be created exceptionally small and sound acceptable. Use Ogg Vorbis with:
oggenc -q1.4 --resample 12000 --downmix -o file.ogg file.wav

Vorbis quality range is -q-1 -q0 to -q10. Can use any number including decimal points. You could have -q3.78 if desired. -q1.4 equals approximately 25 kbps, 12000 is hz, downmix is mono. All you need with tiny file size.


LossyWav to lossless encoder

Very interesting project. LossyWav is a pre-processor. It scans file in blocks of 512, finds unused bits, marks as "wasted bit". Next, use a lossless encoder that will recognize "wasted". Most desirable codecs are: Tak, Flac and WavPack.
(16 bit / 44.1kHz)
lossyWAV Test Codec lossless insane  extreme high    standard economic portable extraportable
10 Album Test FLAC  854kbps  627kbps 548kbps 477kbps 442kbps  407kbps  353kbps  311 kbps

As the list above displays, can have as much lossless/lossy as desired. -Insane not recomended, -Extreme is favoured for lossless, -Standard or -Economic for better lossy. File size with -Extreme lossless about 30% less. Significant. With all the encoders, use the parameter to set block size at 512 to match LossyWav. Otherwise the small file size is not achieved. Flac works, Flake ignores wasted bits same size as normal.

Some caveats: since WavPack can be lossy, better to use it's routine for smaller lossy files. Great for lossless though. As usual TAK compresses the most, is the speed king, and uses the least CPU cycles.

If using -High or -Extreme parameter, easily transcode to any other codec with same sound. Is bit-identical to a WAV file? No! Will you ever hear a difference? Doubtful on any hardware as wasted bits are just that. Wasted!

If concerned about bit identical WAV, LossyWav has the feature to create a correction file. Merge the 2 files back to an original WAV.


Freac lovely GUI for encoding almost any format

This page is at: http://wisdomtree.info/mmedia/encoding.htm Edit: Apr 14/26

Enjoy your musical experience! The sound is more important than numbers on a test.