Browser FFmpeg recipe

Extract Subtitles Online with FFmpeg

Export the first subtitle stream to an SRT file when available.

Command

Run this FFmpeg command

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

When to use it

  • subtitle backup
  • caption editing
  • MKV subtitle tracks

How it works

  1. Upload a video that contains subtitles.
  2. Run the subtitle mapping command.
  3. Download the extracted subtitle file.

Option reference

OptionWhat it does
-map 0:s:0Selects the first subtitle stream from input 0.
subtitles.srtWrites an SRT subtitle file.
input.mkvCommon container for embedded subtitles.

Practical notes

  • This works only when the source file has a subtitle stream.
  • Some subtitle formats may need a different output extension.

FAQ

Why did no subtitle file appear?

The source may not contain subtitles, or the subtitle codec may not convert to SRT.

Can I extract the second subtitle track?

Yes. Change 0:s:0 to 0:s:1.