So I have MKV/MP4 with multiple audio tracks and multiple subtitle tracks.

I want to remux the video so only 1 audio and subtitle is present. On OS X, I currently use a tool called MP4Tools/MKVTools.

It lets me select/tick which tracks I want in the output file. (apologies since I cannot find a video on my Mac that has multiple audio/subtitles).

MP4Tools screenshot

As can be seen from the screen (one with red line), subtitles are process in 2 ways. burned (video will be reencoded) and mux (video will NOT be reencoded). --I would like to have both options. And video and audio both have a passthrough option which I would like to have.--

I've looked at the MP4tools "package" and it seems it's just a frontend to ffmpeg. I'm hoping there's something similar in Linux/Ubuntu.

Thanks :)


Check out mkvtoolnix. Think it might do what you need it to.


Edit: sudo apt-get install mkvtoolnix mkvtoolnix-gui

enter image description here

  • from what I understand (since I've used mkvtoolnix on windows), I still need a GUI front-end. MKVToolnix is command-line only. Thanks though :) – mrjayviper Jun 28 '16 at 23:33
  • 1
    There's a gui. I edited my post to include a screenshot. – leetwanker Jun 30 '16 at 0:10

Handbrake does all these things and more.

Can be installed with sudo apt-get install handbrake.

Website : https://handbrake.fr/

  • As a regular user of handbrake, I honestly think handbrake --will-- always reencode the audio/video though. I have never seen an option for just remux which I what I want to do. :) – mrjayviper Jun 28 '16 at 1:38
  • 1
    Ok, I understand that. However, if you want permanent subtitles, they need to be burned in and the video will be reencoded with subs overlayed. If you don't want that, then just use a subtitle file and make sure it's in the same folder. Most video players will use the text-based sub files with no issues. Handbrake is probably your best bet in Linux. Not sure if kdenlive has these options you're looking for though. – Dorian Jun 28 '16 at 1:46
  • I never said I --only-- want permanent (burned in) subtitles. I said I want to have both options :). And even if I use a separate subtitle file. I still need to remux only the audio tracks that I want. And handbrake will never do a "copy". It will always reencoded both audio/video from my experience. – mrjayviper Jun 28 '16 at 2:16

You can use my dmMediaConverter (ffmpeg GUI) and choose to burn the subtitle because mp4 container does not accest subs. If you choose mkv as output then there is no trouble. Just disable autio streams that you don't need. This process is without reencoding so it is very fast and no quality loss. Enjoy!

dmMEdiaConverter screenshot

  • mp4 can have subtitle tracks inside it. Doesn't have to be burned in. How do I know? I've inserted many many subtitle tracks (most often downloaded from public subtitle sites) using the OS X I mentioned. :) I'll check out your suggestion! :) – mrjayviper Dec 14 '16 at 9:51
  • mdalacu Where can i download it? I tried looking for the app on Ubuntu 16.04.3 and it's not there. I clicked on the link on the website you linked and it gives a 404. thanks – mrjayviper Sep 14 '17 at 0:12
  • @mrjayviper dmsimpleapps.blogspot.ro/2014/04/dmmediaconverter.html You should download the corresponding x86 or x64 DEB file from "Download app (GDrive folder)" link since Ubuntu software center no longer publishes deb files.... :/ I hope that that helped you. – mdalacu Sep 14 '17 at 13:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.