Skip to content

Instantly share code, notes, and snippets.

@abjdiat
abjdiat / sub-extractor
Last active December 13, 2022 20:22
Bash Script To Extract Subtitles From MKV file
#!/usr/bin/bash
nano sub-extractor.sh
###paste the following
filename="$1"
if [[ $filename ]]
then
m=$(mkvinfo $filename|grep 'No EBML head found');
if [[ $m ]];
then echo "This is not a valid mkv file";
else