Skip to content

Instantly share code, notes, and snippets.

@BoQsc
Last active October 5, 2022 17:52
Show Gist options
  • Save BoQsc/19c1e4735846ce253a63479fe6920cdb to your computer and use it in GitHub Desktop.
Save BoQsc/19c1e4735846ce253a63479fe6920cdb to your computer and use it in GitHub Desktop.
Extract srt from mkv using ffmpeg
@ECHO OFF
REM DOWNLOAD ffmpeg first: https://www.gyan.dev/ffmpeg/builds/
REM this one will extract the second subtitle from the video file.
ffmpeg -i "D:\Movies\TV Animacija\KonoSuba\Kono Subarashii Sekai ni Shukufuku wo! 2 [Dual]\[Cleo]Kono_Subarashii_Sekai_ni_Shukufuku_wo!_2_-_02_(Dual Audio_10bit_BD1080p_x265).mkv" -map 0:s:1 subs.srt
REM this one will extract srt subtitles without adding markup
ffmpeg -i "D:\Movies\TV Animacija\KonoSuba\Kono Subarashii Sekai ni Shukufuku wo! 2 [Dual]\[Cleo]Kono_Subarashii_Sekai_ni_Shukufuku_wo!_2_-_02_(Dual Audio_10bit_BD1080p_x265).mkv" -map 0:s:1 -c text subs.srt
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment