Skip to content

Instantly share code, notes, and snippets.

@geoffroymontel
Last active December 26, 2019 20:46
Show Gist options
  • Save geoffroymontel/7db00e9e23c695e6a12b68c8942161e5 to your computer and use it in GitHub Desktop.
Save geoffroymontel/7db00e9e23c695e6a12b68c8942161e5 to your computer and use it in GitHub Desktop.
extract srt from video
there is several subtitle format, SRT, STL(mainly use by Apple), etc.... and ffmpeg support a lot of them http://ffmpeg.org/general.html#Subtitle-Formats
and ffmpeg can extract them with cmd line the following sequence of command:
1) perform track identification
ffmpeg -i yourFile
2) extract the subtitle track with
ffmpeg -i yourFile -vn -an -codec:s:X.Y srt sub.srt
with X.Y the track number indicator you found from the cmd (1) .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment