Close ad

Neither iOS nor OS X supports playback of multimedia content in the open source MKV container, which is used where the ancient AVI is not enough - for HD videos.

While many of us would like MKV support, Apple has good reasons for not supporting it. This is not a standardized container. Although it may seem strange to some, the MP4 container is an ISO/IEC 14496-14:2003 standard based on the historical QuickTime File Format (QTFF). It therefore has certain rules establishing what can and cannot be inside such a container. We are specifically interested in video encoded in H.264, which includes almost all MKV files with HD content.

H.264 video is supported by both OS X and iOS. You can play an HD video in MKV on your Mac without any problems, because today's processors have enough power to "crunch" it even without hardware acceleration. However, the situation is different for iOS devices. Although the processors in them are also increasingly powerful, it does no harm to lighten them at all, mainly due to the limited capacity of the batteries. It is enough to save an MKV file with 720p video in a third-party multimedia player. Try the result on your device. It's definitely not a pleasant experience, not to mention the poor subtitle support.

So how to enable hardware acceleration? Repack H.264 video from MKV to MP4. Download the app avidemux2, which is available for OS X, Windows, and Linux.

Important: If you're using OS X Lion, go to avidemux.app in the Finder and right-click View package contents. From the directory Contents/Resources/lib delete the files libxml2.2.dylib a libiconv.2.dylib.

  1. Open the MKV file in avidemux. It will process for a few seconds, then two alerts will pop up. Unclick according to the red highlight in the image.
  2. In Item Video leave it Copy. We want to keep H.264, so there is nothing to do with it.
  3. On the contrary, in the item Audio select an option AAC.
  4. Under the button Configure you set the bitrate of the audio track. By default, this value is 128 kbps, but if there is a higher quality audio track in the MKV, you can increase the bitrate. It would be a shame to deprive yourself of pure sound.
  5. With a button Filters you set additional sound attributes. Here is the most important item Mixer. Sometimes it can happen that the sound does not play when repacking to MP4. It will be necessary to "play" with the channel settings. In most cases, everything works correctly without any change (No change). If you do not suffer from surround sound, or if you are using 2.0 or 2.1 hardware, select the option stereo.
  6. In the item Format choose MP4 and save the video. Don't forget to add an extension to the end of the file name .mp4. The whole process takes 2-5 minutes depending on the specific file.

Once the MP4 file is saved, you can test whether everything is working correctly. If so, a 4p video can be played without any problems with an A720 processor, and 5p (Full HD) with an A1080 processor.

And since most movies and series are in English, we add subtitles directly to the MP4 file. Apple buyers download the app Subler, Windows users for example application My MP4Box GUI.

Before we start adding subtitles to MP4, it is necessary to change their encoding just to be sure. Open the subtitles in TextEdit.app in SRT format, from the menu File select an option Duplicate. Then save the new version of the file. A window will pop up with the file location. Save it anywhere under any name, just add an extension to the end of the file .srt. In the same pane, uncheck the option If the extension is missing, use “.txt”. Choose UTF-8 as the plain text encoding, thus avoiding the problem of Czech characters not being recognized.

After this simple editing of the subtitles, open the MP4 file in the Subler application. After pressing the button "+" or drag and drop the SRT file into the application window to add subtitles. At the end, for the sake of order, choose the language of the audio track and subtitles and save. Of course, if you want, insert multiple subtitles in multiple languages. That's all. As complicated as this procedure may seem to you, after a few episodes of your favorite series, it becomes a very simple and effective routine.

.