ffmpeg:subtitles:extract_subtitles
This is an old revision of the document!
Table of Contents
ffmpeg - Subtitles - Extract subtitles
For a single subtitle
If there is only one subtitle track.
ffmpeg -i m.m4v -map 0:s:0 sub.srt
Where multiple subtitle tracks exist
ffmpeg -i m.mp4 -map 0:s:0 eng.srt ffmpeg -i m.mp4 -map 0:s:1 ita.srt ffmpeg -i m.mp4 -map 0:s:2 fre.srt
NOTE: This is assuming the mapping points to the correct audio languages.
- To check the mappings, use
ffmpeg -i input.mp4
ffmpeg/subtitles/extract_subtitles.1737220915.txt.gz · Last modified: 2025/01/18 17:21 by peter