← 返回 Skills 市场
linmillsd7

Ai Subtitles Extension

作者 linmillsd7 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
70
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ai-subtitles-extension
功能描述
Get captioned video files ready to post, without touching a single slider. Upload your video files (MP4, MOV, AVI, WebM, up to 500MB), say something like "ad...
使用说明 (SKILL.md)

Getting Started

Send me your video files and I'll handle the AI subtitle generation. Or just describe what you're after.

Try saying:

  • "add a 10-minute YouTube tutorial video into a 1080p MP4"
  • "add subtitles in English and Spanish automatically"
  • "adding auto-generated subtitles to videos for YouTubers and content creators"

First-Time Connection

When a user first opens this skill, connect to the processing backend automatically. Briefly let them know (e.g. "Setting up...").

Authentication: Check if NEMO_TOKEN is set in the environment. If it is, skip to step 2.

  1. Obtain a free token: Generate a random UUID as client identifier. POST to https://mega-api-prod.nemovideo.ai/api/auth/anonymous-token with header X-Client-Id set to that UUID. The response data.token is your NEMO_TOKEN — 100 free credits, valid 7 days.
  2. Create a session: POST to https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemo_agent with Authorization: Bearer \x3Ctoken>, Content-Type: application/json, and body {"task_name":"project","language":"\x3Cdetected>"}. Store the returned session_id for all subsequent requests.

Keep setup communication brief. Don't display raw API responses or token values to the user.

AI Subtitles Extension — Auto-Generate and Embed Video Captions

Send me your video files and describe the result you want. The AI subtitle generation runs on remote GPU nodes — nothing to install on your machine.

A quick example: upload a 10-minute YouTube tutorial video, type "add subtitles in English and Spanish automatically", and you'll get a 1080p MP4 back in roughly 30-90 seconds. All rendering happens server-side.

Worth noting: shorter clips under 5 minutes generate subtitles significantly faster.

Matching Input to Actions

User prompts referencing ai subtitles extension, 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.

Base URL: https://mega-api-prod.nemovideo.ai

Endpoint Method Purpose
/api/tasks/me/with-session/nemo_agent POST Start a new editing session. Body: {"task_name":"project","language":"\x3Clang>"}. Returns session_id.
/run_sse POST Send a user message. Body includes app_name, session_id, new_message. Stream response with Accept: text/event-stream. Timeout: 15 min.
/api/upload-video/nemo_agent/me/\x3Csid> POST Upload a file (multipart) or URL.
/api/credits/balance/simple GET Check remaining credits (available, frozen, total).
/api/state/nemo_agent/me/\x3Csid>/latest GET Fetch current timeline state (draft, video_infos, generated_media).
/api/render/proxy/lambda POST Start export. Body: {"id":"render_\x3Cts>","sessionId":"\x3Csid>","draft":\x3Cjson>,"output":{"format":"mp4","quality":"high"}}. Poll status every 30s.

Accepted file types: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.

Skill attribution — read from this file's YAML frontmatter at runtime:

  • X-Skill-Source: ai-subtitles-extension
  • X-Skill-Version: from frontmatter version
  • X-Skill-Platform: detect from install path (~/.clawhub/clawhub, ~/.cursor/skills/cursor, else unknown)

All requests must include: Authorization: Bearer \x3CNEMO_TOKEN>, X-Skill-Source, X-Skill-Version, X-Skill-Platform. Missing attribution headers will cause export to fail with 402.

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

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 JSON uses short keys: t for tracks, tt for track type (0=video, 1=audio, 7=text), sg for segments, d for duration in ms, m for metadata.

Example timeline summary:

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

Common Workflows

Quick edit: Upload → "add subtitles in English and Spanish automatically" → Download MP4. Takes 30-90 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 subtitles in English and Spanish automatically" — 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 do what it says: upload your videos to a remote rendering service that auto-generates subtitles. Before installing or using it, consider: (1) Privacy: your video/audio content will be uploaded to https://mega-api-prod.nemovideo.ai — verify the service's privacy and retention policies. (2) Token handling: the skill will accept a NEMO_TOKEN you supply or automatically request an anonymous token (100 free credits, 7-day validity); decide whether to provide your own service token or allow automatic anonymous tokens. (3) Metadata mismatch: SKILL.md lists a config path (~/.config/nemovideo/) but the registry summary did not — ask the publisher which is authoritative and whether the skill will read or write that directory. (4) Attribution headers: the skill requires adding X-Skill-* headers to all requests; ensure those values are safe to include for your use case. If you need higher assurance, request the publisher or maintainer's homepage or source repository so you can review their privacy policy and server-side practices.
功能分析
Type: OpenClaw Skill Name: ai-subtitles-extension Version: 1.0.0 The ai-subtitles-extension skill is a legitimate tool designed to automate video captioning and rendering via the nemovideo.ai API. It includes standard authentication flows, such as generating anonymous tokens for new users, and provides detailed instructions for the agent to manage media uploads and poll for render status. The skill follows security best practices by instructing the agent to keep session tokens private and limits its operations to media processing tasks aligned with its stated purpose.
能力评估
Purpose & Capability
Name and description match required credential (NEMO_TOKEN) and the network endpoints the SKILL.md uses. The skill uploads videos and requests rendering from a remote API — this is coherent with 'AI Subtitles Extension'.
Instruction Scope
The instructions stay within the subtitle/rendering use case: they upload video files, stream SSE for edits, poll status, and start exports. They also explain how to obtain an anonymous token automatically if NEMO_TOKEN is not set, and require adding skill attribution headers. This is reasonable, but note the skill will transmit user-uploaded media and metadata to an external host (mega-api-prod.nemovideo.ai) — expected for a cloud rendering service but a privacy consideration.
Install Mechanism
No install spec and no code files (instruction-only). Nothing is written to disk by an installer and no third-party packages are pulled during installation — lowest-risk install posture.
Credentials
Only NEMO_TOKEN is declared as required, which matches the described API usage. However, the SKILL.md frontmatter also lists a config path (~/.config/nemovideo/) while the registry summary reported no required config paths — this metadata inconsistency should be clarified. The skill can create an anonymous token itself if NEMO_TOKEN is absent, which is plausible but means it will make network calls to acquire credentials on the user's behalf.
Persistence & Privilege
The skill is user-invocable and not always-on. It does not request elevated platform privileges, nor does it declare writing/modifying other skills or global agent settings in the instructions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-subtitles-extension
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-subtitles-extension 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
ai-subtitles-extension 1.0.0 — Initial Release - Upload videos (MP4, MOV, AVI, WebM up to 500MB) and automatically generate and embed accurate subtitles in multiple languages. - Download fully captioned videos as 1080p MP4 files, ready to post. - 100 free credits available via quick anonymous sign-up; no manual transcription or software install required. - Includes workflows for single and batch file processing, credits checking, project state querying, and easy exports. - Designed for fast, accurate results for YouTubers and content creators.
元数据
Slug ai-subtitles-extension
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Ai Subtitles Extension 是什么?

Get captioned video files ready to post, without touching a single slider. Upload your video files (MP4, MOV, AVI, WebM, up to 500MB), say something like "ad... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。

如何安装 Ai Subtitles Extension?

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

Ai Subtitles Extension 是免费的吗?

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

Ai Subtitles Extension 支持哪些平台?

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

谁开发了 Ai Subtitles Extension?

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

💬 留言讨论