Sync FLAC music files to Ogg Vorbis (or keep lossy as-is)
brutha is an answer to the utter failure of sound conversion tools.
It will flawlessly transcode lossless files or copy lossy files, to a provided directory, with a “synchronization” behavior.
By carefully keeping the files’ timestamps, it also allows that destination to be easily rsynced elsewhere, and thus avoid any useless transfers.
Due to the usage of formats with Ogg containers, no tags are lost in the process of converting FLAC to Ogg Vorbis.
Since transcoding requires a lot of CPU time, it is useful to run as many jobs as possible in parallel. brutha will try to make use of powerful, time-tested tools (either GNU make, GNU parallel, or similar implementations) to do so. It’s not perfect but good enough while keeping it simple.
To our knowledge, no other solution can fully:
To sum up, brutha is a music converter tailored to audiophiles, who want to convert their huge collections to more portable destinations, with the highest quality/size ratio in mind.
brutha is very simple and rests on the shoulders on giants: FLAC, Ogg Vorbis, sox, Python, mutagen, GNU Make, GNU Parallel, Bash, etc.
The first one is space. Since you can store locally all the source files, we suppose you also can store the smaller destination files locally. Alternatively, you will be able to sync to a portable player, a remote filesystem (NFS, sshfs, etc.) without issues except lower performance.
brutha [options] SOURCE DESTINATION
brutha -h provides help for all available options.
You can run python -m brutha to use it without installing.
brutha tries to detect how many cores you have (run brutha -h to check the default for -j). It also tries to use a parallel method (make or parallel instead of sh) if available.
By default, it does not run or delete anything; when you are experienced with its usage, you will likely call it with -x (execute) and -d (delete).
A typical use would be:
brutha -d -x -q6 -R44100 -B16 ~/Music /mnt/portable_music_player/Music
This downsamples music to 16/44 as most portable players don’t handle 24/96 well (-R44100 -B16), encodes FLAC to Ogg at a reasonable quality (-q6), deletes old unwanted files (-d), and executes the commands right away (-x).
Since encoding eats a lot of CPU, you should start it at a low priority. The simplest way is to run nice -n19 brutha instead of only brutha.
brutha is considered feature-complete. Python 3 support is waiting for mutagen.
If you want to help, here are some possibilities:
Contributions can be sent in the form of git patches, to email@example.com.