User Tools

Site Tools


ffmpeg:subtitles:extract_subtitles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ffmpeg:subtitles:extract_subtitles [2025/01/18 17:19] – created peterffmpeg: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 
 +</code> 
 + 
 +---- 
 + 
 +===== 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
 </code> </code>
  
ffmpeg/subtitles/extract_subtitles.1737220784.txt.gz · Last modified: 2025/01/18 17:19 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki