技能版本 1.0.0

bgm-library

Search, filter, and download royalty-free background music from ccMixter for Remotion videos. Supports keyword search, tag presets, license filtering (CC BY / CC BY-SA only), and auto-generates attribution. Downloads MP3 directly to project directory.

价格

免费

  • 安装:免费

在组织开通时一次性收取;再次读取清单或下载不重复收费。

以上为公开标价。你的组织可能有协议价,以控制台显示的价格为准。

如何使用

  1. 为组织安装

    开通即安装:组织固定使用开通时的版本(当前为 1.0.0)。升级到新版本需要取消后重新开通。

  2. 创建凭证

    客户端使用组织凭证读取;绑定到数字人后,数字人使用绑定凭证按需加载。请求中携带:

    Authorization: Bearer $ZGI_MARKET_KEY

  3. 读取清单与安装包

    清单列出版本、文件和校验值;安装包是一个 zip 文件。

    读取清单
    curl "https://market-api.zgi.im/v1/market/skills/bgm-library/manifest" \
      -H "Authorization: Bearer $ZGI_MARKET_KEY"
    下载安装包
    curl "https://market-api.zgi.im/v1/market/skills/bgm-library/package" \
      -H "Authorization: Bearer $ZGI_MARKET_KEY" \
      -o bgm-library.zip

    读取清单和下载安装包不计入用量。下载后请用响应头中的 SHA-256 校验文件。

技能说明

名称
bgm-library
说明
Search, filter, and download royalty-free background music from ccMixter for Remotion videos. Supports keyword search, tag presets, license filtering (CC BY / CC BY-SA only), and auto-generates attribution. Downloads MP3 directly to project directory.
会运行代码Node.js

技能包内含脚本文件,加载技能的运行时可能会执行它们,安装前请先阅读。

SKILL.md 节选

# BGM Library Skill

Search, filter, and download royalty-free background music from ccMixter for Remotion video projects.

## Features

- Search ccMixter by keywords or predefined tag presets
- License filtering: only CC BY and CC BY-SA (commercially safe)
- Direct MP3 download with automatic referer handling
- Auto-generates `music_manifest.json` and `ATTRIBUTION.txt`
- BPM, duration, and tag metadata for intelligent selection
- 5 built-in presets: travel, tech, lofi, food, workout

## Quick Start

```bash
# Search for chill background music
bgm search chill lofi

# Use a preset for travel vlog music
bgm search --preset travel

# Auto-pick and download the best match for your video theme
bgm pick "corporate product demo" --output ./public/

# Download a specific track by ID
bgm download 70473 --output ./public/

# List available presets
bgm presets

# Get detailed track info
bgm info 70473
```

## Installation

Before first use, install dependencies in the skill's scripts directory:

```bash
cd scripts && npm install
```

## Commands

### search `[keywords...]`
Search ccMixter for background music tracks.

Options:
- `-l, --limit <n>` — Max results (default: 10)
- `-p, --preset <name>` — Use a predefined tag preset
- `--commercial-only` / `--no-commercial-only` — License filter (default: on)
- `--sort <field>` — Sort by: date, name, score (default: score)

```bash
bgm search upbeat corporate --limit 5
bgm search --preset lofi
```

### download `<uploadId>`
Download a track by ccMixter upload ID.

Options:
- `-o, --output <dir>` — Output directory (default: `./public`)
- `--force` — Overwrite existing files

```bash
bgm download 70473 --output ./public/
```

### pick `<theme>`
Auto-pick and download the best match for a video theme.

Options:
- `-o, --output <dir>` — Output directory (default: `./public`)
- `-l, --limit <n>` — Candidates to evaluate (default: 5)
- `--force` — Overwrite existing files

```bash
bgm pick "chill lofi study" --output ./public/
bgm pick "energetic workout motivation" --output ./public/
```

### presets
List predefined tag presets for common video scenarios.

```bash
bgm presets
```

### info `<uploadId>`
Show detailed info about a track including license, BPM, duration, and files.

```bash
bgm info 70473
```

## Presets

| Preset   | Name              | Tags                                          |
|----------|-------------------|-----------------------------------------------|
| travel   | 旅行/Vlog         | upbeat, travel, vlog, vacation, summer         |
| tech     | 科技/产品         | corporate, technology, digital, modern         |
| lofi     | 咖啡馆/学习       | lofi, chill, study, cafe, downtempo            |
| food     | 美食/生活         | acoustic, cooking, lifestyle, warm, light      |
| workout  | 运动/健身         | workout, gym, sport, energy, edm               |

## Output Files

### Downloaded MP3
Saved to the specified output directory with the original filename.

### music_manifest.json
Tracks metadata for programmatic access:
```json
{
  "tracks": [
    {
      "upload_id": 70473,
      "title": "The Fade Out",
      "artist": "coruscate",
      "source_url": "https://ccmixter.org/files/Coruscate/70473",
      "license_name": "Attribution (3.0)",
      "license_url": "http://creativecommons.org/licenses/by/3.0/",
      "file_name": "Coruscate_-_The_Fade_Out.mp3",
      "bpm": 92,
      "duration": "3:05",
      "downloaded_at": "2026-02-09T12:00:00.000Z"
    }
  ]
}
```

### ATTRIBUTION.txt
Auto-generated attribution in TASL format (Title/Author/Source/License):
```
=== Music Attribution ===
"The Fade Out" by coruscate
  Source: https://ccmixter.org/files/Coruscate/70473
  License: Attribution (3.0) (http://creativecommons.org/licenses/by/3.0/)
```

## Remotion Usage

After downloading a track:

```tsx
import { Audio } from '@remotion/media';
import { staticFile } from 'remotion';

// Use the downloaded BGM in your composition
<Audio src={staticFile('Coruscate_-_The_Fade_Out.mp3')} volume={0.3} loop />
```

## License Filtering

SKILL.md 不止这些内容,安装后可阅读全文。

技能包内容

共 6 个文件,合计 45.2 KiB

  • README.md174 B
  • SKILL.md5.2 KiB
  • scripts/bgm.js16.0 KiB
  • scripts/downloader.js5.0 KiB
  • scripts/package-lock.json18.6 KiB
  • scripts/package.json318 B

来源与审核

审核状态
尚未审核,内容来自上游来源
许可证
未说明

审核状态是平台对上架信息的记录,不构成对上游服务质量或可用性的担保。