Extract MP4 Or MKV Subtitles


Extract MP4 or MKV subtitles from videos, using the excellent MKVToolNix.

A set of tools for creating, modifying and inspecting Matroska files under Linux, other Unices and Windows.

To extract subtitles from Matroska (MKV) files, you need the mkvtoolnix package.

The program is LUI-based, which means you run commoands in a terminal window, but there is also a GUI for it available.

Note: OpenSuse is no longer supported!

Extract MP4 or MKV subtitles from videos, using the excellent MKVToolNix.

If you prefer working with a GUI ( Graphical User Interface:

sudo apt-get install mkvtoolnix-gui

Press Enter,

How to update the software:
PS, make sure you have installed:

sudo apt-transport-https

Press Enter,

wget -q -O - https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt | sudo apt-key add -

Press Enter, then.

Add this to etc/apt/sources.list, by typing:


Enter password, then type:

gedit /etc/apt/sources.list

Copy and add these lines:

deb https://mkvtoolnix.download/debian/ buster main

deb-src https://mkvtoolnix.download/debian/ buster main

Save the file and exit, by typing exit and pressing Enter in the terminal window.

sudo apt-get update

Press Enter,

sudo apt install mkvtoolnix mkvtoolnix-gui

Press Enter, done.

How to install if already the latest version in Debian 10 repository:

sudo apt-get install mkvtoolbox

Enter, done!

How to use the software via a terminal window:

cd downloads

Press Enter.

cd folder

Run the following command to determine which ID:

mkvmerge -i input.mkv ( video name.mkv )


Track ID 0: video (MPEG-4p10/AVC/h.264)
Track ID 1: audio (AC-3/E-AC-3)
Track ID 2: subtitles (SubRip/SRT)

In this case it is ID2, we want, so run:

mkvextract tracks input.mkv 2:subtitlename.srt

When it shows 100%, you can open your subtitle file in Gnome Subtitles.

Developers website


Library categories: 

Games For Linux

Windows has always been the preferred platform for gaming, but after STEAM's interest in Linux more game developers are making their games natively available for Linux.


All information on this website is published in good faith and for general educational purposes and for use in safe testing environments only. While linuxexperten.com strives to make the information on this site as accurate as possible, linuxexperten.com does not warrant its completeness, reliability and accuracy.

We are not responsible for any losses or damages associated with the use of our website. While we strive to provide only links to useful websites, we have no control over the content of these sites and links to other sites do not constitute a recommendation for all content contained on these websites.


Site Information

This is a professional review site that receives compensation from the companies whose products reviewed. Each service or product are thoroughly tested and given high marks if considered to be the very best. Independently owned and the opinions expressed here are no one elses.


Limited Time Offers

Coming soon...