← Back to Skills Marketplace
mhogan2013-9

Add Subtitle To Video File

by mhogan2013-9 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
77
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install add-subtitle-to-video-file
Description
Skip the learning curve of professional editing software. Describe what you want — add subtitles in English and burn them into the video — and get captioned...
README (SKILL.md)

Getting Started

Got video files to work with? Send it over and tell me what you need — I'll take care of the subtitle generation.

Try saying:

  • "add a 3-minute interview recorded on a smartphone into a 1080p MP4"
  • "add subtitles in English and burn them into the video"
  • "adding subtitles to video files for social media or accessibility for YouTubers, content creators, educators"

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.

Add Subtitle to Video File — Burn Subtitles into Video Files

Drop your video files in the chat and tell me what you need. I'll handle the subtitle generation on cloud GPUs — you don't need anything installed locally.

Here's a typical use: you send a a 3-minute interview recorded on a smartphone, ask for add subtitles in English and burn them into the video, and about 30-60 seconds later you've got a MP4 file ready to download. The whole thing runs at 1080p by default.

One thing worth knowing — shorter clips under 2 minutes process significantly faster and with higher subtitle accuracy.

Matching Input to Actions

User prompts referencing add subtitle to video file, 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.

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.

Headers are derived from this file's YAML frontmatter. X-Skill-Source is add-subtitle-to-video-file, 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).

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.

Error Handling

Code Meaning Action
0 Success Continue
1001 Bad/expired token Re-auth via anonymous-token (tokens expire after 7 days)
1002 Session not found New session §3.0
2001 No credits Anonymous: show registration URL with ?bind=\x3Cid> (get \x3Cid> from create-session or state response when needed). Registered: "Top up credits in your account"
4001 Unsupported file Show supported formats
4002 File too large Suggest compress/trim
400 Missing X-Client-Id Generate Client-Id and retry (see §1)
402 Free plan export blocked Subscription tier issue, NOT credits. "Register or upgrade your plan to unlock export."
429 Rate limit (1 token/client/7 days) Retry in 30s once

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

SSE Event Handling

Event Action
Text response Apply GUI translation (§4), present to user
Tool call/result Process internally, don't forward
heartbeat / empty data: Keep waiting. Every 2 min: "⏳ Still working..."
Stream closes Process final response

~30% of editing operations return no text in the SSE stream. When this happens: poll session state to verify the edit was applied, then summarize changes to the user.

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 burn them into the 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 subtitles in English and burn them into the video" — concrete instructions get better results.

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

Export as MP4 with H.264 codec for widest compatibility across platforms.

Usage Guidance
This skill appears internally consistent for uploading videos and calling a remote subtitle/render service, but check these points before installing: - You will be uploading your video files to the NemoVideo endpoint (https://mega-api-prod.nemovideo.ai). Verify you trust that service and its privacy/retention policy for any sensitive footage. - The skill expects a NEMO_TOKEN credential; if you do not supply one it will obtain an anonymous token via an API call. Decide whether you prefer to supply your own token or allow anonymous issuance. - The SKILL.md frontmatter references a local config path (~/.config/nemovideo/) and mentions detecting install paths to set an X-Skill-Platform header. Ask the publisher why local config or filesystem inspection is required — it may be harmless, but it is broader than strictly uploading and rendering. - Because this is instruction-only, there is no install-time code, but the agent will make network requests on your behalf. If you need stronger assurance, ask for an official homepage/owner documentation or a published API policy for the Nemovideo service.
Capability Analysis
Type: OpenClaw Skill Name: add-subtitle-to-video-file Version: 1.0.0 The skill is a functional integration for the 'nemovideo.ai' service, allowing an AI agent to automate video subtitling and rendering. It defines clear API workflows for authentication, session management, and file handling (upload/export) via the 'mega-api-prod.nemovideo.ai' endpoint. While it includes instructions for the agent to detect its installation environment (e.g., checking for '~/.cursor/skills/') to populate telemetry headers, this behavior is aligned with the stated purpose of service attribution and lacks indicators of malicious intent or unauthorized data exfiltration.
Capability Assessment
Purpose & Capability
Name/description describe cloud subtitle generation and burned-in export; SKILL.md implements exactly that via a NemoVideo API (session creation, upload, render/export). The required primary credential (NEMO_TOKEN) is appropriate for a hosted rendering service.
Instruction Scope
Runtime instructions are focused on connecting to the remote API, uploading user video files, polling renders, and returning download URLs. A few instructions broaden scope slightly: the YAML frontmatter mentions reading a config path (~/.config/nemovideo/) and detecting install path to set an X-Skill-Platform header — these imply the agent may inspect local paths to determine platform/test headers. This is not necessary to the core task and should be called out to users.
Install Mechanism
Instruction-only skill with no install spec and no bundled code files. Nothing is downloaded or written to disk by the skill itself in the provided materials.
Credentials
Only one credential is declared (NEMO_TOKEN) which matches the cloud API usage. The skill also documents a fallback flow to obtain an anonymous token from https://mega-api-prod.nemovideo.ai if NEMO_TOKEN is absent. The YAML frontmatter includes a config path (~/.config/nemovideo/) which may grant access to local config containing secrets — users should confirm why local config is needed.
Persistence & Privilege
always is false and the skill is user-invocable; there is no install script or indication it will modify other skills or persist beyond normal agent usage.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install add-subtitle-to-video-file
  3. After installation, invoke the skill by name or use /add-subtitle-to-video-file
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
add-subtitle-to-video-file 1.0.0 — Initial Release - Easily add and burn subtitles into your video files (MP4, MOV, AVI, WebM up to 500MB). - Automatic subtitle generation and cloud rendering — no editing software needed. - Supports uploading video files, checking credits, and downloading rendered videos. - Guided prompts and user-friendly status updates for each step. - Handles common errors with clear feedback and suggestions.
Metadata
Slug add-subtitle-to-video-file
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Add Subtitle To Video File?

Skip the learning curve of professional editing software. Describe what you want — add subtitles in English and burn them into the video — and get captioned... It is an AI Agent Skill for Claude Code / OpenClaw, with 77 downloads so far.

How do I install Add Subtitle To Video File?

Run "/install add-subtitle-to-video-file" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Add Subtitle To Video File free?

Yes, Add Subtitle To Video File is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Add Subtitle To Video File support?

Add Subtitle To Video File is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Add Subtitle To Video File?

It is built and maintained by mhogan2013-9 (@mhogan2013-9); the current version is v1.0.0.

💬 Comments