Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

mkv support

I have a bunch of movies in H264 format in a .mkv file/container. I cannt play these files using iTunes. I dont want to re-encode these files into mp4 .m4v format as it would for ever. Since the content is already in H264/AC3, is there a simple way to make it playable by iTunes/ATV2? I really wish iTunes had the support for .mkv format.
By the way, I have a PC AMD Athlon XP2 and it takes be for ever to re-encode these .mkv files to .mp4.

ATV2, iOS 4

Posted on Feb 21, 2011 11:13 AM

Reply
14 replies

Aug 5, 2017 9:36 PM in response to Spider_mann

Anyway, iTunes basically supports .mp4, .m4v and sometimes .mov, which can be kind of a hassle. Also, with the direction that Apple it going, I can't see them ever adding native support of formats like .avi and .mkv to iTunes. That doesn't fit into their totalitarian goal. I have 3 different kinds of video cameras for different occasions like parties and holidays and they all record different formats. Plus, .mkv lets me get 1080p quality videos without taking complete control of my hard drive space.


There is a program called Kodi which a lot of people use for illegal stuff, but can be amazing if you use it the right way. A year ago, I bought a bunch of Blu-Ray movies and recorded them into my laptop so I'm not always switching through cases and cases to find one movie, but my encoder converted everything to .mkv. I wasn't about to spend another week trying to convert all of those movies to mp4 to put them into iTunes, so I found a better optio


The great thing about Kodi though, is that you can download scrapers that download all of the metadata of the movies off of IMDB and other websites like it so you don't have to manually do it like you have to do in iTunes and it also does it for my music and movies as well. Plus, I don't have to convert them and ruin the quality with poor quality video converters like Quicktime or Handbrake.


So, consider using a program like Kodi. It's open to 3rd party developers which means that there is a lot of content that you can download, but it would be best to stay away from the illegal ones that stream movies and tv shows. It's a great program that is completely customizable and would be great if they incorporated that software into a phone OS instead of just being an app.


Anyway, I hope you found this info to be helpful. Apples aren't the best computers in the world, but they certainly are the prettiest. Who doesn't love looking at those Rose Gold iPads and Macbooks?
<Edited by Host>

Aug 6, 2017 9:23 AM in response to pyroactive32

the way to decode video is called a codec H264 is an example of that


avi and mkv not, they are containers and can contain all sorts of different codecs so if a computer program say it can play avi or mkv it has no real meaning and may not be able to play the file you try to use at all


you can read more https://www.encoding.com/blog/2014/01/13/whats-difference-codecs-containers/


to claim to have native support for avi and mkv and it being true rather then meaningless marketing would require native support for all codecs used in those 2 containers many of which require royalties

Feb 21, 2011 5:38 PM in response to Spider_mann

I really wish iTunes had the support for .mkv format.

Not likely to happen as long as QT does not natively support either AC3 or the MKV file container.

Since the content is already in H264/AC3, is there a simple way to make it playable by iTunes/ATV2?

There are many flavors of H.264. Assuming your files contain compatible video content, then all you have to do is "assemble" the data in an iTunes compatible file container. There are probably several ways to do this depending on your target media player/device. As previously indicated by Winston, this could be done using QT 7 Pro. Assuming you have the required components installed, one way may be as simple as opening the MKV file in QT 7 Pro and then saving the file to place it in an MOV file container. Another way would be to manually extract the audio and video tracks and manually assemble the with or without an added AAC converted audio track to provide playback compatibility with both iTunes and TV2. Another solution might be to use the "Movie to MPEG-4" export option to "Pass through" the video while converting the AC3 to AAC and then using QT 7 Pro to extract just the AC3 track for merging with the MP4 file data previous made.

Would have like to try a number of these options to see how they work, but unfortunately, I do not use MKV files and was not able to locate free sample file for testing purposes without having to join/sign up with some online service (which I refuse to do).

User uploaded file

Apr 15, 2011 6:58 AM in response to Spider_mann

this might be a bit of a late response but if you are looking for something to play mkv files on a windows based OS try using VLC.

It plays them fine on my mac as well as on my PC... but just installing a codec on the PC should be enough to enable WMP to play the files as well

http://www.videolan.org/vlc/

Message was edited by: Reynastus - Added link to vlc

Apr 15, 2011 11:15 AM in response to Spider_mann

Spider_mann wrote:
I have a bunch of movies in H264 format in a .mkv file/container. I cannt play these files using iTunes. I dont want to re-encode these files into mp4 .m4v format as it would for ever. Since the content is already in H264/AC3, is there a simple way to make it playable by iTunes/ATV2? I really wish iTunes had the support for .mkv format.
By the way, I have a PC AMD Athlon XP2 and it takes be for ever to re-encode these .mkv files to .mp4.


MKV is just a container, as you noted. Since the clips are already in h.264 format, you can just extract the video and audio tracks and repackage as M4V WITHOUT needing to recode.

Google for: 'subler' to see how this is done.

Apr 15, 2011 12:12 PM in response to Spider_mann

Since the content is already in H264/AC3, is there a simple way to make it playable by iTunes/ATV2?

If the H.264 video track is QT compatible (i.e., not compressed using a proprietary codec or employing hybridized profiles), and if the files will open in the appropriate application, then you can also use QT 7 Pro, MPEG Streamclip or a similar application to copy the track contents to to an MOV file container which is TV compatible. In this case the data is not re-compressed but mere copied from the MKV file container into a new, empty MOV file container using the "Save As..." file command.

User uploaded file

Oct 23, 2011 8:47 PM in response to Spider_mann

Okay - I have posponed the idea of converting the mkvs and have been using a connected interface to extend the display on to the TV. However, I did play around using Subler to re-package the mkv contents into mp4. Everything is nice except for - if the mkv has dts 6 channel audio, it gets downscaled to 2 channel aac audio in the mp4. I have no issue with ac3 6 channel. But, if the original has dts 6 channel, I do not like to loose that surround sound. Any tips? handbrake simply takes too much time and cpu - no clue what it does. I think Subler is nicer except for this DTS issue.

Apr 30, 2012 5:38 PM in response to Spider_mann

If you don't want to go through the hassle of re-encoding (which Handbrake is excellent at, but takes forever, and results in a loss of quality), then you can use a simple MKV to AppleTV converter script that I made. It can be found here:


http://www.tvmutiny.com/threads/watch-mkv-videos-on-appletv-without-re-encoding. 5/


It's the script I actually use myself (it's modified from one I made to get avi files to play on the AppleTV 1 (sadly, avi files don't play on the ATV 2 or 3). It's dead-simple to use, you just drag and drop your MKV and a MOV gets made automagically. You can then import that into iTunes and it will play great on your AppleTV, iPhone, iPad, etc.


There's quite a bit of Mac and AppleTV expertise there, so feel free to join up and ask more questions.


Cheers!

Feb 7, 2013 4:39 AM in response to Krutsch

Thanks for the Subler, good tip. Worked fine at repacking .mkv to .m4v. Tried a sample file with .mkv @ 234.3 MB, saved it as .m4v, with audio, video, subs, and chapters included. The resulting container is only 192 MB. There is no apparent quality loss, so why a smaller size? Does anyone know if it is simply a better compression format, or the .m4v cuts corners on quality?

mkv support

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.