Converting videos from mkv to mp4

There are several ways of converting videos from mkv format to mp4 format, and some of them allow you do so without re-encoding the video or audio.


It might be the best choice if you don’t mind its dazzling command line parameters. An example of its usage:

ffmpeg -ss 00:01:15.000 -i input.mkv -vcodec copy -acodec copy -scodec copy -map 0:0 -map 0:2 -map 0:5 -t 01:00.00 output.mp4

The command above asks ffmpeg to do followings:

  1. convert input.mkv to output.mp4
  2. trim the video to keep the portion starts from 00:01:15.000 and lasts one hour (by -t 01:00.00)
  3. only process stream 0:0, 0:2 and 0:5, ignore the other streams (e.g. unwanted audios and subtitles)
  4. copy selected streams directly into output without re-encoding them

Of course it can also be used for video, audio and subtitle transcoding with mux and demux. Check out its Wiki and command line document.

MKVToolNix and MKVExtractGUI-2

These two are useful for handling mkv files. MKVExtractGUI-2 provides user interface for extracting streams from mkv files using MKVToolNix, the later has built-in mmg.exe for merging streams.

MP4Box and MkvToMp4

MP4Box is a command line utility of creating MP4 files and it is part of GPAC. There are several tools were built around it like YAMB and my MP4box GUI. MkvToMp4 makes a step further by putting mkv extract tool from MKVToolNix and MP4Box together to make mkv to mp4 converting an one step task.


This is for everything else into mkv or mp4.


Posted on November 21, 2012, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: