Subtitles in several languages with AI

Plenty of businesses in Denmark have customers who would rather read English or Ukrainian. Subtitles can be made automatically, but translation is where things go wrong: a time that moves by an hour, a town name that turns into something else, or a whole line the model made up. We tested two free routes on…

Last checked:

The workflow that works

The order matters more than the tool:

  1. Danish text first. Make Danish subtitles with whisper.cpp and read them through. A mistake in the Danish gets translated too.
  2. One sentence per cue. Short 42-character cues are easy to read but bad to translate, because the sentence is cut in half.
  3. Translate with a glossary of names, times and trade terms.
  4. Someone who knows the language proofreads. This is where the time goes – and where the quality is secured.
  5. Put the languages into the video: as selectable tracks for YouTube and your own website, or burned in – one file per language – for Reels and TikTok.

We measured the Danish part before: with whisper.cpp and the large-v3-turbo model we got 5.2 % word errors unaided and 1.7 % with a prompt listing names. In the new test, with a clinic script full of times and prices, there was one real error: “Book en tid” (book an appointment) became “Put en tid”. The rest were numbers written as digits. Hence step 1: fix the Danish before it is translated.

Our test: Whisper’s own translation vs a local language model

We used two Danish scripts read by a Danish computer voice: the carpenter from our first test and a clinic with opening hours, prices and a cancellation rule. Both ran on our own test machine with no paid services.

Danish → English and Ukrainian: what went wrong?

MethodEnglishUkrainianTypical problem
whisper.cpp large-v3-turbo with -trDid not translateNot possibleText came out in Danish
whisper.cpp large-v3 with -tr8 meaning errorsNot possible“halv 8” → 8:30, “rødgrød med fløde” → “red bread with a float”
Local language model, short cuesShifted from cue 7 + one invented line“halv 8” → 8:30 in one runSentences cut in half, glossary misread
Local language model, full sentences + glossary0 meaning errors2 slips“tømrer” → “столяр” (joiner), “rødgrød” left untranslated
Own test 20.11.2026, 9 sentences in total. Meaning error = a translation that says something other than the original. A computer voice is easier than a real recording.

Whisper is not a translator. Whisper’s translate mode only goes into English. The fast turbo model did not translate at all, and the large model got eight of nine sentences wrong: “halv 8” became 8:30, “fuger vi med det samme” (we seal the joints right away) became “we do the same”, and Messenger became “messantjord”. The time is the dangerous one. In Danish “halv otte” means 7:30, so a customer reading 8:30 turns up an hour late.

A local language model does well – with whole sentences. We used Google’s open Gemma 3 model with 12 billion parameters, compressed to 4 bits so it runs on a Mac. With short 42-character cues it went wrong: the English file slipped one cue from cue 7, and the model invented the last line from a glossary word that was not in the text. With one sentence per cue and a glossary holding only terms that actually occur, the English was error-free and the Ukrainian had two slips. The model takes about 8 GB and needed 8–10 seconds per clip. Gemma comes under Google’s own terms, so read them before commercial use.

It matches what we see with AI voices: the most lifelike voice was also the one that swapped words, which is why we always check with speech recognition afterwards. Ukrainian is generally weaker than English in open models; voice cloning is the same, and Ukrainian is still a gap there.

The recipe: from Danish audio to three languages

Danish subtitles with whole sentences – that is, without --max-len. Build whisper.cpp as on the ffmpeg recipes page:

ffmpeg -i recording.mp4 -vn -ac 1 -ar 16000 -c:a pcm_s16le audio.wav
whisper.cpp/build/bin/whisper-cli -m whisper.cpp/models/ggml-large-v3-turbo-q5_0.bin \
  -l da -osrt -of subs.da -f audio.wav
# Read subs.da.srt and fix names and trade terms before translating

A glossary in a text file, one line per term. Keep the instructions in English; the model follows them best that way:

halv 8=07:30, not 8:30
Klinik Nørrebro=company name, keep
Rødovre=place name, keep in Latin letters
med det samme=right away

The translation with a local model on a Mac with Apple silicon. The script sends all cues at once so the model sees the context, and refuses to write a file if a cue is missing:

# translate_srt.py – translate a Danish .srt locally, keeping every cue and its timing
# Usage: python3 translate_srt.py subs.da.srt en English glossary.txt
import re, sys
from mlx_lm import load, generate

src, code, language = sys.argv[1], sys.argv[2], sys.argv[3]
glossary = sys.argv[4] if len(sys.argv) > 4 else None
MODEL = "mlx-community/gemma-3-12b-it-4bit"

blocks = [b.splitlines() for b in re.split(r"\n\s*\n", open(src, encoding="utf-8").read().strip())]
cues = [(b[1], " ".join(l.strip() for l in b[2:])) for b in blocks]
full = " ".join(t for _, t in cues).lower()

# Only glossary terms that really occur in the text – otherwise the model invents lines
terms = []
if glossary:
    for line in open(glossary, encoding="utf-8"):
        if "=" in line and line.split("=")[0].strip().lower() in full:
            terms.append(line.strip())

numbered = "\n".join(f"{i+1}|{t}" for i, (_, t) in enumerate(cues))
prompt = (f"Translate these Danish video subtitles into {language}. Return exactly {len(cues)} lines "
          f"as 'number|translation', one per cue, nothing else. Translate cue N only from Danish cue N. "
          f"Terms: {'; '.join(terms) or 'none'}\n\n{numbered}")

model, tok = load(MODEL)
chat = tok.apply_chat_template([{"role": "user", "content": prompt}], add_generation_prompt=True, tokenize=False)
answer = generate(model, tok, prompt=chat, max_tokens=1500)

found = {int(m[1]): m[2].strip() for m in re.finditer(r"^\s*(\d+)\s*\|\s*(.+)$", answer, re.M)}
missing = [n for n in range(1, len(cues) + 1) if not found.get(n)]
if missing or len(found) != len(cues):
    sys.exit(f"Model returned {len(found)} of {len(cues)} cues – no file written")

out = src.replace(".da.srt", f".{code}.srt")
with open(out, "w", encoding="utf-8") as f:
    for i, (timing, _) in enumerate(cues):
        f.write(f"{i+1}\n{timing}\n{found[i+1]}\n\n")
print(out)

Install with pip install mlx-lm in a virtual environment, then run python3 translate_srt.py subs.da.srt en English glossary.txt and … uk Ukrainian …. Without a Mac with Apple silicon, the same prompt works unchanged against an API or another local model.

Three languages in one video: soft subtitles

For YouTube, your own website and video players, add the languages as tracks the viewer picks. YouTube also takes subtitle files separately, one language at a time, and only creates automatic captions in the video’s own language.

# MP4: three subtitle tracks, Danish as default
ffmpeg -i video.mp4 -i subs.da.srt -i subs.en.srt -i subs.uk.srt \
  -map 0:v -map 0:a -map 1 -map 2 -map 3 \
  -c:v copy -c:a copy -c:s mov_text \
  -metadata:s:s:0 language=dan -metadata:s:s:0 handler_name=Dansk \
  -metadata:s:s:1 language=eng -metadata:s:s:1 handler_name=English \
  -metadata:s:s:2 language=ukr -metadata:s:s:2 handler_name="Українська" \
  -disposition:s:0 default -disposition:s:1 0 -disposition:s:2 0 \
  -movflags +faststart video_3lang.mp4

# MKV: the same tracks as SRT
ffmpeg -i video.mp4 -i subs.da.srt -i subs.en.srt -i subs.uk.srt \
  -map 0 -map 1 -map 2 -map 3 -c copy -c:s srt \
  -metadata:s:s:0 language=dan -metadata:s:s:1 language=eng -metadata:s:s:2 language=ukr \
  -disposition:s:0 default video_3lang.mkv

A trap we hit: in MP4 the track name was not kept with title; it has to go in handler_name. Video and audio are copied without re-encoding, so it takes a moment, and when we extracted the tracks again the Ukrainian text was unchanged.

Burned in: one file per language for Reels and TikTok

For Reels and TikTok we burn the text in and make one video per language, so everyone sees it regardless of app or settings:

for lang in da en uk; do
  ffmpeg -i video.mp4 \
    -vf "subtitles=subs.$lang.srt:force_style='FontName=Arial,FontSize=20,Outline=2,Alignment=2,MarginV=40'" \
    -c:v libx264 -crf 20 -preset medium -pix_fmt yuv420p -c:a copy \
    -movflags +faststart video_$lang.mp4
done

Arial has Cyrillic glyphs, and libass split the long sentences into two lines by itself. Two videos with tracks and three burned-in ones took 4.8 seconds for a 23-second clip. For vertical video use the 9:16 recipe with setsar=1 and MarginV=110 from the ffmpeg page, so the text does not end up under the app buttons.

What does it cost?

Translated subtitles in English and Ukrainian

The base figure is our own measurement: about 900 characters of Danish text per minute of speech. gpt-6-luna costs $0.10 per million tokens in and $0.50 out. We assume 450 tokens in and 600 out per minute and language, about 0.23 øre. DeepL gives a free one-time credit of 1 million characters, and its Growth plan is €23.80 a month billed annually, with 12 million characters a year.

Per month4 reels of 1 min12 reels of 1 min4 YouTube videos of 10 min
Language-minutes (2 languages)82480
Characters to translate7,20021,60072,000
Local model on your own MacDKK 0DKK 0DKK 0
gpt-6-luna via APIDKK 0.02DKK 0.06DKK 0.19
DeepL free one-time credit lasts138 months46 months13 months
Proofreading (assumption)40 min = DKK 233120 min = DKK 700400 min = DKK 2,333
Excluding VAT, except DeepL, whose price includes VAT. DKK 6.80 per dollar, 7.47 per euro. Prices checked 20.11.2026. Proofreading: our assumption of 5 minutes per video minute per language at DKK 350 an hour.

The translation itself costs next to nothing. What you pay for is the person who proofreads. Skip that, and sooner or later you publish a video in which the clinic opens at 8:30 instead of 7:30. What the tools cost in themselves is on the cost page.

What we have not tested: DeepL’s quality (we did not use an account), paid dubbing tools, smaller local models, and a real recording with background noise. The test is small: 9 sentences and a computer voice. Treat it as a bearing, not a verdict.

Sources

Last reviewed: 2026-11-26

Questions about translated subtitles

Can Whisper translate Danish subtitles into English?

It can, but badly. In our test the large model got eight of nine sentences wrong and the turbo model did not translate at all. Whisper only translates into English, never into Ukrainian.

What is the best free way to translate subtitles?

Make Danish subtitles with whole sentences, fix them, and translate with a local language model and a glossary. In our test the English was error-free and the Ukrainian had two small slips.

Can we have several languages in one Instagram video?

We don’t. For Reels and TikTok we make one burned-in video per language so the text always shows. YouTube and MP4 files on your own website can carry several tracks the viewer chooses between.

Why does “halv 8” become 8:30?

Because “half eight” in English means 8:30, while “halv otte” in Danish is 7:30. Put times in the glossary and always check times and prices in the translated text.

Fixed price, no commitment

Get a fixed price for your video task

Tell us briefly what you use today and what you want to achieve. A person answers by e-mail with a proposal and a fixed price before any work starts.

  • A fixed price before we start
  • An answer by e-mail, no calls
  • Your details are used only to answer you

Fields marked with * are required.

What is it about?