CLI tool for searching YouTube/YTMusic and downloading audio/video from 1000+ platforms
Project description
fm-dlp — Download from YouTube, YTMusic, and 1000+ sites
CLI tool for searching YouTube/YTMusic and downloading audio/video from 1000+ platforms
🚀 Quick Start
pip install fm-dlp # Python 3.10+ & FFmpeg required
fm-dlp config ~/Music # Set download directory
fm-dlp search "artist" # Search tracks
fm-dlp download "URL" --codec flac # Download audio
🌈 Color Output
By default, fm-dlp uses colored output for better readability. To disable colors globally, use the --no-color flag before the command:
fm-dlp --no-color search "artist"
fm-dlp --no-color download "URL"
fm-dlp --no-color config ~/Music
📋 Commands
search
Search for music tracks, albums, or videos on YouTube/YTMusic.
fm-dlp search <query> [--limit LIMIT] [--yt-video] [--album] [--raw] [--only-url]
| Option | Default | Description |
|---|---|---|
query |
Required | Search query string |
--limit N, -l |
10 |
Maximum number of results to return |
--yt-video, -v |
False |
Search for YouTube videos instead of music tracks |
--album, -a |
False |
Search for albums instead of individual tracks |
--raw, -r |
False |
Output results in raw format (Python dict representation) |
--only-url, -u |
False |
Output only the URLs without any formatting |
download
Download audio or video content from supported platforms (YouTube, YTMusic, and 1000+ sites).
fm-dlp download <urls> [--codec CODEC] [--kbps KBPS] [--quality QUALITY] [--jobs JOBS] [--quiet] [--no-metadata] [--keep] [--save] [--path PATH] [--only-video] [--cookies COOKIES]
| Option | Default | Description |
|---|---|---|
urls |
Required | Single URL, comma/space-separated list, or path to text file with URLs (one per line, # for comments) |
--codec, -c |
m4a (macOS)opus (others) |
Audio: mp3, aac, flac, m4a, opus, vorbis, wav, alacVideo: mp4, mov, mkv, webm, avi, flv |
--kbps, -K |
256 |
Audio bitrate in kbps (64–320). Higher = better quality, larger file |
--quality, -Q |
best |
Video quality preset: best, worst, 2160p, 1440p, 1080p, 720p, 480p, 360p, 240p, 144p, or custom height (e.g., 720) |
--jobs, -j |
5 |
Maximum number of concurrent downloads for faster batch processing |
--quiet, -q |
False |
Suppress yt-dlp output messages (errors still shown) |
--no-metadata |
False |
Disable embedding metadata (title, artist, album) and thumbnail into audio files |
--keep |
False |
Keep the original downloaded file after conversion/post-processing. Useful when you want to retain both the original and converted versions (e.g., keep source video when extracting audio). |
--save, -s |
False |
Saving settings (except URL) |
--use-config, -u |
False |
Use saved parameters from config file as defaults |
--path, -p |
Configured path | Custom download directory (overrides default config) |
--only-video, -v |
False |
Download video file without audio track |
--cookies, -C |
None |
Browser name: brave, chrome, chromium, edge, opera, vivaldi, whale, firefox, safariOr path to cookies file ( .txt, .sqlite, .db, .cookies) |
Audio Codec Details:
- Lossy:
mp3(universal),aac(Apple),m4a(Apple),opus(modern web) - smaller files - Lossless:
flac(high quality),wav(uncompressed),alac(Apple lossless) - larger files - Recommended:
opusfor best quality/size ratio,flacfor archival
Video Container Details:
mp4- Most compatible, usesm4aaudiomkv- Open format, usesopusaudiowebm- Web optimized, usesopusaudiomov- Apple format, usesm4aaudioavi- Legacy Windows, usesmp3audioflv- Flash video, usesaacaudio
config
Configure the default download directory path.
fm-dlp config <path>
| Option | Default | Description |
|---|---|---|
path |
Required | Default directory path for downloads. Use absolute path for best results (e.g., /home/user/Music or C:\Music) |
Config Location:
- Windows:
%LOCALAPPDATA%/fm-dlp/config.json - macOS:
~/Library/Application Support/fm-dlp/config.json - Linux:
~/.config/fm-dlp/config.json
⚙️ Requirements
- Python 3.10+ - Asyncio support required
- FFmpeg - Required for audio/video processing. Install via:
- macOS:
brew install ffmpeg - Linux:
sudo apt install ffmpeg(Debian) orsudo dnf install ffmpeg(Fedora) - Windows: Download from ffmpeg.org and add to PATH
- macOS:
📄 License & Acknowledgments
GPLv3 License — Built with:
| Library | Purpose |
|---|---|
| yt-dlp | Download engine supporting 1000+ sites |
| ytmusicapi | YouTube Music search API |
| mutagen | Metadata tagging for audio files |
Author: Fkernel653
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fm_dlp-4.4.2.tar.gz.
File metadata
- Download URL: fm_dlp-4.4.2.tar.gz
- Upload date:
- Size: 43.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af0a6053acf413d79e8593320da439dfff39b50a5e520363f1cdd019a13c6d5
|
|
| MD5 |
c5055a545786296e5693bb1de2ad064a
|
|
| BLAKE2b-256 |
63b8aec13d1c88ca2139f2e343fe7f284b4243d82ed4c8da392c2a343181e422
|
File details
Details for the file fm_dlp-4.4.2-py3-none-any.whl.
File metadata
- Download URL: fm_dlp-4.4.2-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3020375f8f2205ed59b87fd25139a6038daf3fa1bed79c5725c9c9207679e8bc
|
|
| MD5 |
e1494b6a81a6422c512cc9b887c80350
|
|
| BLAKE2b-256 |
696be24b431790923f15b096a6fd73a96223782fad9271d82d6b668fbc43f342
|