MKV to MP4 for AppleTV

swindmiller

macrumors member
Oct 21, 2011
48
0
For the AppleTv to work correctly it expects the first track to be AAC and the second track to be AC3. You can just have the AAC track, but you cannot just have the AC3 track.

iTunes *will* take it if it just has the AC3 track but no apple iOS devices or the AppleTV will play it.
Thanks, that is what I thought. It would have sucked for me to do all of this searching if I was wrong :D
For the future I will use the Apple TV preset in Handbrake but now I need to find a way to add that AAC in to my existing videos without having to re-encode the video.
 

Alrescha

macrumors 68020
Jan 1, 2008
2,157
315
Thanks, that is what I thought. It would have sucked for me to do all of this searching if I was wrong :D
For the future I will use the Apple TV preset in Handbrake but now I need to find a way to add that AAC in to my existing videos without having to re-encode the video.
MP4Tools will do this.

A.
 

chenks

macrumors 6502a
Original poster
Oct 23, 2007
964
1
UK
well the issue still remains.
the audio appears to be slightly behind the video (only very slightly).

1080p MKV with DTS track, run thru MP4Tools to remux it to M4V with stereo AAC and DD51 AC3 audio tracks.

is this an issue with MP4Tools itself? the original MKV file does not have audio sync issues.
 
Last edited:

Alrescha

macrumors 68020
Jan 1, 2008
2,157
315
is this an issue with MP4Tools itself? the original MKV file does not have audio sync issues.
I've seen the problem with certain files - but not all. There are beta versions of MP4Tools available, so you might try those. I have found that the betas work better for some files (and worse for others - sigh).

A.
 

chenks

macrumors 6502a
Original poster
Oct 23, 2007
964
1
UK
I've seen the problem with certain files - but not all. There are beta versions of MP4Tools available, so you might try those. I have found that the betas work better for some files (and worse for others - sigh).

A.
eeesh... that sounds like a chore!
will try the beta version on the same original MKV file and see what happens.

are there any other tools that do the same job? just to see if that makes any difference?
 

chenks

macrumors 6502a
Original poster
Oct 23, 2007
964
1
UK
I've seen the problem with certain files - but not all. There are beta versions of MP4Tools available, so you might try those. I have found that the betas work better for some files (and worse for others - sigh).

A.
beta version made no difference.
both stereo and dd5.1 tracks are still behind the video.
 

Diode

macrumors 68020
Apr 15, 2004
2,371
38
Washington DC
Yes, if you have told it to prefer 5.1 it will. Default is the 2-channel AAC track however.
beta version made no difference.
both stereo and dd5.1 tracks are still behind the video.
If you open the file in Subler and select the AC3 track and deselect the AAC track the ATV will auto-play AC3 if the Surround option is set to auto.

Selecting both will cause issues though.

I personally use the mkvdtstoac3 and subler to mux and I've never had a audio issue.
 

chenks

macrumors 6502a
Original poster
Oct 23, 2007
964
1
UK
I personally use the mkvdtstoac3 and subler to mux and I've never had a audio issue.
does that not result in just the 1 AC3 5.1 audio track though?
i might give it a try if it results in the same as what MP4Tools does, (ie create a stereo AAC and 5.1 AC3 track).
 

Diode

macrumors 68020
Apr 15, 2004
2,371
38
Washington DC
does that not result in just the 1 AC3 5.1 audio track though?
i might give it a try if it results in the same as what MP4Tools does, (ie create a stereo AAC and 5.1 AC3 track).
You can just re-add the audio track from the MKV and tell subler to do an AAC conversion instead of AC3 pass-thru. You will then have two tracks.
 

benh911f

macrumors 6502
Mar 11, 2009
395
164
If you open the file in Subler and select the AC3 track and deselect the AAC track the ATV will auto-play AC3 if the Surround option is set to auto.

Selecting both will cause issues though.

I personally use the mkvdtstoac3 and subler to mux and I've never had a audio issue.
Am I understanding correctly that in Subler, to get the TV to output Surround, you check the AC-3 6 ch option and unselect the AAC 2 ch?
 

FlatlinerG

macrumors 6502a
Dec 21, 2011
711
5
Ontario, Canada
I use AirVideo Server on my MacBook (works on Windows too) and the AirVideo app on my iPhone. The app lets you browse your computers hard drive and either play or covert the videos and play them directly on the AppleTV through AirPlay.
 

benh911f

