Skip to content

Instantly share code, notes, and snippets.

View MyGit1010's full-sized avatar

MyGit1010

  • Joined Sep 4, 2025
View GitHub Profile
@MyGit1010
MyGit1010 / mkvextractTracks.sh
Created September 4, 2025 15:13 — forked from kampfgnu/mkvextractTracks.sh
batch extract subtitles from mkv files
#!/bin/bash -e
# a script that extracts the subtitle file of every mkv movie file and saves it with the same name
# copy to the folder where the mkv files live and run "./mkvextractTracks.sh" in terminal
# options: [trackID]
# example: ./mkvextractTracks.sh 1
#
# info:
# mkvextract is used to extract the subtitles, so mkvtoolnix app (which contains the mkvextract binary) is used:
# https://mkvtoolnix.download/downloads.html