Demucs Guide

Split a song

You have a song file. You want four files, one for each part. This page gets you there once Demucs is installed.

  1. Find your song. Any common audio file works. The official README lists wav, flac, mp3, ogg and aac, and says other formats work if ffmpeg is installed. We ran an mp3 with no ffmpeg on our machine and it worked.

  2. Open a terminal in the folder with the song. If you are not sure how, open the terminal first and use cd to move into the folder. For example, cd Music moves into a folder called Music.

  3. Run Demucs on the file. Put the file name in quotes if it has spaces. This is the whole command:

    demucs "my favorite track.mp3"

    If you installed Demucs with uvx instead, use this instead: uvx --python 3.12 --with numpy demucs "my favorite track.mp3". The --with numpy part is explained on the Fixes page.

  4. Wait. The first run downloads the model, so it takes longer. You will see progress bars. When a new line appears, it is done.

  5. Open the output folder. It is called separated and sits in the folder where you ran the command.

What you get

The official README says the files go in separated/MODEL_NAME/TRACK_NAME, as four stereo wav files at 44.1 kHz. With the default model, htdemucs, and a song called my favorite track.mp3, that looks like this:

separated/
  htdemucs/
    my favorite track/
      vocals.wav
      drums.wav
      bass.wav
      other.wav

We saw the same layout on our Linux test run (we picked the output folder with -o out, so ours was out/htdemucs/your-song/).

To open the folder from the terminal: on Windows type explorer separated (from the official Windows page). On a Mac, open separated does it. On Linux, use your file manager.

Vocals

The singing voice.

Drums

The drum kit.

Bass

The bass line.

Other

Everything else in the song.

Make a karaoke track

Add --two-stems=vocals. The README calls this karaoke mode: you get the vocals on one side and everything else on the other.

demucs --two-stems=vocals "my favorite track.mp3"

The README says this is not faster and does not use less memory. Demucs still separates the whole song first, then mixes the parts together. You can use drums or bass in place of vocals.

Practise along

Open the four files in any audio editor or music player that can load several tracks. Mute the stem you play, for example bass.wav, and play along with the rest. The editor is up to you. Audacity is a free one.

What to do with the stems

Only use songs you are allowed to use that way. This guide does not cover that.

A few options

These come from the official README. The models page covers -n.

--mp3
Save the stems as mp3 files instead of wav.
-d cpu
Use the normal processor instead of a graphics card.
--segment SEGMENT
Cut the song into shorter pieces to use less memory. See Fixes.
-o FOLDER
Write the output to a folder you name, instead of separated. Our Linux test used this.

Full list: Separating tracks in the official README.