Skip to content
FramesField
Intermediate Light CLI / Copy-Paste Script
Verified Dec 1, 2026

Multilingual Video Dubbing and Localization

What you’ll make

Four localized 1080p commercial MP4 masters (Spanish, French, German, Japanese) with synced 48 kHz voiceovers, clean M&E music/foley beds, zero end-card truncation, and safe-zone Unicode subtitles.

Turn one 30-second English commercial into four international ad masters (Spanish, French, German, Japanese) for ~$0.93 per market: lock a dialogue-free M&E stem master, adapt scripts within +/-5% beat syllable parity, swap B-roll narration via ElevenLabs or Deepgram Aura-2 TTS, re-generate only the 6-second on-camera hook in Google Gemini Omni Flash, and burn safe-zone subtitles onto -14 LUFS 48 kHz masters.

Before you start
  • One approved English 30-second video timeline with separated Music & Effects (M&E) audio stem.
  • ElevenLabs TTS, Deepgram Aura-2, or Cartesia Sonic TTS API access (plus optional paid Gemini API access for Gemini Omni Flash if your spot has a close-up talking hook).
  • Local FFmpeg installed (ffmpeg -version) and Noto Sans Unicode fonts for CJK / accented captions.
Estimated cost
$0.90 – $4.22 total across 4 languages
Time needed
45 min
Jump to section (5)
  1. 01Why stem-locked localization beats one-click AI dubbing widgets
  2. 02Step 1: Lock your international master before exporting English
  3. 03Step 2: Adapt scripts for syllable parity (not literal translation)
  4. 04Step 3: Route 80% B-roll to TTS and isolate any single spoken hook
  5. 05Step 4: Mix, master -14 LUFS, add safe-zone captions, and audit
Step-by-step overview
SIGNAL PATH READY Click any node or press “Step Through” to trace data flow from input plate to final deliverable.
01–04
Stem-Locked 4-Language Ad Localization & Subtitle Mastering Pipeline
Official Demo · Privacy-Enhanced Player (Zero Cookies Until Click)

Stem-Locked 4-Language Ad Localization & Subtitle Mastering Pipeline

ElevenLabs (Official Demo) · youtube-nocookie.com
Frame 01 STEP 01 · $0.00
Textless Video & M&E Stem
24/30 fps CFR · 48 kHz Stereo WAV

Export speech-free Music + Foley + Room Tone stem and text-free picture master once.

Frame 02 STEP 02 · $0.10
Syllable-Parity Adaptation
+/-5% Beat Match · ElevenLabs TTS

Trim Spanish (+20%) & German (+24%) expansion before synthesizing crisp 48 kHz localized VO.

Frame 03 STEP 03 · $0.83
Optional Native Hook Anchor
Gemini Omni Flash 8s 1080p · <=14 Words

Re-generate only the 1 close-up spoken hook from its locked PNG in the target language.

Frame 04 STEP 04 · $0.00
Safe-Zone Mix & Conform
-14 LUFS · apad · yuv420p

Mix M&E + localized VO with apad end-card protection and burn safe-zone Unicode captions.

Isolating the dialogue-free M&E bed and trimming Romance/Germanic syllable expansion before synthesis eliminates both muffled music removal and uncanny rushed dubbing.

Source: ElevenLabs (Official Demo) Model: ELEVENLABS TTS + GEMINI OMNI FLASH + SUNO V6 M&E STEM + FFMPEG Verified Dec 1, 2026
Original source ↗

Why stem-locked localization beats one-click AI dubbing widgets

One-click auto-dubbing websites try to strip English dialogue out of a flattened MP4, time-stretch literal translations by 25%, and paste synthetic 2D lips over every frame—producing muffled music, rushed speech, and uncanny mouth blur. Treating localization like a proper broadcast pipeline takes roughly 45 minutes total for four languages, keeps your music and foley pristine, and ships native-feeling commercials across every market.

This recipe implements the complete production architecture explained in our AI Lip-Sync, Dubbing and Video Localization Guide.

Step 1: Lock your international master before exporting English

Open your approved 30-second edit in DaVinci Resolve, Premiere Pro, or CapCut and export two clean base files:

  1. clean_master_cfr.mp4 (Textless Clean Picture): Toggle off English headline overlays, pricing banners, and English CTA end-card copy so the video track holds strictly photography, motion plates, and clean background slates. Export constant frame rate (24 fps or 30 fps, H.264 High, yuv420p).
  2. me_stem_48k.wav (Dialogue-Free M&E Stem): Mute the English voiceover track completely and export your Suno v6 vocal-free instrumental music bed, physical foley effects, and -28 dB ambient room tone as uncompressed 48 kHz 16-bit stereo WAV.

Step 2: Adapt scripts for syllable parity (not literal translation)

Do not dump your English script into a plain translator. Spanish expands roughly +20% and German expands roughly +24% in spoken syllables—forcing either brutal cuts or frantic fast-forwarded audio.

Paste your timecoded English beat sheet into our interactive Multilingual Ad Localization & Timing Script Builder (Skill 46). For every beat (for example, 00:00–00:06, 12 words in English), the compiler returns adapted Spanish, French, German, and Japanese lines locked strictly within ±5% of the beat’s natural spoken duration—plus native CTA idioms and localized currencies ($39 → €36 → ¥5,900).

Have a native speaker spend 10 minutes reading the four 60-word scripts aloud with a stopwatch before touching audio APIs.

Step 3: Route 80% B-roll to TTS and isolate any single spoken hook

Split voice synthesis cleanly by framing:

  • Off-Camera B-Roll, Product & UI Shots (Usually 22–30s of the spot): Synthesize crisp dry close-mic narration in ElevenLabs TTS ($0.04 Flash / $0.08 Expressive per 1k chars — under $0.10 per 30s language), Deepgram Aura-2 ($0.030/1k chars, ~$0.024/min, native 48 kHz PCM), or Cartesia Sonic (Sonic-3.6, 44 languages, $5/mo Pro, ~$0.038/min). (Note: OpenAI officially deprecated gpt-4o-mini-tts, tts-1, and tts-1-hd on /v1/audio/speech for shutdown on January 6, 2027, so use one of the three active REST APIs above for new dubbing pipelines.) Match voice warmth and energy across markets (es, fr, de, ja) and save raw outputs into vo/es.mp3, vo/fr.mp3, vo/de.mp3, and vo/ja.mp3.
  • Single Close-Up On-Camera Spoken Hook (Optional, 5–8s max): If your opening 6 seconds show an AI-generated spokesperson speaking straight into the camera, take the exact same locked opening PNG and re-render that one shot in Google Gemini Omni Flash, which always outputs video with generated audio, using the adapted foreign line (<=14 words, "dry close-mic studio room, zero background music"). Google shut down the Veo 3.1 preview models in the Gemini API on October 22, 2026; this page now uses Gemini Omni Flash for the hook. Draft at 720p (about $0.07/sec, so $0.42 for 6 seconds or $0.56 for 8 seconds) and render the keeper at upscaled 1080p (about $0.104/sec, so $0.62 for 6 seconds or $0.83 for 8 seconds). One 8-second 1080p hook plus under $0.10 of narration is about $0.93 per market; four hooks add 4 × $0.83 = $3.32, which on top of a $0.90 narration budget with retakes gives the $4.22 upper estimate. Generate one test line per language before committing, because the spec sheet does not list which spoken languages the model handles well, and there is no free API tier to test on. Gemini Omni Flash renders 24 fps in 16:9 or 9:16 only, so if your master is 30 fps or another shape, check the hook with ffprobe and conform its frame rate and resolution to the master before you splice the localized hook onto the front of clean_master_cfr.mp4 and run the batch mix.

