Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a MKV file in which I want to embed an AC3 audio file. I also want to embed a SRT subtitle file into it. How can I achieve that?

Note: AC3 file is the same length of the original video.

share|improve this question
up vote 7 down vote accepted

If you have MKVToolnix installed, you can use the mkvmerge command to merge together the streams.

mkvmerge -o output.mkv -A input.mkv sound.ac3 

The -A switch makes sure no sound is taken from input.mkv. See the examples section for more.

For Windows, there exists the MKVToolnix GUI, which would make this a little easier:

In Ubuntu and similar distros, there should be the mkvtoolnix-gui package.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .