← 返回
未分类 中文

Music Seperator (Demucs)

Separate vocals and instrument stems from audio files with Demucs CLI. Use when the user asks for vocal extraction, accompaniment generation, stem splitting,...
使用 Demucs CLI 将音频文件中的 vocals 与乐器音轨分离。用于用户请求提取人声、生成伴奏、拆分音轨等场景。
chinesemisaka chinesemisaka 来源
未分类 clawhub v1.0.1 1 版本 99742.9 Key: 无需
★ 0
Stars
📥 388
下载
💾 0
安装
1
版本
#latest

概述

Demucs

Use demucs to split music into stems (default: vocals, drums, bass, other).

Quick start

  • Help: demucs --help
  • Basic split: demucs "input.mp3"
  • Output dir: demucs "input.mp3" -o "D:\\output"
  • Vocals only pair: demucs "input.mp3" --two-stems vocals

Prerequisites

  • Demucs available: demucs --help or absolute path like D:\demucs-agent-tool\venv\Scripts\demucs.exe --help.
  • FFmpeg available: ffmpeg -version must succeed.
  • Note: ffmpeg-python is only a Python wrapper and does not install ffmpeg.exe.

Common options

  • Model: -n htdemucs (default) or other installed model names.
  • Device: -d cuda or -d cpu.
  • Chunking: --segment 8 --overlap 0.25 to reduce VRAM/RAM pressure.
  • No chunking: --no-split for short audio with enough memory.
  • Equivariant shifts: --shifts 1..10 (higher quality, slower).
  • Parallel jobs: -j 2 (or more on strong CPUs).

Output format

  • Default output is WAV.
  • FLAC: demucs "input.mp3" --flac
  • MP3: demucs "input.mp3" --mp3 --mp3-bitrate 320 --mp3-preset 2
  • Safer clipping behavior: --clip-mode rescale (default) or --clip-mode clamp.

Naming and folder layout

  • Default output path pattern: separated///..
  • Customize names: --filename "{track}/{stem}.{ext}".
  • Variables supported: {track}, {trackext}, {stem}, {ext}.

Batch usage

  • Multiple files in one call: demucs "a.mp3" "b.wav" "c.flac" -o "D:\\separated".
  • Prefer absolute paths for automation scripts and scheduled jobs.

Windows notes

  • In venv, executable is usually venv\\Scripts\\demucs.exe.
  • Use quoted paths when spaces exist: demucs "D:\\My Music\\song.mp3".
  • For external programs, prefer absolute executable path instead of shell activation.
  • If non-ASCII paths cause tool/runtime issues, copy input to a temporary ASCII path and run Demucs there.

Troubleshooting

  • demucs not found: run python -m demucs --help or call venv\\Scripts\\demucs.exe directly.
  • FFmpeg is not installed / ffprobe not found: install FFmpeg and add it to PATH, then verify with ffmpeg -version.
  • Out of memory: lower --segment (for example 6 or 4), set -d cpu, or process fewer tracks at once.
  • Slow speed on CPU: reduce --shifts, keep chunking enabled, and tune -j.
  • Install/network failures: use a stable mirror and longer timeout when running pip.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 08:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 131 📥 52,583
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 424 📥 116,029
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 329 📥 92,661