What Beets Is
You have music files — a few hundred or a few tens of thousands — and the collection has drifted. Filenames are whatever the ripping program of the year chose. Tags disagree with each other and with the folder names. The same album appears twice under two spellings, and your player dutifully shows two artists where a human sees one. Finding anything means remembering which mess it fell into.
Beets is a librarian for music
files. It does not play music, and
it does not download it. It reads the
tags — the name-and-address labels
stored inside each audio file:
artist, album, title, track number,
year, genre — and builds a small
database from them, one record per
track and one per album. Then it does
the thing no player bothers to do: it
files the music itself into a
folder layout built from those tags,
Artist/Album/01 Title.mp3 by
default, so the collection on disk
looks the way the collection in the
database says it should. From then
on, the database is how you talk to
the library: you ask it questions
(beet ls), you correct it
(beet modify), and it keeps the
tags in the files and the names of
the files in step with your answers.
That is the whole mental model:
your files' tags --import--> the database
the database --move----> the folder tree
the database --write---> the tags, kept honest
Nothing in the loop listens to the audio. Beets is a tool about information about music, which is why it is fast, why it works the same for a tone poem and a three-second tone, and why its famous feature has the catch described below.
The two imports
Everything enters through one command,
beet import, which comes in two
flavours.
As-is import (beet import -A)
trusts the tags your files already
have. It reads them, records them,
and files the music accordingly. No
network, no proposals, no questions.
This is the mode for a collection
that is mostly right and needs
organising — and it is the mode this
guide's lab used for its main library
(transcript t02-first-import-asis.txt).
Autotagging import (plain
beet import) treats your tags as a
rumour and checks them against
MusicBrainz, the community-run
open encyclopedia of recorded music.
For each album it proposes the
canonical artist, album title, track
list, year and more, shows you the
differences, and — with your approval —
rewrites the tags and files everything
under the corrected information. This
is the mode that can rescue a folder
of track01.mp3s. Chapter 7 explains
how the matching works and where it
can mislead, because it can: the
matcher compares tags and track
lengths, never sound.
A first taste
With a config file in place (chapter 4), importing and asking a question look like this:
beet import -A ~/incoming
beet ls artist:"The Lab Tones"
The Lab Tones - First Experiments - Sine Wave Sunrise
The Lab Tones - First Experiments - Triangle at Noon
The Lab Tones - First Experiments - Quiet Static
Those are the lab's own fixture albums; yours will answer with your own artists. The point is the shape: plain commands, plain answers, and a library that now responds to questions instead of being browsed folder by folder.
The honesty line, early
Beets organises music you already have. It neither knows nor asks where a file came from, and this guide follows the same rule — the fixtures are generated tones with invented names, and nothing here is about obtaining music. One more boundary matters and belongs in chapter 1, not a footnote: autotagging sends an album's artist and title strings and its track lengths to MusicBrainz over the network. That is a small, deliberate disclosure — names and numbers, never audio — and chapter 4's as-is mode avoids it entirely if you would rather nothing left the machine.
Who it is for
The collector whose library outgrew its folders. The re-ripper working through a shelf of CDs who wants each rip filed identically. The DJ or broadcaster who needs to ask a library questions — every track from a year, every album by an artist, in a format a script can read. The common thread is a library big enough that folders stopped being a system, and an owner who would rather fix a tag once than rename files forever.
What it is not
Beets is not a player and not a server: when the filing is done, you still listen through something else — chapter 11 introduces the servers in this series that stream exactly the kind of tidy library beets makes. It is not a tag guesser for files with no information at all: autotagging needs something to match on. And it is not gentle magic — it is a database with opinions, and chapter 12 is plain about the places those opinions chafe, including album records that refuse to merge and a matcher that has never heard a note.