Easiest way to playback mkvs on AppleTV 3 (no jailbreak)

Discussion in 'All Things Apple' started by slackerinabox, Jan 18, 2013.

  1. slackerinabox

    Joined:
    Mar 15, 2003
    Messages:
    12,275
    Likes Received:
    11
    I'm running a mac mini in my home office as a media server and all was well until I upgraded my plex/appletv2 to an AppleTV3. I do like the new features of the 3 and the speed difference (and airplay mirroring works great), so rolling back to the 2 isn't ideal..

    I've heard of options mostly involving airplay work arounds. Anyone know what the most seamless one would be? Plex from my ipad worked but kinda stuttery
     
    #1 slackerinabox, Jan 18, 2013
    Last edited: Jan 18, 2013
  2. Loading...

    Similar Threads - Easiest playback mkvs Forum Date
    Ipod Podcast skip sound during playback All Things Apple Apr 20, 2016
    Easiest way of migrating everything from old iphone 4S/5 to Iphone 6+? All Things Apple Sep 9, 2014
    Easiest way to add SSD to my Macbook Cloning question All Things Apple Aug 2, 2013
    easiest way to transfer files from win7 pc to MBP on home network? All Things Apple Jul 31, 2013
    Best - easiest wayy to convert WMA > AAC or even mp3 on a mac All Things Apple Aug 19, 2011

  3. runawayprisoner

    runawayprisoner Platinum Member

    Joined:
    Apr 2, 2008
    Messages:
    2,496
    Likes Received:
    0
    The most seamless one would be to convert the MKV into MP4 files. The upside is that you can then share your iTunes library with your Apple TV, and you won't have to use AirPlay anymore. The Apple TV just automatically fetches the video from your iTunes library over the network and plays it back.

    Your iPad can also do the same while using Home Sharing. So one iTunes library can serve video contents to all of your iOS devices wirelessly.
     
  4. TheStu

    TheStu Moderator<br>Mobile Devices & Gadgets
    Moderator

    Joined:
    Sep 15, 2004
    Messages:
    11,858
    Likes Received:
    12
    I use AirVideo at home for that sort of thing. My desktop hosts up the videos, and will transcode them on the fly if necessary, I then use AirPlay within AirVideo to beam it to my AppleTV.

    Converting all of them over to an iTunes compatible format would obviously work as well.
     
  5. AkumaX

    AkumaX Lifer

    Joined:
    Apr 20, 2000
    Messages:
    12,641
    Likes Received:
    2
    let's take a step back here.

    when you encode a video, you use a video compression codec, and an audio compression codec.

    then after its done, you stick both parts (or more, such as subtitles), into a container.

    in this case, .mp4, .m4v, and .mkv are ALL containers.

    typically, you will encode videos using the h.264 codec. the raw file created (container-less) is typically in a .h264 "file".

    most players can't play "raw" files. so you have to stick them in a container.

    you can always extract raw video from containers.

    knowing all this, you can easily go back and forth between .mp4 container and .mkv container, because you would just extract the underlying video (demuxing) into .h264 raw video and change containers (remuxing)

    (note: renaming a file from .mp4 to .mkv is not the same thing as "changing" containers - you have to use a program to do that)
     
  6. TheStu

    TheStu Moderator<br>Mobile Devices & Gadgets
    Moderator

    Joined:
    Sep 15, 2004
    Messages:
    11,858
    Likes Received:
    12
    Ok, let's take a step forward. Knowing that he is on a Mac Mini, what software would he do to do that?

    And knowing that I am using Windows 8, what would I use to do that? Handbrake in both cases or...?
     
  7. Tempered81

    Tempered81 Diamond Member

    Joined:
    Jan 29, 2007
    Messages:
    6,375
    Likes Received:
    0
    Can you use airvideo to serve streaming HD .mkv's with realtime conversion to the Iphone, and then from the Iphone use Airplay mirroring to send it to the HDTV?
     
  8. runawayprisoner

    runawayprisoner Platinum Member

    Joined:
    Apr 2, 2008
    Messages:
    2,496
    Likes Received:
    0
    On Mac OS X, you can use Subler.

    http://code.google.com/p/subler/

    Note: Mountain Lion has a codec issue with Subler. The fix is also documented in that Google Code site.

    I typically just do a conversion with Handbrake since most family videos I record aren't in MKV. But if you have MKVs... then Subler will make your life a lot less miserable.
     
    #7 runawayprisoner, Jan 18, 2013
    Last edited: Jan 18, 2013
  9. AkumaX

    AkumaX Lifer

    Joined:
    Apr 20, 2000
    Messages:
    12,641
    Likes Received:
    2
    Subler for OSX (as runaway prisoner pointed out)

    For Windows, there's a multitude of programs.. but most recently I've had very good results with XMediaRecode.

    Select .mkv file
    Choose output format (Apple iPad, whatever)
    *important* under Video Tab, make sure you select Video Copy
    Add Job, Encode

    Since it's just copying the video, there is no video encoding done. Essentially it's just taking out the video stream from the .mkv and putting it in an .mp4.
    The whole thing should take less than 5-10 seconds.

    Notes:
    - for simple mkv conversion to mp4
    - (if the mkv had multiple audio tracks, you can select which one you want)
    - from the looks of it, it seems like the audio has to be re-encoded to aac (no audio copy)
    --- this might be necessary if the audio is not "apple compatible", such as ac3 (.mp4 container doesn't officially support ac3 or mp3, so apple playback would throw a fit)
    - this will only work if the underlying stream (the raw h264) was already "apple compatible":
    --- there are some video files that are ridiculously compressed using very advanced encoding techniques that apple quicktime and stuff might not like. if it doesn't play in itunes, then it won't copy to iphone/ipod/stream to apple tv
    --- in this case, you really would have to re-encode the video portion

    _______

    Different method: use MKVExtract to extract raw video and audio, then use YAMB to mux back into mp4 container (assuming the video and audio files are already "apple compatible")
     
    #8 AkumaX, Jan 18, 2013
    Last edited: Jan 18, 2013
  10. TheStu

    TheStu Moderator<br>Mobile Devices & Gadgets
    Moderator

    Joined:
    Sep 15, 2004
    Messages:
    11,858
    Likes Received:
    12
    Sweet! Thank you guys
     
  11. slackerinabox

    Joined:
    Mar 15, 2003
    Messages:
    12,275
    Likes Received:
    11
    I'm doing something similar with plex - plex server to iPad/iphone to appletv. Seems to get bogged down/stuttery, especially at anything above dvd quality (works fine for xvids, 720p+ mkvs are stuttery)
     
  12. Tyranicus

    Tyranicus Senior member

    Joined:
    Aug 28, 2007
    Messages:
    911
    Likes Received:
    4
    I had know idea this could be done. I just tried it on an mkv, and it worked flawlessly. This is amazing.
     
  13. rumpleforeskin

    rumpleforeskin Senior member

    Joined:
    Nov 3, 2008
    Messages:
    325
    Likes Received:
    4
    Im not as familiar with mac as i am with windows but surely this is a matter of choosing mp4 as his container when muxing his encoded video instead of mkv?

    MKV is not even an option for a lot of video encoders I have used on my mac

    mkvtoolnix (MKVmerge) is a good option for your windows 8 question.
     
  14. AkumaX

    AkumaX Lifer

    Joined:
    Apr 20, 2000
    Messages:
    12,641
    Likes Received:
    2

    it is, it's just the education that mp4 and mkv's aren't "different video files", but are just "wrapped" differently

    hmmm, orange juice in a glass bottle or plastic bottle? lol
     
  15. Eug

    Eug Lifer

    Joined:
    Mar 11, 2000
    Messages:
    22,025
    Likes Received:
    133
    I've had endless problems converting MKV to iTunes compatible files with Subler. I usually could get it to work, but even when it worked there often would be weird playback issues like audio sync problems.

    Finally, I just gave up.

    It's moot now though since I'm just playing my video files directly on my jailbroken Apple TV 2. Since you have both, could you use both your Apple TV 2 and Apple TV 3?
     
    #14 Eug, Jan 20, 2013
    Last edited: Jan 20, 2013
  16. silverwind

    silverwind Junior Member

    Joined:
    Nov 4, 2012
    Messages:
    1
    Likes Received:
    0
    MKV2M4V from the Mac Store for easy and fast conversion to .m4v.

    Or, play it as an mkv using Beamer.
     
  17. LAP13

    LAP13 Junior Member

    Joined:
    Jun 27, 2014
    Messages:
    1
    Likes Received:
    0
    I haven't even fully read this thread, usually I find info on forums and then just run. But I wanted to share with you, that in months of being frustrated trying to figure out how to get mkv's running on my apple tv, i just downloaded subler, and in less than a min i have a working mp4 that is playing on my apple tv. while i was writing this, the handbrake conversion finished, and will probably work too, but subler was almost instant. i don't understand all of the tech behind it, but wanted to let others know that its worth a try. video and audio quality are excellent, and the subtitles transferred as well. the last post i read was saying that the video didn't need to be converted, just "re-contained" and that appears to be exactly what happened, and it works great! the whole thing took less than a min.
     
  18. Kaido

    Kaido Elite Member & Kitchen Overlord

    Joined:
    Feb 14, 2004
    Messages:
    38,900
    Likes Received:
    424
  19. Rakehellion

    Rakehellion Lifer

    Joined:
    Jan 15, 2013
    Messages:
    12,115
    Likes Received:
    7