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.srtWhen to use it
- subtitle backup
- caption editing
- MKV subtitle tracks
How it works
- Upload a video that contains subtitles.
- Run the subtitle mapping command.
- Download the extracted subtitle file.
Option reference
| Option | What it does |
|---|---|
-map 0:s:0 | Selects the first subtitle stream from input 0. |
subtitles.srt | Writes an SRT subtitle file. |
input.mkv | Common 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.