# Localize a video

Dubs a narrated video into up to five languages in its own voice, with captions. Only for a voice you own. fal is billed to you.

Requires your fal.ai key, through the fal MCP server; fal bills your account for each image, voice and clip.

## Install

```sh
npx @parcha/agentrun template install github:Parcha-ai/agentrun-templates/templates/localize-video@9ed9ff98e3130d3dce065743e8c60bb13e84f646 --trust
```

Or open `<your AgentRun address>/#/templates/install?src=github%3AParcha-ai%2Fagentrun-templates%2Ftemplates%2Flocalize-video%409ed9ff98e3130d3dce065743e8c60bb13e84f646`. Pinned to commit 9ed9ff98e3130d3dce065743e8c60bb13e84f646.

### Install with your agent

Copy this prompt into your coding agent:

```text
Help me install the Localize a video template on my existing AgentRun.

Pinned template source: github:Parcha-ai/agentrun-templates/templates/localize-video@9ed9ff98e3130d3dce065743e8c60bb13e84f646
Read the template and its instructions: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/localize-video

Ask for my AgentRun address or local installation directory if you do not already know it. Confirm which instance to use before making changes.
Read https://agentrun.ai/SKILL.md and inspect the installed version's template install help. Use the installation workflow that version supports.
Review this template's setup, instructions and requested tools with me, then install the pinned version on that instance with the settings and permissions I approve. Do not start a second instance or redeploy my existing one.
If this version cannot install templates, explain what is missing and the supported next step. Verify the result and tell me how to run the installed agent.
```

## What it does

Give it a public video with narration (up to 2 minutes) and one to five languages, and get it dubbed into each in the run's files, with captions and, when you ask, the speaker's lips matched to each dub. It reads the video's length first and prices the whole plan before anything is paid, then transcribes the voice on ElevenLabs, dubs every language at once on fal.ai and writes captions from each dub's voice. Dubbing keeps the speaker's voice: only a voice you own or an AI one. Lipsync (sync-lipsync v2, off by default) moves the face: only your own face, or an AI or stock face you have the rights to, stated in face_rights; never a celebrity, a stranger or a clip you found. A 1-minute video costs about $0.86 of fal in one language with captions, $3.78 in five, $18.78 in five with lipsync (each dub bills whole minutes). It refuses for price only over a max_fal_usd you set. Needs your fal key, added as the fal server in Settings → MCP servers (hosted AgentRun bills fal as run spend instead).

- Skill `fal-audio`: Make speech, music, transcripts and dubs with fal.ai through its MCP server (the \`fal\` server, tools named mcp:fal/\<tool\>). Covers picking a voice, music, speech-to-text, dubbing or lipsync model, writing a script ElevenLabs v3 reads well (audio tags, pacing, voice settings), running a job without paying twice, several jobs at once, turning a transcript's word timestamps into captions, saving the media into the run's files, and the errors fal returns. Use whenever a task asks for narration, a voiceover, a spoken summary, background music, a transcript, captions, a video dubbed into another language, or a face lip-synced to new audio.

## What starts it

- By hand, any time: from the console, the API or the CLI.

## Inputs

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `video_url` | string, uri, 0 to 2000 characters | yes | A public link to the video file (mp4 or mov), at most 2 minutes, with narration whose voice you own or that is AI-generated. Never a real person's voice: the dub keeps it. The run saves it first to read its length from the file, and stops before anything is paid when it can't. The video goes to fal, ElevenLabs and, with lipsync, Sync Labs. Example: `https://example.com/media/product-explainer.mp4`. |
| `target_languages` | list of string | no | One to five languages to dub into, as ISO 639-1 codes (es Spanish, fr French, de German, it Italian, pt Portuguese, ja Japanese ...). Default Spanish. Default: `es`. |
| `captions` | boolean | no | Write a .vtt caption file beside each dubbed video, from a transcript of the dub's voice (about $0.13 a minute per language). Default: `true`. |
| `lipsync` | boolean | no | Also move the speaker's lips to fit each dub, on sync-lipsync v2 (about $3 a minute per language), saved as media/lipsync-\<lang\>.mp4 beside the dub. Only your own face, or an AI or stock face you have the rights to: set face\_rights too, or no lipsync is made. Default: `false`. |
| `face_rights` | string, one of own\_face, licensed\_face | no | Lipsync moves the face in the video. own\_face: it is your own face. licensed\_face: an AI-generated or stock face you have the rights to. Left empty, no lipsync is made. Never a celebrity, a stranger or a clip you found. |
| `max_fal_usd` | number, at least 0 | no | Optional, and empty by default: then nothing is refused for price. The run prices the whole plan from the video's length before anything is paid and states that price in its answer either way. Set a ceiling and a plan over it is refused before any paid call, with its price; a plan at or under it runs as asked. |

## What it needs

- Harness: pi, claude-agent, codex
- Model: fast tier, low effort
- Tools: read, write, web_save
- fal.ai MCP server tools: get_pricing, get_model_schema, submit_job, run_model, wait_for_jobs, get_submission. Transcripts, dubs and lipsync on fal.ai with the fal key this server keeps. Held to ElevenLabs isolation, speech-to-text, dubbing and sync-lipsync v2. About $0.86 a minute a language, $3 more with lipsync, billed to your fal account, or on hosted AgentRun as run spend.
- Computer: Wherever your AgentRun puts a new agent
- Keys: A model key
- Learning: off

## Sample output

Input:

```json
{
  "video_url": "https://v3b.fal.media/files/b/0ab346c2/TYURdHWFU3qUxxbXx2Cuy_tmp6d29jt_8.mp4",
  "target_languages": [
    "es"
  ]
}
```

Output:

#### Spanish

![Spanish](https://marketplace.agentrun.ai/templates/localize-video/samples/live-explainer-dub/es.mp4)

Captions: `media/es.vtt`

#### Source transcript (English)

Go one point twenty-three is out. Range loops can now run over iterator functions, so you can write your own sequences. Collecting a map's keys into a sorted slice takes one line, slices.sorted maps.keys. There are three new standard library packages, iter, structs, and unique. Timers and tickers got a rework. The Go command has new conveniences, and Go telemetry is opt-in.

#### Cost (estimates from fal's rates)

| Step | Endpoint | Minutes | Rate | USD |
|---|---|---|---|---|
| voice | audio-isolation | 0.5 | 0.10 | 0.050 |
| transcript | speech-to-text | 0.5 | 0.03 | 0.015 |
| dub-es | dubbing | 0.5 | 0.60 | 0.300 |
| voice-es | audio-isolation | 0.5 | 0.10 | 0.050 |
| captions-es | speech-to-text | 0.5 | 0.03 | 0.015 |
| **Total** | | | | **0.430** |

No failures. No ignored instructions.

Media:

- [es.mp4](https://marketplace.agentrun.ai/templates/localize-video/samples/live-explainer-dub/es.mp4), captions: https://marketplace.agentrun.ai/templates/localize-video/samples/live-explainer-dub/es.vtt

## Tested

Passes 11 of 11 eval cases on pi.

12 eval cases: dub-processing, five-languages, injection-in-transcript, japanese-refused, lipsync-no-rights, lipsync-refused, lipsync-two, live-explainer-dub, source-length-unknown, two-languages, user-ceiling, voice-processing.

## Source

- Package: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/localize-video
- Publisher: Parcha-ai
- Author: Parcha Labs
- Version: 0.2.0
- License: Apache-2.0
- Category: Marketing
- Page: https://marketplace.agentrun.ai/templates/localize-video/
