Installation Guide
This guide will walk you through installing the Ultimate Media Downloader on your system. Whether you are using macOS, Linux, or Windows, this document covers everything you need to get started.
Prerequisites
Before installing, make sure you have the following software on your system.
Required Software
| Software | Minimum Version | Purpose |
|---|---|---|
| Python | 3.9 or higher | Core runtime for the application |
| pip | Latest | Python package manager |
| Git | Any recent version | Cloning the repository |
Recommended Software
| Software | Purpose |
|---|---|
| FFmpeg | Processing audio and video files |
| pipx | Clean isolated installation |
Checking Your System
Run these commands to check if you have the prerequisites:
# Check Python version
python3 --version
# Check pip
pip3 --version
# Check Git
git --version
# Check FFmpeg (optional but recommended)
ffmpeg -version
If any of these are missing, follow the instructions in the next section for your operating system.
Quick Installation
The fastest way to install is using the provided scripts.
On macOS and Linux
# Clone the repository
git clone https://codeberg.org/nk2552003/umd.git
# Enter the directory
cd umd
# Run the install script
./scripts/setup.sh
On Windows
:: Clone the repository
git clone https://codeberg.org/nk2552003/umd.git
:: Enter the directory
cd umd
:: Run the install script
scripts\setup.bat
After installation, you can use the tool from anywhere with the umd command:
umd --help
Installation by Platform
macOS Installation
Step 1: Install Homebrew (if not installed)
Homebrew is a package manager for macOS that makes installing software easy.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2: Install Prerequisites
# Install Python
brew install python@3.11
# Install FFmpeg
brew install ffmpeg
# Install pipx for clean package installation
brew install pipx
pipx ensurepath
Step 3: Install Ultimate Media Downloader
# Clone the repository
git clone https://codeberg.org/nk2552003/umd.git
cd umd
# Run the installer
./scripts/setup.sh
Step 4: Update PATH (if needed)
If the umd command is not found after installation, add the Python bin directory to your PATH:
echo 'export PATH="$PATH:$HOME/Library/Python/3.11/bin"' >> ~/.zshrc
source ~/.zshrc
Linux Installation (Ubuntu/Debian)
Step 1: Update Package Lists
sudo apt update
Step 2: Install Prerequisites
# Install Python and pip
sudo apt install -y python3 python3-pip python3-venv
# Install Git
sudo apt install -y git
# Install FFmpeg
sudo apt install -y ffmpeg
Step 3: Install pipx (Recommended)
# Install pipx
python3 -m pip install --user pipx
python3 -m pipx ensurepath
# Restart your terminal or run
source ~/.bashrc
Step 4: Install Ultimate Media Downloader
# Clone the repository
git clone https://codeberg.org/nk2552003/umd.git
cd umd
# Run the installer
./scripts/setup.sh
Step 5: Update PATH (if needed)
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
source ~/.bashrc
Windows Installation
Step 1: Install Python
- Download Python from python.org
- Run the installer
- Check the box that says "Add Python to PATH"
- Click "Install Now"
Step 2: Install Git
- Download Git from git-scm.com
- Run the installer with default options
Step 3: Install FFmpeg
Option A: Using Chocolatey (if you have it)
choco install ffmpeg
Option B: Manual Installation
- Download FFmpeg from ffmpeg.org
- Extract to
C:\ffmpeg - Add
C:\ffmpeg\binto your system PATH
Step 4: Install Ultimate Media Downloader
Open Command Prompt or PowerShell:
:: Clone the repository
git clone https://codeberg.org/nk2552003/umd.git
:: Enter the directory
cd umd
:: Run the installer
scripts\setup.bat
Alternative Installation Methods
Method 1: Using pip Directly
If you prefer not to use pipx, you can install with pip:
git clone https://codeberg.org/nk2552003/umd.git
cd umd
pip3 install -e .
Method 2: Using Virtual Environment
For a completely isolated installation:
# Clone the repository
git clone https://codeberg.org/nk2552003/umd.git
cd umd
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run the application
python ultimate_downloader.py --help
Method 3: Using pipx Manually
# Install pipx if not installed
pip install --user pipx
pipx ensurepath
# Clone and install
git clone https://codeberg.org/nk2552003/umd.git
cd umd
pipx install -e .
Verifying Installation
After installation, run these commands to verify everything is working:
# Check version
umd --version
# Show help
umd --help
# Test with a video (shows info without downloading)
umd "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --info
Expected Output
When you run umd --help, you should see output similar to:
usage: umd [-h] [-q QUALITY] [-a] [-f FORMAT] [-o OUTPUT] ...
Ultimate Multi-Platform Media Downloader
A powerful, feature-rich downloader supporting many platforms including
YouTube, Spotify, Instagram, TikTok, SoundCloud, Apple Music, JioSaavn, and more!
Troubleshooting
Common Issues
Issue: "command not found: umd"
The umd command is not in your PATH.
Solution:
# macOS
echo 'export PATH="$PATH:$HOME/Library/Python/3.11/bin"' >> ~/.zshrc
source ~/.zshrc
# Linux
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
source ~/.bashrc
Issue: "No module named 'yt_dlp'"
Dependencies were not installed correctly.
Solution:
pip3 install -r requirements.txt
Issue: "FFmpeg not found"
FFmpeg is required for audio/video processing.
Solution:
# macOS
brew install ffmpeg
# Ubuntu/Debian
sudo apt install ffmpeg
# Windows (with Chocolatey)
choco install ffmpeg
Issue: SSL Certificate Errors
Some platforms have SSL issues.
Solution: The application handles this automatically, but you can also try:
pip3 install --upgrade certifi
Issue: "Permission denied" on Linux/macOS
The install script does not have execute permission.
Solution:
chmod +x scripts/install.sh
./scripts/install.sh
Getting Help
If you encounter issues not covered here:
- Check the Issues
- Run with verbose mode for more details:
umd --verbose "URL" - Create a new issue with the error message and your system information
Uninstallation
Using the Uninstall Script
# macOS/Linux
./scripts/uninstall.sh
# Windows
scripts\uninstall.bat
Manual Uninstallation
If you installed with pipx:
pipx uninstall ultimate-downloader
If you installed with pip:
pip3 uninstall ultimate-downloader
To remove the cloned directory:
rm -rf umd
Cleaning Up Downloads
The default download location is:
~/Downloads/UltimateDownloader/
You can remove this folder to clean up downloaded files.
Post-Installation Configuration
Optional: Set Up Spotify API
For better Spotify metadata extraction:
- Go to Spotify Developer Dashboard
- Create a new application
- Get your Client ID and Client Secret
- Set environment variables:
export SPOTIFY_CLIENT_ID="your_client_id"
export SPOTIFY_CLIENT_SECRET="your_client_secret"
Add these to your shell profile (.zshrc or .bashrc) to make them permanent.
Optional: Configure Download Directory
Edit config.json in the installation directory to change the default download location:
{
"download": {
"output_dir": "/your/custom/path"
}
}
Or use the --output flag when running commands:
umd "URL" --output /path/to/downloads
Summary
You now have the Ultimate Media Downloader installed on your system. The installation process:
- Installed Python dependencies
- Set up the
umdcommand globally - Configured the default download directory
For usage instructions, see the Usage Guide.
For architecture details, see the Architecture Documentation.