Introduction
Installation
Stemgen is a Python CLI. Please make sure to have Python 3.9 or higher installed on your system. You also need Git.
Once you have Python and Git installed, you can download Stemgen:
git clone https://github.com/axeldelafosse/stemgen.git
Note
Some operating systems might be equipped with the python3 and pip3 commands instead of python and pip (but they should be equivalent). If you don’t have pip or pip3 available in your system, please check out the pip installation docs.
macOS
python3 -m pip install -U demucs
python3 -m pip install mutagen
brew install coreutils ffmpeg sox
Windows
python3 -m pip install -U demucs
python3 -m pip install mutagen
- Download
ffmpegfrom https://www.ffmpeg.org/download.html - Download
soxfrom https://sourceforge.net/projects/sox/files/sox - Add
ffmpegandsoxto your PATH
Note that you might need Microsoft C++ Build Tools for Demucs.
qaac
If you plan to encode in AAC, you should install qaac. Here is a quick guide:
- Download
qaacfrom https://github.com/nu774/qaac/releases - Move the content of
x64toC:\Program Files\qaac(orx86depending on your system) - Add
C:\Program Files\qaacto your PATH
Then, to use Audio Toolbox from Apple:
git clone https://github.com/nu774/makeportable.git
cd makeportable
- Download the iTunes installer from https://www.apple.com/itunes/download/win64
- Copy the iTunes installer to the
makeportablefolder
makeportable.cmd
- Copy the newly created folder
QTfiles64to yourC:\Program Files\qaacfolder
Then, to support FLAC files:
- Download FLAC from https://github.com/xiph/flac/releases
- Copy the
libFLAC.dllfile from theWin64folder (orWin32depending on your system) - Paste it in your
C:\Program Files\qaacfolder
Enjoy! You can now encode AAC stems with Apple Audio Toolbox, the highest quality AAC encoder.
Linux
python3 -m pip install -U demucs
python3 -m pip install mutagen
sudo apt install ffmpeg sox
If you plan to encode in AAC on Linux, you should consider installing ffmpeg with the --enable-libfdk-aac flag to use the highest quality AAC encoder.
You can use https://github.com/markus-perl/ffmpeg-build-script in order to do this easily.