MKVToolNix



I streamed a few DJ sets over the last few weeks with a bunch of friends as part of ‘covidcore’, an online get-together while we’re all in isolation. It’s been a while since I’ve played any DJ sets but it was great fun and thankfully I didn’t make too many mistakes.

Anyway, It was my first streaming experience and I found it a breeze to set up thanks to Twitch and OBS. When reviewing my recordings I noticed that my microphone level was pretty low so I decided to bust out the audio track from the video and raise it. Also when uploading my video to Youtube I also got a copyright notice about one the clips in my video which was subsequently being blocked, so I decided to edit that out too.

Here is how you can do it.

Note: I’m on a mac so all of the instructions are for that, but apart from installation the rest should be platform agnostic.

Steps

Mkvtoolnix gui for windows

Mkvtoolnix Mac

  • Install mkvtoolnix
  • Extract audio and video tracks from mkv file
  • Optionally convert audio track if editing needed
  • Merge audio and video tracks back in to mkv file

MKVToolNix GUI: only on Windows: when dragging & dropping files from other applications to MKVToolNix GUI the GUI will force the drop action to be a copy action, no matter which keys were pressed by the users. This prevents Windows Explorer from deleting the dragged file when the user presses shift while dropping the file onto MKVToolNix GUI.

Mkvtoolnix Add Subtitles

  1. I provide amd64 binaries for MKVToolNix for all releases and i386 binaries for 18.04. I do not provide binaries for libEBML and libMatroska anymore as they're already part of the official distribution. If those are too old MKVToolNix even bundles the current version of both libraries.
  2. Download MKVToolnix for Windows now from Softonic: 100% safe and virus free. More than 1760 downloads this month. Download MKVToolnix latest version 2.
  3. MKVToolNix is an open source application for working with Matroska media files. Quickly create a Matroska file from a huge number of supported multimedia formats and codecs. Create complex chapter structures. Edit the headers of existing Matroska files or inspect their whole structure.
  4. Apr 19, 2020 Extract audio or video from MKV files with mkvtoolnix April 19, 2020 2 minute read I streamed a few DJ sets over the last few weeks with a bunch of friends as part of ‘covidcore’, an online get-together while we’re all in isolation.

Install mkvtoolnix

mkvtoolnix is a set of command line programs for finding out information and modifying mkv (“Matroska”) files. You can install it with a GUI but I didn’t bother.

That’s it, boom!

Extract audio and video tracks from mkv file

For this step we are going to run this command

In the above command we are using mkvextract, part of mkvtoolnix, to extract the video track which is encoded using the ‘h264’ codec and also the audio track which is encoded using the AAC codec.

In order to find out what your video and audio tracks were encoded with use the following tool

Might be good to reference the docs if you have trouble there.

Optionally convert audio track if editing needed

MKVToolNix

My audio editor couldn’t open the aac file I created so I converted it to FLAC format using ffmpeg, another command line program that is insanely useful for converting audio formats (amongst other things).

So to convert I ran

Mkvtoolnix For Windows

Now I can open my flac file and edit the parts I want, like amplifying my microphone in the recording.

Merge audio and video tracks back in to mkv file

Right, now you have completed your editing we can stitch them back together again using the mkvmerge command

Mkvtoolnix Download

You can see I just merged the flac formatted audio back in. I just tried it and it worked. I need to read up a bit more on file formats to be honest so if you need more info check the docs.

Mkvtoolnix Filehippo

Hope that helps someone :)