User Tools

Site Tools


ffmpeg:subtitles:extract_subtitles

ffmpeg - Subtitles - Extract subtitles

For a single subtitle

If there is only one subtitle track.

ffmpeg -i input.mp4 outfile.srt
 
ffmpeg -i input.mp4 -map 0:s:0 sub.srt

Where multiple subtitle tracks exist

ffmpeg -i input.mp4 -map 0:s:0 eng.srt
ffmpeg -i input.mp4 -map 0:s:1 ita.srt
ffmpeg -i input.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.txt · Last modified: 2025/01/18 17:27 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki