ffmpeg:subtitles:extract_subtitles
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ffmpeg:subtitles:extract_subtitles [2025/01/18 17:19] – created peter | ffmpeg:subtitles:extract_subtitles [2025/01/18 17:27] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ffmpeg - Subtitles - Extract subtitles ====== | ====== ffmpeg - Subtitles - Extract subtitles ====== | ||
+ | |||
+ | ===== For a single subtitle ===== | ||
+ | |||
+ | If there is only one subtitle track. | ||
<code bash> | <code bash> | ||
- | ffmpeg -i m.mp4 -map 0:s:0 eng.srt | + | ffmpeg -i input.mp4 outfile.srt |
- | ffmpeg -i m.mp4 -map 0:s:1 ita.srt | + | |
- | ffmpeg -i m.mp4 -map 0:s:2 fre.srt | + | ffmpeg -i input.mp4 -map 0:s:0 sub.srt |
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Where multiple subtitle tracks exist ===== | ||
+ | |||
+ | <code bash> | ||
+ | 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 | ||
</ | </ | ||
ffmpeg/subtitles/extract_subtitles.1737220784.txt.gz · Last modified: 2025/01/18 17:19 by peter