Skip to main content
8 events
when toggle format what by license comment
Feb 11, 2019 at 6:59 comment added Chindraba @evilsoup Neither -codec:s nor codec:s:0 "selects" anything. Both tell ffmpeg which codec to apply to an output stream, or streams, of subtitles. The -map option is used to select the stream(s) from the source. To select all the subtitle streams, without knowing how many there are, or their indices, use -map 0:s and if there may, or may not, be any subtitles, the map can be optional, and not cause ffmpeg to fail by using -map 0:s? See the Advanced Options in the ffmpeg docs.
Jun 2, 2018 at 18:15 comment added user25 @evilsoup -codec:s is equal to -codec:s:0 so it doesn't select all subtitles... it will extract first text track
Jun 2, 2018 at 17:31 comment added user25 @evilsoup -codec:s so what is the point to use it if it's not going to extract all subtitles at the time? -codec:s:idx seems only this will work? but this way we have to execute this command many times to extract all subtitles
Jun 2, 2018 at 17:28 comment added user25 @Stuart it doesn't extract all subtitles
Apr 5, 2016 at 19:05 comment added Stuart I used: ffmpeg -i film.mp4 -vn -an -codec:s srt film.srt that should copy all the subtitles to the srt file.
Apr 16, 2013 at 14:31 comment added evilsoup Try: ffmpeg -i E:\Routine\routine.mkv -map 0:s:0 E:\Routine\sub.srt (ffmpeg should detect that you want srt subtitles from the output file name)
Apr 16, 2013 at 9:38 comment added vijay evilsoup:i would using the following command E:\FFMpeg_Latest>ffmpeg -i E:\Routine\routine.mkv -vn -an -map 0:s:0 srt E:\Routine\sub.srt,it seems an error i got Unable to find a suitable output format for 'srt',can u tell me the command for extracting an subtitle in video...
Apr 16, 2013 at 9:06 history answered evilsoup CC BY-SA 3.0