Last active
October 5, 2022 17:52
-
-
Save BoQsc/19c1e4735846ce253a63479fe6920cdb to your computer and use it in GitHub Desktop.
Extract srt from mkv using ffmpeg
This file contains hidden or 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
@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