← 返回 Skills 市场
francemichaell-15

Background Music

作者 francemichaell-15 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
64
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install background-music
功能描述
add video files into music-backed videos with this skill. Works with MP4, MOV, AVI, WebM files up to 500MB. content creators use it for adding background mus...
使用说明 (SKILL.md)

Getting Started

Share your video files and I'll get started on AI music addition. Or just tell me what you're thinking.

Try saying:

  • "add my video files"
  • "export 1080p MP4"
  • "add calm background music that matches"

Getting Connected

Before handling any user request, establish a connection to the backend API. Show a brief status like "Connecting...".

If NEMO_TOKEN is in the environment, use it directly and create a session. Otherwise, acquire a free starter token:

  • Generate a UUID as client identifier
  • POST to https://mega-api-prod.nemovideo.ai/api/auth/anonymous-token with the X-Client-Id header
  • The response includes a token with 100 free credits valid for 7 days — use it as NEMO_TOKEN

Then create a session by POSTing to https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemo_agent with Bearer authorization and body {"task_name":"project","language":"en"}. The session_id in the response is needed for all following requests.

Tell the user you're ready. Keep the technical details out of the chat.

Background Music — Add Music to Your Videos

This tool takes your video files and runs AI music addition through a cloud rendering pipeline. You upload, describe what you want, and download the result.

Say you have a 2-minute travel vlog in MP4 format and want to add calm background music that matches the mood of my video — the backend processes it in about 30-60 seconds and hands you a 1080p MP4.

Tip: shorter clips allow the AI to match music tempo and mood more accurately.

Matching Input to Actions

User prompts referencing background music, aspect ratio, text overlays, or audio tracks get routed to the corresponding action via keyword and intent classification.

User says... Action Skip SSE?
"export" / "导出" / "download" / "send me the video" → §3.5 Export
"credits" / "积分" / "balance" / "余额" → §3.3 Credits
"status" / "状态" / "show tracks" → §3.4 State
"upload" / "上传" / user sends file → §3.2 Upload
Everything else (generate, edit, add BGM…) → §3.1 SSE

Cloud Render Pipeline Details

Each export job queues on a cloud GPU node that composites video layers, applies platform-spec compression (H.264, up to 1080x1920), and returns a download URL within 30-90 seconds. The session token carries render job IDs, so closing the tab before completion orphans the job.

Headers are derived from this file's YAML frontmatter. X-Skill-Source is background-music, X-Skill-Version comes from the version field, and X-Skill-Platform is detected from the install path (~/.clawhub/ = clawhub, ~/.cursor/skills/ = cursor, otherwise unknown).

Every API call needs Authorization: Bearer \x3CNEMO_TOKEN> plus the three attribution headers above. If any header is missing, exports return 402.

API base: https://mega-api-prod.nemovideo.ai

Create session: POST /api/tasks/me/with-session/nemo_agent — body {"task_name":"project","language":"\x3Clang>"} — returns task_id, session_id.

Send message (SSE): POST /run_sse — body {"app_name":"nemo_agent","user_id":"me","session_id":"\x3Csid>","new_message":{"parts":[{"text":"\x3Cmsg>"}]}} with Accept: text/event-stream. Max timeout: 15 minutes.

Upload: POST /api/upload-video/nemo_agent/me/\x3Csid> — file: multipart -F "files=@/path", or URL: {"urls":["\x3Curl>"],"source_type":"url"}

Credits: GET /api/credits/balance/simple — returns available, frozen, total

Session state: GET /api/state/nemo_agent/me/\x3Csid>/latest — key fields: data.state.draft, data.state.video_infos, data.state.generated_media

Export (free, no credits): POST /api/render/proxy/lambda — body {"id":"render_\x3Cts>","sessionId":"\x3Csid>","draft":\x3Cjson>,"output":{"format":"mp4","quality":"high"}}. Poll GET /api/render/proxy/lambda/\x3Cid> every 30s until status = completed. Download URL at output.url.

Supported formats: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.

Reading the SSE Stream

Text events go straight to the user (after GUI translation). Tool calls stay internal. Heartbeats and empty data: lines mean the backend is still working — show "⏳ Still working..." every 2 minutes.

About 30% of edit operations close the stream without any text. When that happens, poll /api/state to confirm the timeline changed, then tell the user what was updated.

Backend Response Translation

The backend assumes a GUI exists. Translate these into API actions:

Backend says You do
"click [button]" / "点击" Execute via API
"open [panel]" / "打开" Query session state
"drag/drop" / "拖拽" Send edit via SSE
"preview in timeline" Show track summary
"Export button" / "导出" Execute export workflow

Draft field mapping: t=tracks, tt=track type (0=video, 1=audio, 7=text), sg=segments, d=duration(ms), m=metadata.

Timeline (3 tracks): 1. Video: city timelapse (0-10s) 2. BGM: Lo-fi (0-10s, 35%) 3. Title: "Urban Dreams" (0-3s)

Error Codes

  • 0 — success, continue normally
  • 1001 — token expired or invalid; re-acquire via /api/auth/anonymous-token
  • 1002 — session not found; create a new one
  • 2001 — out of credits; anonymous users get a registration link with ?bind=\x3Cid>, registered users top up
  • 4001 — unsupported file type; show accepted formats
  • 4002 — file too large; suggest compressing or trimming
  • 400 — missing X-Client-Id; generate one and retry
  • 402 — free plan export blocked; not a credit issue, subscription tier
  • 429 — rate limited; wait 30s and retry once

Common Workflows

Quick edit: Upload → "add calm background music that matches the mood of my video" → Download MP4. Takes 30-60 seconds for a 30-second clip.

Batch style: Upload multiple files in one session. Process them one by one with different instructions. Each gets its own render.

Iterative: Start with a rough cut, preview the result, then refine. The session keeps your timeline state so you can keep tweaking.

Tips and Tricks

The backend processes faster when you're specific. Instead of "make it look better", try "add calm background music that matches the mood of my video" — concrete instructions get better results.

Max file size is 500MB. Stick to MP4, MOV, AVI, WebM for the smoothest experience.

Export as MP4 for widest compatibility across platforms and devices.

安全使用建议
This skill appears to be what it says: it will upload your video files to mega-api-prod.nemovideo.ai to add background music and return rendered MP4s. Before installing or running: 1) Only provide a NEMO_TOKEN if you trust that backend (tokens authorize uploads/exports). 2) The skill may perform trivial checks for install directories (~/.clawhub/, ~/.cursor/skills/) and mentions ~/.config/nemovideo/ in its frontmatter — if you prefer, run it in an environment without sensitive files. 3) Because the skill has no source/homepage and is instruction-only, network calls to the listed API are the only runtime behavior — review and confirm you’re comfortable sending your media to that domain. If you want higher assurance, ask the publisher for provenance or a project homepage before granting a real NEMO_TOKEN.
功能分析
Type: OpenClaw Skill Name: background-music Version: 1.0.0 The skill is a legitimate-appearing wrapper for a cloud-based video editing service (nemovideo.ai). It provides instructions for an AI agent to handle authentication via tokens, upload user video files, and manage processing sessions through a specific API (mega-api-prod.nemovideo.ai). While it involves network communication and file uploads, these actions are strictly aligned with the stated purpose of adding background music to videos, and there is no evidence of data exfiltration, unauthorized access, or malicious intent in SKILL.md or _meta.json.
能力评估
Purpose & Capability
Name, description, and runtime instructions all focus on uploading videos, creating a session, sending SSE messages, and exporting rendered MP4s. The single required credential (NEMO_TOKEN) is appropriate for authorizing calls to the described backend. One minor inconsistency: the registry metadata reported no required config paths, but the SKILL.md frontmatter mentions a configPaths entry (~/.config/nemovideo/). This appears minor and does not contradict the skill's purpose, but it is an inconsistency worth noting.
Instruction Scope
The SKILL.md explicitly instructs the agent to use NEMO_TOKEN (if present) or to obtain an anonymous token by POSTing to the provided endpoint, to upload files (multipart or URL), to stream SSE, poll render status, and return download URLs — all appropriate for a cloud render workflow. It also instructs the agent to determine an X-Skill-Platform header by checking common install paths (~/.clawhub/, ~/.cursor/skills/) which implies presence checks on those filesystem locations; this is low-impact but outside the core upload/convert flow and should be understood by users who care about local filesystem checks.
Install Mechanism
No install spec or downloadable code is present; the skill is instruction-only (lowest install risk). Nothing is written to disk by the skill itself according to the provided files.
Credentials
Only one credential is requested (NEMO_TOKEN) and it is directly used to authorize API calls to the described nemo backend. The SKILL.md also defines a safe fallback anonymous-token flow that generates a short-lived token; this is proportionate for a cloud service. The earlier-noted frontmatter configPaths entry is the only extra locator mentioned and may cause harmless path checks.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent system privileges. It does not instruct modifying other skills or system-wide settings. Autonomous invocation is allowed (platform default) but is not combined with any broad credential set or 'always: true' privilege.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install background-music
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /background-music 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
background-music 1.0.0 — initial public release - Add background music to your video files (MP4, MOV, AVI, WebM up to 500MB) in the cloud. - Automatic token management: use NEMO_TOKEN or get 100 free credits via anonymous signup. - Upload videos, describe the mood/music you want, and export 1080p MP4 files in 30-90 seconds. - Intuitive keyword-based workflow: upload, edit, check credits, and export with simple prompts. - Cloud GPU rendering with live progress, error handling, and session state tracking included. - Supports batch and iterative editing with persistent sessions.
元数据
Slug background-music
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Background Music 是什么?

add video files into music-backed videos with this skill. Works with MP4, MOV, AVI, WebM files up to 500MB. content creators use it for adding background mus... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 64 次。

如何安装 Background Music?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install background-music」即可一键安装,无需额外配置。

Background Music 是免费的吗?

是的,Background Music 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Background Music 支持哪些平台?

Background Music 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Background Music?

由 francemichaell-15(@francemichaell-15)开发并维护,当前版本 v1.0.0。

💬 留言讨论