Identify which track contains the subtitles:
$ ffmpeg -i video.mp4
...
Stream #0:1(und): Audio: [...]
Stream #0:2(eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)
Metadata:
handler_name : SubtitleHandler
Stream #0:3: Video: [...]
Then, replacing -codec:s:X.Y
with the actual stream channel found in the output above:
ffmpeg -i video.mp4 -vn -an -codec:s:0.2 srt video.srt