How to Extract Subtitles from a Video (MP4, MKV, Burned-In)

, Founder · Updated

How to Extract Subtitles from a Video (MP4, MKV, Burned-In)

How you extract subtitles from a video depends on how they are stored. If the subtitles are a separate track you can switch on and off, you can copy them out losslessly in a minute with ffmpeg, MKVToolNix or Subtitle Edit. If they are burned into the picture, there is no track to extract: you either read the text off the frames with OCR or generate new subtitles from the audio with speech recognition.

This guide shows how to tell which case you have, the exact commands for MP4 and MKV, what to do with image-based tracks, and the two routes for burned-in or missing subtitles.

First: are the subtitles embedded or burned in?

Open the video in a player such as VLC and look at the Subtitle menu, then Sub Track. If you see one or more tracks listed, and the text disappears when you choose "Disable", the subtitles are embedded (also called soft subtitles). If the text stays on screen no matter what, it is part of the image (hardcoded, or open captions).

What you haveHow to tellHow to extractResult
Embedded text track (SRT, ASS, mov_text, WebVTT)Listed under Sub Track, can be turned offffmpeg, MKVToolNix, Subtitle EditExact original text and timing
Embedded image track (Blu-ray PGS, DVD VobSub)Listed under Sub Track, but tools export .sup or .idx/.sub, not textExtract, then OCR in Subtitle EditText after OCR, needs proofreading
Burned-in subtitlesNo track; text can't be turned offVideo OCR, or transcribe the audioNew file you have to check
No subtitles at allNothing on screen, no trackTranscribe the audioNew subtitles from speech
Online video (YouTube)CC button on the playerUse the platform's transcript or download toolsDepends on the platform

For a refresher on what SRT, ASS, VTT, SUP and IDX actually are, see subtitle file formats explained.

How to extract subtitles from MP4 or MKV with ffmpeg

ffmpeg is free, runs on Windows, macOS and Linux, and handles both MP4 and MKV. It is a command-line tool, but you only need two commands.

1. List the subtitle tracks.

ffprobe -v error -select_streams s -show_entries stream=index,codec_name:stream_tags=language -of csv=p=0 input.mkv

This prints one line per subtitle stream with its index, codec (for example subrip, ass, mov_text, hdmv_pgs_subtitle) and language tag.

2. Extract the track you want. The first subtitle track is 0:s:0, the second 0:s:1, and so on. In ffmpeg's documentation, s is the stream specifier for subtitles, and -map picks which streams go into the output.

  • To SRT (works for text tracks, including the mov_text tracks inside MP4 files):

    ffmpeg -i input.mp4 -map 0:s:0 subtitles.srt

  • Keep ASS styling (fonts, colors, positions) by copying instead of converting:

    ffmpeg -i input.mkv -map 0:s:0 -c:s copy subtitles.ass

  • Second language track to WebVTT:

    ffmpeg -i input.mkv -map 0:s:1 subtitles.vtt

If ffmpeg throws an error about the subtitle encoder, the track is probably image-based (PGS or VobSub). ffmpeg can't turn pictures of text into text. The documentation notes that a transcode from an image-based subtitle stream to a text-based encoder is expected to fail. Copy it out with -c:s copy into a .sup file and see the OCR section below.

How to extract subtitles from MKV with MKVToolNix

If you prefer a tool built specifically for Matroska, mkvextract (part of MKVToolNix) copies tracks out without touching them.

  1. Find the track IDs: mkvmerge --identify movie.mkv

  2. Extract by ID: mkvextract movie.mkv tracks 2:subtitles.srt

  3. Several at once: mkvextract movie.mkv tracks 2:english.srt 3:spanish.ass

mkvextract writes the format the track already uses, whatever extension you type: plain text tracks become SRT, SSA/ASS stay SSA/ASS, WebVTT stays WebVTT, Blu-ray PGS becomes a SUP file and DVD VobSub becomes a SUB file plus an IDX index. MKVToolNix also has a graphical app for muxing, and community GUIs exist for extraction, but the command line above is the documented route.

How to extract subtitles with VLC

A common question, with a short answer: VLC is great for checking which subtitle tracks a file contains and for loading an external SRT, but it has no simple "save subtitle track as SRT" command. Use VLC to identify the track, then extract it with ffmpeg, MKVToolNix or Subtitle Edit.

The no-command-line option: Subtitle Edit

Subtitle Edit is a free, open-source subtitle editor for Windows, macOS and Linux (see its GitHub page). It can read subtitle tracks from MKV and MP4 files, and you can then save them as SRT or another format. It is also the tool for the next step, OCR. For a wider look at editors, see the best subtitle editing software.

Image-based tracks (SUP, IDX/SUB): convert with OCR

Blu-ray and DVD subtitles are stored as pictures. Extracting them gives you a SUP or IDX/SUB file, which most players and editors can't use as text. To turn them into SRT:

  1. Extract the track with mkvextract or ffmpeg (-c:s copy).

  2. Open the SUP or IDX file in Subtitle Edit. It opens the OCR window, which recognizes the text in each image. Its changelog lists several OCR engines, including Tesseract and its own nOCR.

  3. Proofread. OCR confuses similar shapes (l and I, rn and m) and italics. Subtitle Edit's spell check and OCR replace lists catch the common errors, but read it through.

  4. Save as SRT.

How to extract burned-in subtitles from a video

Hardcoded subtitles are pixels in every frame. You have two options, and which one is right depends on what the subtitles say.

Video OCRTranscribe the audio
How it worksReads the text off video framesRecognizes the speech and creates new subtitles
Gives youThe exact text shown on screenWhat was said, with new timing
Use it whenThe burned-in text is a translation or differs from the speechThe subtitles match the spoken language, or there are none
Weak spotsBusy backgrounds, stylized fonts, moving textNoisy audio, music over speech
ToolsSubtitle Edit (Video OCR) and similarAny speech-to-text subtitle generator

Subtitle Edit's changelog lists a Video OCR feature for burned-in subtitles, so the same free tool covers both image-based tracks and hardcoded text.

The key point: if a Spanish film has burned-in English subtitles and you want those English lines, only OCR gets them, because nobody speaks English in the audio. If the burned-in text simply matches what people say, transcribing the audio is usually faster and cleaner than OCR, because speech recognition doesn't care about fonts, outlines or busy backgrounds.

Generate subtitles from the audio

This is also the route when a video has no subtitles at all. Upload the file to an SRT generator and download a timed subtitle file. BlaBlaScribe, for example, accepts MP4, MOV, MKV and other common formats up to 8 GB, transcribes 120+ languages with accuracy up to 99.8% on clear audio, and lets you fix lines in the editor before exporting SRT (free plan) or VTT (paid plans). It does not read on-screen text, so for translated burned-in subtitles, use OCR. It also doesn't accept AVI; convert first with the free video converter, which runs in your browser.

You get 30 free minutes once on sign-up: short files are transcribed in full, long files for the first 10 minutes. A feature film needs a minute pack (from $5 for 50 minutes) or a plan; see pricing.

After extracting: convert, clean up, reuse

A note on rights: extracting subtitles from your own videos or for personal accessibility is routine. Subtitles on commercial films and series are copyrighted, so don't republish them.

Frequently asked questions

How do I extract subtitles from an MP4 file?

Run ffmpeg -i input.mp4 -map 0:s:0 subtitles.srt to save the first subtitle track as SRT. If the MP4 has no subtitle track, the subtitles are burned in or missing, and you need OCR or speech-to-text instead.

How do I extract subtitles from an MKV file?

Use mkvmerge --identify movie.mkv to find the track ID, then mkvextract movie.mkv tracks ID:subtitles.srt. ffmpeg and Subtitle Edit also work.

Can you extract hardcoded subtitles from a video?

Not as a track, because they are part of the image. Use video OCR to read the on-screen text, or transcribe the audio to create a new subtitle file if the text matches the speech.

Can VLC extract subtitles?

VLC shows which subtitle tracks a file has but has no simple export to SRT. Use ffmpeg, MKVToolNix or Subtitle Edit to save the track.

Why does ffmpeg fail to convert my subtitles to SRT?

The track is most likely image-based (PGS or VobSub), which can't be converted to text without OCR. Copy it out with -c:s copy and run OCR in Subtitle Edit.

Is there a free way to extract subtitles from a video?

Yes. ffmpeg, MKVToolNix and Subtitle Edit are all free. Generating new subtitles from audio usually costs money beyond a free trial.

Turn your recordings into text you can use

Upload audio or video, paste a YouTube link, or record in the browser — and get a speaker-labeled transcript in minutes, in 120+ languages.

Try BlaBlaScribe for free

No credit card required · Stored in the EU · Never used for AI training

Top articles