Skip to content

Effortlessly extract subtitles from multiple MKV files with MKV Sub Extractor. Available in Powershell, Terminal, and Python versions.

Notifications You must be signed in to change notification settings

Darkfall48/MKV-Sub-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MKV Sub Extractor

The MKV Sub Extractor is a code that extracts subtitles from all MKV files in a specified folder to another folder. It supports three different subtitle formats: SRT, ASS, and MicroDVD. The code automatically creates the output folder if it doesn't exist and uses the mkvextract command-line tool to extract the subtitles. It can handle any number of MKV files, and the user is prompted to enter the input and output folder paths as well as the desired subtitle format. The code can be executed using PowerShell, Bash, or Python, depending on the user's preference.

Features

  • Supports SRT, ASS, and MicroDVD subtitle formats
  • Automatically creates the destination folder if it doesn't exist
  • Extracts subtitles from all MKV files in the source folder
  • Can handle any number of MKV files.
  • Uses the mkvextract command-line tool to extract the subtitles.

Instructions

Note: The mkvtoolnix package is required for this code to work, and can be installed using your system's package manager.

  1. Install MKVToolNix (https://mkvtoolnix.download/)

PowerShell

  1. Open PowerShell and navigate to the directory containing the script.
  2. Execute the script by running the command:
.\mkv_sub_extractor.ps1

Bash

  1. Open a terminal and navigate to the directory containing the script.
  2. Execute the script by running the command:
.\mkv_sub_extractor.sh

Python

  1. Install Python (https://www.python.org/downloads/)
  2. Execute the script by running the command:
python .\mkv_sub_extractor.py
  1. Enter the path to the input folder containing the MKV files.
  2. Enter the path to the output folder where the subtitles will be saved.
  3. Enter the desired subtitle format by entering the corresponding number (1 for SRT, 2 for ASS, 3 for MicroDVD).

The extracted subtitles will be saved in the output folder in the chosen format.

About

Effortlessly extract subtitles from multiple MKV files with MKV Sub Extractor. Available in Powershell, Terminal, and Python versions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published