Last active
December 26, 2019 20:46
-
-
Save geoffroymontel/7db00e9e23c695e6a12b68c8942161e5 to your computer and use it in GitHub Desktop.
extract srt from video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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