← 返回 Skills 市场
wxj127

AI Video Translation

作者 wxj127 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
375
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ai-video-translation
功能描述
newtranx CLI for translate MP4 videos, Used for directly translating video files on the terminal. When you want to translate video files from one country's a...
使用说明 (SKILL.md)

newtranx CLI (newtranx)

Translate videos and podcasts from the terminal using the newtranx API.

Installation

npx --yes newtranx-ai

Usage Process

1. login

npx newtranx-ai login

Automatically obtain device ID, call the registration login interface to obtain token, and save it to ~/. newtranx/config. json . The token is valid for 15 days.

2. Upload videos

Supports local files and HTTP URLs, only supports mp4 format. If the format is not supported, please use ffmepg to transcode to mp4 file size not exceeding 5GB and duration not exceeding 4 hours. Important: URLs containing ? or & must be quoted to avoid shell glob errors.


npx newtranx-ai upload ./video.mp4

# HTTP URL
npx newtranx-ai upload https://example.com/video.mp4

Restrictions: -Format: mp4 only -Size: not exceeding 5GB

Automatically upload videos in 4MB chunks and display upload progress. After uploading, output the task ID.

3. Submit translation task

npx newtranx-ai  translate --id \x3CtaskID> \
  --audio-lang en-US \
  --trans-lang zh-CN \
  --max-speakers 2 \
  --export-subtitle

Parameter description:

  • --id (Required): Upload the returned task ID
  • --audio-lang(Required): Call the npx newtranx-ai language command in the original language of the video to view
  • --trans-lang(Required): Call the npx newtranx-ai language command to view the target translation language
  • --max-speakers: Number of speakers
  • --export-subtitle: Do you want to merge subtitles into the video
  • --re-transwrite: Do you want to rewrite it
  • --subtitle-font-size: Subtitle Font Size
  • --subtitle-max-chars: Maximum number of characters per subtitle segment
  • --subtitle-outline-color: Subtitle outline color
  • --subtitle-primary-color: Subtitle main color

4. Regularly query query results

# default output translated video download link
npx newtranx-ai status --id \x3CtaskID>

# output original VTT subtitles download link
npx newtranx-cli status --id \x3CtaskID> --subtitle

# output translated VTT subtitles download link
npx newtranx-cli status --id \x3CtaskID> --targetSubtitle 

# output metadata include speaker information download link
npx newtranx-cli status --id \x3CtaskID> --metadata 

When 'iterationStatus==Succeeded', the result contains:

  • Translated video download link
  • Source language subtitle file link
  • Target language subtitle file link
  • Metadata file link

5. Query supported languages


npx newtranx-ai language

npx newtranx-ai language --region CN

Return a list of language codes and names that can be used for the audio lang and trans lang parameters of the translate command.

Usage Tips

  1. If the token expires, call npx newtranx ai login and then retry.
  2. It must be called according to the process.
安全使用建议
This skill appears to do what it says (an npx CLI that uploads and translates MP4 videos), but it relies on running an unvetted npm package (newtranx-ai) and saving an auth token in ~/.newtranx/config.json. Before installing or running these commands: 1) Verify the package on npm or its source repository and check the maintainer(s), stars, and recent activity; 2) Prefer to inspect the package source (or its GitHub repo) before running npx; 3) Understand the service's privacy policy — where uploaded videos and generated files are stored, how long they are retained, and whether data is encrypted; 4) Avoid uploading sensitive or regulated video content unless the backend is trusted; 5) Consider running the CLI in a sandbox/container or on a disposable account, and delete the ~/.newtranx/config.json file and revoke tokens after use; 6) If you need assurance, request the package's homepage/source, release hashes, or an official publisher identity — presence of these would increase confidence and could change this assessment.
功能分析
Type: OpenClaw Skill Name: ai-video-translation Version: 1.0.0 The skill bundle provides instructions for an AI agent to interact with the 'newtranx-ai' CLI tool for video translation. The documentation covers standard operations such as authentication (storing tokens in ~/.newtranx/config.json), file uploading, and task status monitoring. There are no signs of data exfiltration, malicious execution, or prompt injection; the instructions even include helpful security tips like quoting URLs to prevent shell globbing errors in SKILL.md.
能力评估
Purpose & Capability
The name/description (video translation) align with the SKILL.md which documents an npx CLI (newtranx-ai) that uploads MP4s, starts translation jobs, and returns download links. There are no unrelated requirements (no cloud creds or unrelated binaries declared). However, the package source and homepage are missing, which makes it hard to verify that the described CLI actually exists and is trustworthy.
Instruction Scope
Runtime instructions are narrowly scoped to: running npx newtranx-ai commands to login, upload MP4s (local or URL), create translation tasks, and poll status. The SKILL.md instructs storing a token in ~/.newtranx/config.json and references using ffmpeg for transcoding if needed. It does not ask the agent to read unrelated files or environment variables. Still, the instructions explicitly cause potentially sensitive video files and an authentication token to be uploaded/stored remotely — a data-exposure concern.
Install Mechanism
There is no install spec in the skill; instead the instructions tell users to run npx --yes newtranx-ai which will fetch and execute code from the npm registry at runtime. The skill provides no homepage, source repo, publisher info, or verification hashes. Running npx on an unvetted package carries supply-chain risk: arbitrary code can be executed with the user's account privileges and may exfiltrate data or create files (e.g., the token file).
Credentials
The skill declares no required environment variables or external credentials, which is proportionate. However, its workflow relies on an authentication token obtained via the CLI and saved at ~/.newtranx/config.json (token valid 15 days). That token and the uploaded video content are sensitive; the SKILL.md gives no details about the backend endpoints, data retention, encryption, or revocation, so the credential/storage behavior is a privacy/security concern even if it is functionally consistent with the skill's purpose.
Persistence & Privilege
The skill does not request always:true and does not declare elevated privileges. The CLI will create a config file in the user's home directory to store a token, which is a normal persistence pattern for a CLI but is worth noting because it stores credentials locally. No instructions indicate modifying other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-video-translation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-video-translation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of ai-video-translation skill. - Introduces newtranx CLI for translating MP4 video files from the terminal. - Supports upload from local files or HTTP URLs (MP4 only, ≤5GB, ≤4 hours). - Allows translating audio between languages with speaker recognition and subtitle export. - Provides commands for task management, including login, upload, translation, status check, and language query. - Enables exporting original and translated videos, subtitles, and speaker metadata. - Includes detailed command usage and parameters for customization.
元数据
Slug ai-video-translation
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

AI Video Translation 是什么?

newtranx CLI for translate MP4 videos, Used for directly translating video files on the terminal. When you want to translate video files from one country's a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 375 次。

如何安装 AI Video Translation?

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

AI Video Translation 是免费的吗?

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

AI Video Translation 支持哪些平台?

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

谁开发了 AI Video Translation?

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

💬 留言讨论