Skip to main content

Script to split audio lines from .mkv files according to the subtitle

Project description


mkv-linesplit is a Python script for splitting or cutting audio segments from mkv files.

First it extracts the audio and subtitles from the mkv file, Then it splits the lines from the audio file according to the timestamps stored in the subtitles and names the output file to the corresponding line.


  1. Python3
  2. MKVToolNix

mkvextract used for extracting the audio and subtitle from the mkv file.

mkvmerge used for splitting the parts from the mkv audio.


$ pip install mkv-line-split


$ linesplit -m path/to/mkvmerge -x path/to/mkvextract path/to/mkv/file/or/directory

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mkv-line-split, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size mkv_line_split-1.0.2-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mkv-line-split-1.0.2.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page