Step 4: Mix, master -14 LUFS, add safe-zone captions, and audit

Run localize-4-markets-batch.sh (above). Every localized MP4 automatically:

  • Resamples TTS strictly to 48,000 Hz stereo so clock drift never creeps in (Lip-Sync & Audio Desync Fix).
  • Pads voiceover tails via apad so shorter Japanese or trimmed German reads never cut off your closing brand logo card (FFmpeg amix End-Card Fix).
  • Normalizes mixed M&E + dialogue to -14 LUFS / -1.0 dBTP and exports yuv420p + +faststart for 100% Safari, iOS, Meta, and TikTok playback.

Next, generate timed captions using our Whisper SRT & ASS Caption Pipeline Skill using full Unicode fonts (Noto Sans / Noto Sans JP), keeping 9:16 subtitles inside y:1220–1420 (verify in the Social Safe-Zone Checker). Finish by running our read-only Ad Creative & Localization QA Agent to verify line lengths, pacing speed (<=2.6 words/sec), and localized pricing accuracy before launching regional ad sets.

Copy-paste template

4-Language Batch Localization & -14 LUFS Mastering Script localize-4-markets-batch.sh
Resamples each localized TTS audio file to 48 kHz stereo PCM, mixes it cleanly over a speech-free M&E stem with apad end-card protection, and exports Safari-safe -14 LUFS MP4 masters.
#!/usr/bin/env bash
set -euo pipefail

# Prerequisites:
#   clean_master_cfr.mp4  (textless 24fps or 30fps CFR master)
#   me_stem_48k.wav       (speech-free music + foley + -28 dB room tone)
#   vo/es.mp3, vo/fr.mp3, vo/de.mp3, vo/ja.mp3
mkdir -p out/localized

for lang in es fr de ja; do
  VO_IN="vo/${lang}.mp3"
  OUT_MP4="out/localized/spot_30s_${lang}_master.mp4"
  [ -f "$VO_IN" ] || { echo "Skipping missing $VO_IN"; continue; }

  ffmpeg -y \
    -i clean_master_cfr.mp4 \
    -i me_stem_48k.wav \
    -i "$VO_IN" \
    -filter_complex "\
      [1:a]aresample=48000,volume=-9dB[bed]; \
      [2:a]aresample=48000,aformat=channel_layouts=stereo,apad[vo]; \
      [bed][vo]amix=inputs=2:duration=first:normalize=0,loudnorm=I=-14:TP=-1.0:LRA=11[aout]" \
    -map 0:v -map "[aout]" \
    -c:v libx264 -crf 18 -pix_fmt yuv420p -movflags +faststart \
    -c:a aac -b:a 192k -ar 48000 \
    "$OUT_MP4"

  echo "Built localized master: $OUT_MP4"
done

Helpful prompts & skills for this workflow

Frequently Asked Questions

What if I only have a flattened English MP4 and lost the original project timeline?
You can extract an approximate M&E stem using Demucs (htdemucs --two-stems=vocals), then lay a subtle -28 dB ambient room-tone track underneath to hide minor vocal-separation shimmer. For every new campaign going forward, always archive a clean textless master + M&E stem from Day 1.
Why does the batch script apply apad to the localized voiceover input?
Japanese or tightened Spanish narration often finishes 2 to 3 seconds before your closing logo end-card ends. Without apad, FFmpeg amix can cut the audio stream short or prematurely end the file—apad extends silent tail frames cleanly through the end of the M&E stem.
How much does this 4-language workflow cost compared to a dubbing agency?
Synthesizing four 30-second spots in ElevenLabs TTS costs under $0.40 total (or about $3.72 if you also re-render one 8-second 1080p Gemini Omni Flash on-camera hook per market, 4 x $0.83 = $3.32)—roughly 99% cheaper than paying $1,200 to $1,800 per language at traditional dubbing studios.
Use this page in AI tools or notes
raw .md