caudec is a BASH script for macOS and Linux that can transcode supported audio files using multiple CPU cores, as well as resample and / or downmix to stereo if needed. ReplayGain is supported for certain codecs only (see README.md and HELP.md).
https://github.com/gcocatre/caudec
Here's a 10+ years refresh of caudec to reflect advances in certain codecs, as well as my own usage and setup. I have:
- removed:
- old software and Windows or Linux only software: TAK, Flake, Musepack, qaac, WaveGain, Nero AAC stuff (encoder, decoder, tagger)
- the creation of ramdisks, because internal and external SSDs are more than fast enough these days
- the ability to delete source files (too dangerous)
- testing the integrity of files using hashes previously computed by caudec (internal codec testing, still available, is enough)
- fixed a lot of bugs
- added some features:
- multi-threading for FLAC, WavPack and Monkey's Audio
- ReplayGain for Opus
- hard linking lossy WavPack Hybrid .wv files into their own root directory
- "touching" files by setting their date/time using audio metadata and duration
- embedding user-specified artwork into FLAC, anything APEv2, MP3, Opus, m4a (AAC / ALAC)
- copying non-audio files to the destination directory (all, lists of files and or lists of file extensions)
- setting default destination directories (default, lossless, lossy) in the configuration file
Please note that I have not touched the Linux specific parts and I have not yet tested the new version on Linux, as I have been using macOS since the last 2014 update (version 1.7.6).
I have reached a state where I feel confident enough to publish the new version. However, more testing needs to be done. Use at your own risk. Make sure you have a backup of your music collection stored somewhere safe.
Comments, remarks, questions, are most welcome.