muc

Music collection tools for transcoding and cleanup.

Extra: uv tool install buvis-gems[muc]

Configuration

Setting

Default

Description

limit_flac_bitrate

1411000

Target bitrate (bps)

limit_flac_bit_depth

16

Target bit depth

limit_flac_sampling_rate

44100

Target sampling rate (Hz)

tidy_junk_extensions

.cue .db .jpg .lrc .m3u .md .nfo .png .sfv .txt .url

File extensions to remove during tidy

Commands

muc limit

Transcode FLAC files to target spec (CD quality by default).

muc limit ~/music/hi-res-album/
muc limit ~/music/hi-res-album/ -o ~/music/transcoded/

Options:

  • -o, --output TEXT — output directory (default: ./transcoded)

muc tidy

Clean up a music directory: merge macOS metadata, normalize extensions, remove junk files, delete empty directories.

Reports every completed rename, metadata merge, file deletion and empty-directory removal through the standard console. Filesystem failures and metadata files that could not be merged produce warnings; tidy continues with the remaining items. Warnings alone do not change the exit status (0). Actions and warnings are also available to programmatic callers in CommandResult.info and CommandResult.warnings.

muc tidy ~/music/album/
muc tidy ~/music/album/ -y     # skip confirmation

Options:

  • -y, --yes — skip confirmation prompt