Video translation

From ChatCut-Inc/agent-plugin · View interactive version

Video translation is an AI agent skill from the GitHub repository ChatCut-Inc/agent-plugin. 翻译配音与字幕,制作多语言视频。

How to use this skill

Skill file

Video Translation

Create a new localized video asset from an existing project video. Treat

speech translation, dubbing, voice preservation, lip synchronization, captions,

quality, authorization, generation, and verification as one workflow.

Lip-synced translation starts with source-transcript review through Qwen

native questions or ordinary chat. The recognized wording is not final until

the user has corrected or explicitly approved the complete text. Audio-only

translation keeps the direct-submit flow and skips this review.

When to Use

Use this skill when the user wants an existing video to:

Typical triggering requests include:

Route adjacent requests elsewhere:

then use the Digital Human Skill.

Talking Head Guide.

Treat these requests as ambiguous:

For an ambiguous request, ask one treatment question with text choices. Keep

the wording natural for the conversation, and include all applicable paths:

and submit with audioOnly: false or omit audioOnly.

audioOnly: true.

translation job.

Keep user-facing terminology in one language. These are localized concept names,

not fixed full option sentences; descriptions may stay natural for the context:

| Conversation language | Lip-sync path | Audio-only path | Subtitle-only path |

| --------------------- | ------------------------------------ | ------------------------ | ----------------------------- |

| Chinese | 口型同步翻译 | 只翻译声音 | 只翻译字幕 |

| English | Lip-synced translation | Audio-only translation | Subtitle-only translation |

| Spanish | Traducción con sincronización labial | Traducción solo de audio | Traducción solo de subtítulos |

The target translation language does not control this copy; the user's

conversation language does. Never append a second-language gloss such as

(lip-sync) to a localized label.

Do not omit lip-sync when the source has a visible speaker. Do not relabel

audio-only translation as generic "AI voice replacement"; choosing a new

synthetic voice is a separate Voice Skill workflow. If the user already stated

one treatment, skip this question and follow that route directly.

Do not submit a paid video-translation job until changing the spoken audio is

explicitly requested or confirmed.

Workflow

  1. Resolve the source video. It must be an imported project video asset;

use the exact asset id from the attachment, selection, or browse_assets.

Local or external media must be imported first.

  1. Resolve the target language as an English language name (for example

"English", "Spanish", "Japanese"). Confirm it when the user only implied a

market ("海外版") rather than a language.

  1. Pick the treatment:

the speakers' vocal identity, plus synchronized mouth movements. Continue

through the source-transcript review below.

untouched. Use for screen recordings, voice-over footage, or when the user

says the picture must not change. Prefer this for transparent WebM when

preserving the alpha channel matters. **Skip steps 4–6 and keep the existing

direct-submit flow; do not require or pass reviewedSourceTranscript.**

  1. Prepare the source transcript for lip-sync only. If word-level

transcription is not complete, call trigger_transcript, wait for it with

track_progress, and retry only when it is ready. Call read_script, then

read the matching full source-library transcript returned inline. Do not

try to read a backend file or use the edited timelineMd cut as the source. **Do not substitute

inspect_asset transcript ranges for read_script; the range result may be

partial and is not the canonical complete source transcript.**

  1. Present the source-text review for lip-sync only. Load widget-forms.

Strip library addresses and speaker-rendering rows; preserve exactly one

recognized segment per line in source order, including the first and last

non-empty segments. Present the complete actual text for correction, not a

placeholder, summary, timestamp list, or excerpt. If Qwen offers editable

text input with a default, prefill it; otherwise show the complete text in

chat and ask the user to correct or explicitly approve it. Keep the response

mapped to reviewedSourceTranscript; do not emit internal form tags.

Stop and wait. Never submit the paid job in the turn first requesting review.

  1. Use the confirmed revision exactly. Keep the user's final wording,

punctuation, order, and line breaks. Explicit approval of the complete text

also confirms it; silence or a UI preselection does not. Apply requested

corrections without paraphrasing and ask only about unresolved ambiguity.

Do not require a nonexistent Widget submission or repeat an already clear

approval. The tool realigns normal line-break changes to source timing.

  1. Duration behavior. By default the output may run slightly longer or

shorter than the source so the translated speech keeps a natural pace. Pass

keepDuration: true only when the user needs the exact original length

(for example to swap it into an existing timeline slot), and mention that

pacing may sound faster.

  1. Submit with submit_video_translation. For lip-sync, pass

reviewedSourceTranscript as the exact complete user-confirmed text from

step 6; the tool combines those reviewed lines with the original segment

timestamps and creates source subtitles. For audioOnly: true, omit

reviewedSourceTranscript and preserve the pre-existing direct-submit path.

The tool shows the user a paid confirmation before the job starts; do not

resubmit after a denial.

  1. Track with track_progress(action="wait") until the translated video

asset lands in the library, then hand it back (place on the timeline only

when asked).

Constraints and cost

localize only a section, trim/export that section into its own asset first,

then translate the shorter asset.

output video.

This is best-effort for lip-sync because the picture is re-rendered. A

transparent WebM may become opaque, and 4K or >30 fps media may be

re-encoded. The tool confirmation calls these cases out; never promise that

lip-sync will preserve the container, alpha channel, HDR, codec, bitrate, or

frame rate exactly.

facial re-rendering and is the safest treatment for transparent sources, but

do not promise byte-for-byte container preservation. After completion ChatCut

compares the source and output resolution, frame rate, and alpha pixel format

when media probing is available, and reports detected changes in generation

status.

the submitted text can reuse the original word-level timing. Pass the complete

user-confirmed text directly to the tool; do not merge, split, reorder, or silently

normalize it in the conversation layer. Do not invoke this review for

audioOnly: true.

translation of the recorded voice, so confirm the user has rights to the

footage and its speakers when the material is clearly someone else's.

AI video translation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.