abelian
abelian

Reputation: 203

Extract subtitles from mp4 using ffmpeg

I've been trying to extract subtitles from an mp4 file but I can't get the output format right.

I have reason to believe that this is an image based subtitle format.

What's the correct command the extract the subtitles so that I can view the subtitle images?

Thank you!

enter image description here

Upvotes: 1

Views: 2227

Answers (2)

salfter
salfter

Reputation: 119

The OP asked to extract subpictures, not text subtitles. The correct command to extract subpictures would be something like this:

ffmpeg -i src.m4v -c copy -map 0:2 dest.en.sup

Change the "2" in the parameters to -map to select the track with subpictures.

If you do have text subtitles (as opposed to subpictures) to extract, this will work:

ffmpeg -i src.m4v -c srt -map 0:2 dest.en.srt

Upvotes: 0

Dirk V
Dirk V

Reputation: 1469

You can do it this way:

ffmpeg -i my_file.mp4 outfile.srt

Upvotes: 2

Related Questions