Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Plex Client for Apple TV (2G)

quiqueckquiqueck Plex Dev TeamPosts: 329Members
Experimental Plex Plugin for the iOS based ATV
I have been playing around with Jailbreak for the new ATV and put together a Tech-Demo that brings the first Plex Client to the new Apple TV. You can get a rough Idea by watching this video.

For detailed (and up-to-date) install instructions please have a look at PLEX-Wiki or Ultimate Guide to Plex9 on AppleTV 2G with 4.2.1.




Known Issues
The Software so far is nothing more than a proof of concept, which isn't tested at all. However there are some known issues:
  1. "Local Servers" screen does only update when you press the up or down button on your remote
  2. Larger Sections timeout while they are loaded and do never show up
  3. Only Video playback / Music (thanks to b0been) is working (no images, no App-Management)


The following explains how you can install (and later on update) the plugin on your (Jailbroken) ATV. Use the software at your own risk and don't blame anyone except yourself if your ATV blows up in the process. Consider this the last warning!!!

Prepare the Media Server
Before you install the actual plugin you need to prepare the Plex Media Server (it needed some tweaks before it would talk to the ATV). Since those changes are considered 'beta', you need to tell your PMS to download beta plug-ins, by enetering the following URL in a Safari running on the same machine as the media server: (URL removed)

After that start Plex and check for updates in the PlexOnline section.


Enable a higher Quality (optional)
This part is optional, but if you feel like experimenting a lot, you might want to install a testing built of ffmpeg, that enables higher bitrates for the (currently) highest available quality (which is the only quality your ATV will use). This will also increase the image quality on other iOS devices, however you will need a potent Mac for the encoding! So If you still feel like installing use the following two commands in a Terminal on the Mac running your Media Server:

curl http://ambertation.de/downloads/PLEX/ffmpeg > ~/Downloads/ffmpeg
cp ~/Downloads/ffmpeg ~/Library/Application\ Support/Plex/Plex\ Media\ Server.app/Contents/Resources/


If you not use this, the plugin will still work, but the image-quality might not be on par with what you expect.


Install the Plugin
First off: you need to Jailbreak your Apple TV. A nice little instruction can be found on awkwardtv.org. I suggest you use the Pawnage method. For the sake of the following instruction I assume thet the IP-Address of your ATV is 169.10.11.12 (instead of the IP you can also use apple-tv.local), and that you can log in using ssh.

  1. Start your ATV and log in to your ATV using ssh
    ssh root@169.10.11.12
    

    It will ask you for your password, which (if you did not change the default) is alpine. (I strongly suggest you change the password using the passwd command!!!)

  2. In that ssh session, you need to add new cydia sources using
    echo "deb http://www.ambertation.de ./downloads/PLEX/" > /etc/apt/sources.list.d/plex.list
    echo "deb http://awkwardtv.dyndns.tv/ stable main" > /etc/apt/sources.list.d/awkwardtv.list
    

  3. Now update your cydia database using
    apt-get update
    

  4. Install the plugins (and its dependencies like beigelist by DHowett) with
    apt-get install com.plex.client-plugin
    

  5. The install script restarts the GUI for you, if it did not, you can do it manually and hope that it comes back
    killall Lowtide
    

    or (if you are on 4.2 or later)
    killall AppleTV
    

    If the UI does not come up again, you probably have to restore your ATV!


That is it. You should see the PLEX menu item now. If you experience any problems (which you almost certainly will :) ) just report back here. But remember the ATV is just a hobby :D


Updating the Plugin
Once in a while I might release an updated version for the plugin, so once in a while you might want to check for updates and install them. Here is how that will work:
  1. Start your ATV and log in to your ATV using ssh
    ssh root@169.10.11.12
    

  2. In that ssh session enter
    apt-get update
    apt-get upgrade
    






Have fun and many thanks to the people (DHowett, awkwardtv.org and the iPhone Dev Team) who enabled us to create such wonderful plugins in the first place.
«13456789

Comments

  • SkuiD87SkuiD87 Posts: 287Members, Plex Pass Plex Pass
    WOW!

    This is amazing stuff.

    I'll get onto this right away. I'll let you know how I get on.

    Quick question about Enabling higher quality, you say that a potent Mac is required. Just how powerful are we talking? I've got a Quad core 2.8 GHz i7 with 8GB Memory. Is that enough for high quality or should I skip that step?

    Really appreciate your hard work btw...

    Many Thanks!!
  • quiqueckquiqueck Plex Dev Team Posts: 329Members
    SkuiD87 wrote:

    Quick question about Enabling higher quality, you say that a potent Mac is required. Just how powerful are we talking? I've got a Quad core 2.8 GHz i7 with 8GB Memory. Is that enough for high quality or should I skip that step?


    With the above ffmpeg version my 2.4GHz C2D is at its limits
    However, everything with an i7 should be able to handle it.
  • realitymonkeyrealitymonkey Posts: 120Members
    On my way to buy an Apple TV right now just one question by only video playback no audio working do you mean that if I play a TV show I will get the video with audio or will I just see the pictures ?
  • quiqueckquiqueck Plex Dev Team Posts: 329Members
    edited November 2010
    You get video (including audio) but music will not play.

    And keep in mind, that this is a tech demo. So before you get yourself an ATV you might want to wait until others were able to use it :D
  • kylerwkylerw Posts: 317Members, Plex Pass Plex Pass
    Sweet!!! You just made my day!
  • realitymonkeyrealitymonkey Posts: 120Members
    Cool happy with that and the tech demo fact. I have been wanting to get one for a while so this is a good excuse is there any chance that plugins will work as well ?
  • quiqueckquiqueck Plex Dev Team Posts: 329Members
    Everything that sends a video (including plugins) should work.
  • realitymonkeyrealitymonkey Posts: 120Members
    Even better give me two hours ( need to finish a budget) and I will report back
  • SkuiD87SkuiD87 Posts: 287Members, Plex Pass Plex Pass
    edited November 2010
    Could someone post a link to some instructions on SSH once the AppleTV is jailbroken? How do I find the IP address of my device? I've managed everything up until this point...

    Thanks in advance for any help...

    EDIT: Nevermind...just found the following link: Guide for SSH into AppleTV 2G
  • kylerwkylerw Posts: 317Members, Plex Pass Plex Pass
    apple-tv.local should work (if you haven't changed the name, sub in your name if you have) but you can find the IP in the settings.
  • quiqueckquiqueck Plex Dev Team Posts: 329Members
    Go to the settings menu on your Apple TV and select Network. The screen that opens should list the IP-Address of the device.

    Then you open a Terminal on your mac and enter ssh root@IP.
  • SkuiD87SkuiD87 Posts: 287Members, Plex Pass Plex Pass
    OK.... Jailbroken firmware being loaded onto the Apple TV now.

    Btw, when I did 'Check for Updates' in the Plex Online menu, it said that there were no updates to install. Is this whats supposed to happen? I'm running .9.2.2
  • quiqueckquiqueck Plex Dev Team Posts: 329Members
    edited November 2010
    Please check your history (in plex online). A new system.bundle should have been installed.
  • SkuiD87SkuiD87 Posts: 287Members, Plex Pass Plex Pass
    It says I've got Version: 191.1178
  • quiqueckquiqueck Plex Dev Team Posts: 329Members
    edited November 2010
    SkuiD87 wrote:

    It says I've got Version: 191.1178


    Sorry, I did install it by other means. So I don't know which version it's supposed to be. If videos do not start to play, it might not be the correct version.


    EDIT:
    Just checked on another machine, and it just installed an 191.1178 update for System. So I'd say that is the correct version.
  • SkuiD87SkuiD87 Posts: 287Members, Plex Pass Plex Pass
    edited November 2010
    So how do I get the correct version? The method above doesn't seem to be working for me...

    Edit: Just saw your edit. OK just waiting for jailbreak & then I'll post results. Seems like the restore has frozen. Hasn't moved for ages...Is this normal?
  • quiqueckquiqueck Plex Dev Team Posts: 329Members
    edited November 2010
    SkuiD87 wrote:

    Seems like the restore has frozen. Hasn't moved for ages...Is this normal?


    I guess it is. I remember reading that it might appear to stop...
  • SkuiD87SkuiD87 Posts: 287Members, Plex Pass Plex Pass
    Well...all I can do is wait then...

    Anyone else have any progress?
  • realitymonkeyrealitymonkey Posts: 120Members
    edited November 2010
    My restore has kicked me out twice trying for a third time now (fingers crossed)

    Just worked will plug it all up now
  • SkuiD87SkuiD87 Posts: 287Members, Plex Pass Plex Pass
    Aha...just figured out what was causing the restore to hang.

    If you have Wifi sync installed, you need to uninstall it otherwise the restore will just hang before completion.
«13456789
Sign In or Register to comment.