macrumors 6502
Mar 11, 2009
395
164
That's correct. Just make sure both aren't checked otherwise you'll get no sound.
One more thing that I don't really understand. Firstly, all my own media I have ripped and tagged in Subler, I have checked both options, and I have had sound, however I'm assuming it's stereo and not surround.
Second, if you are supposed to check the surround tab, why does media I've purchased on iTunes have the stereo selected and surround unselected?

Thanks for the help.
 

Diode

macrumors 68020
Apr 15, 2004
2,371
38
Washington DC
One more thing that I don't really understand. Firstly, all my own media I have ripped and tagged in Subler, I have checked both options, and I have had sound, however I'm assuming it's stereo and not surround.
Second, if you are supposed to check the surround tab, why does media I've purchased on iTunes have the stereo selected and surround unselected?
[url=http://i115.photobucket.com/albums/n309/benh911f/th_ScreenShot2012-05-23at72253PM.png]Image[/URL]
Thanks for the help.
No idea - I think it tells which track to default to and will get confused if both are selected. Your amp should tell you if you are getting 5.1 or not - read your manual.

I don't have any apple bought tracks - I do what works for me so YMMV depending on ATV version, software version, amp etc.
 

DustinT

macrumors 68000
Feb 26, 2011
1,556
0
It's not free, but I use iFlicks to automatically convert avi/mkv to iTunes and add metadata. I'm pretty sure it supports 1080p mkv files.

It is also very smart about audio tracks. It will automatically preserve AC3 audio and create a 2-ch AAC track. It will also convert DTS to AC3.

I use MP4tools also, but iFlicks is automatic when scripted and does a killer job on metadata.
Agreed. I have uTorrent monitoring an RSS feed for some stuff I like to watch so it automatically downloads. Then I set iFlicks to automatically transcode that media to an AppleTV friendly format and move it automatically into iTunes. Using the scripts provided by the Dev of iFlicks it took about 20 minutes to set that all up. It's a fool proof solution and I can't imagine anything doing a better job.
 

macUser2007

macrumors 65832
May 30, 2007
1,504
200
Agreed. I have uTorrent monitoring an RSS feed for some stuff I like to watch so it automatically downloads. Then I set iFlicks to automatically transcode that media to an AppleTV friendly format and move it automatically into iTunes. Using the scripts provided by the Dev of iFlicks it took about 20 minutes to set that all up. It's a fool proof solution and I can't imagine anything doing a better job.
iFlicks is good, but it sucks for most subtitled MKVs. Even though it's supposed to work in the latest version, it doesn't in most cases. Weirdly, the developers are not even addressing the issue on their forums, even though there are enough people bitching about it.
 

JMEANS

macrumors regular
Jun 9, 2012
150
2
So I have read through this thread which was originally about changing the MKV container to ATV compatible mp4 container without changing the quality or the size of the original MKV file. I would love to accomplish this as well! I use Handbreak when i want to reduce an MKV size but have been on the look out for a program that doesnt! after reading thru this thread the conclusion I have come to is MP4Tools, iFlicks and iVI accomplish the container switch without changing the integrity of the original MKV correct? The thread sort of went off with audio sync issues and track selection, playback etc. so I just wanted some confirmation the container switch programs-Thanks Jim
 

Menneisyys2

macrumors 603
Jun 7, 2011
5,394
195
So I have read through this thread which was originally about changing the MKV container to ATV compatible mp4 container without changing the quality or the size of the original MKV file. I would love to accomplish this as well! I use Handbreak when i want to reduce an MKV size but have been on the look out for a program that doesnt! after reading thru this thread the conclusion I have come to is MP4Tools, iFlicks and iVI accomplish the container switch without changing the integrity of the original MKV correct? The thread sort of went off with audio sync issues and track selection, playback etc. so I just wanted some confirmation the container switch programs-Thanks Jim
Yes, all three can remux. Of the three, I recommend the beta version (NOT the non-beta one!!!) MP4Tools the most - the other two apps are considerably slower.
 

mic j

macrumors 68030
Mar 15, 2012
2,655
148
Yes, all three can remux. Of the three, I recommend the beta version (NOT the non-beta one!!!) MP4Tools the most - the other two apps are considerably slower.
What about Subler???? You are always a big proponent.:confused:
 

JMEANS

macrumors regular
Jun 9, 2012
150
2
Thank you! so MP4Tools Beta, i will try it!
Subler doesn't convert MKV container to MP4 container does it?! I use it all the time for tagging only... If it can switch container does it keep the file the same size? I do not want to shrink the file or mess with structure. Thanks
 
Last edited: