Raspberry Pi



Can't wait! Keep us posted please :)


Update: I have PlexHT building on x64. I've started building the dependencies for RPi today. Some VERY good news - plexht is based off of a VERY recent version of XBMC, with RBP support already included! I won't know until the dependencies are done, but it looks VERY positive.

My main concern right now is X11. I wonder how raspbmc works around this... my bet is directfb.


thank you very much for the update: can't wait to use my raspberry as my 'official' plex client... :D

I came here looking for a way to get Plex on my RPi.

I have purchased a Plex pass to show my support for this.

I am happy to see that this may be a reality in the future.



Good luck! Would love it to have it working on my RSP :)

This thread has 42,000+ views. So many people are waiting for a Plex RPI client.



yeah man can't wait!

Dale, got your Pyplex running on Raspbian using the instructions/dependencies listed on your github (Twisted-web package is named python-twisted). Videos (with audio) play well, but I cannot get mp3s or channels to stream from the PMC (running on Windows 7). Android remote tells me playback is starting on the raspberry pi, but it does nothing.

Here’s the log of me trying to play a channel:


2013-01-21 17:24:17+0000 [-] Log opened.<br />
2013-01-21 17:24:17+0000 [-] Audio output over HDMI<br />
2013-01-21 17:24:17+0000 [-] No myPlex file at /root/.myplex.json<br />
2013-01-21 17:24:18+0000 [-] Could not login<br />
2013-01-21 17:24:19+0000 [-] Service published<br />
2013-01-21 17:24:19+0000 [-] /usr/local/lib/python2.7/dist-packages/pyplex/images/logo.png<br />
2013-01-21 17:24:19+0000 [-] UDPHandler starting on 9777<br />
2013-01-21 17:24:19+0000 [-] Starting protocol <pyplex.core.UDPHandler instance at 0x1dd0760><br />
2013-01-21 17:24:19+0000 [-] Site starting on 3000<br />
2013-01-21 17:24:19+0000 [-] Starting factory <twisted.web.server.Site instance at 0x1dd0af8><br />
2013-01-21 17:24:46+0000 [HTTPChannel,0,192.168.1.124] 192.168.1.124 - - [21/Jan/2013:17:24:46 +0000] "GET /xbmcCmds/xbmcHttp?command=PlayMedia%28http%3A//192.168.1.124%3A32400/video/thecolbertreport/fullepisodes%3B/system/%3A/services/url/lookup%3Furl%3Dhttp%253A//www.colbertnation.com/full-episodes/thu-january-17-2013-akhil-reed-amar%3B%2B%3B%20%3B%20%29 HTTP/1.1" 500 560 "-" "Python-urllib/2.6"<br />
2013-01-21 17:24:46+0000 [-] Handling command PlayMedia(['http://192.168.1.124:32400/video/thecolbertreport/fullepisodes', '/system/:/services/url/lookup?url=http%3A//www.colbertnation.com/full-episodes/thu-january-17-2013-akhil-reed-amar', '+', ' ', ' '])<br />
2013-01-21 17:24:48+0000 [-] Unhandled Error<br />
	Traceback (most recent call last):<br />
	  File "/usr/local/bin/pyplex", line 30, in <module><br />
	    main(args.analog)<br />
	  File "/usr/local/lib/python2.7/dist-packages/pyplex/core/__init__.py", line 105, in main<br />
	    reactor.run()<br />
	  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run<br />
	    self.mainLoop()<br />
	  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop<br />
	    self.runUntilCurrent()<br />
	--- <exception caught here> ---<br />
	  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent<br />
	    call.func(*call.args, **call.kw)<br />
	  File "/usr/local/lib/python2.7/dist-packages/pyplex/core/__init__.py", line 61, in handleCommand<br />
	    func(*commandArgs)<br />
	  File "/usr/local/lib/python2.7/dist-packages/pyplex/xbmc/__init__.py", line 30, in PlayMedia<br />
	    self.media = self.plex.getMedia(media_path)<br />
	  File "/usr/local/lib/python2.7/dist-packages/pyplex/plexapi/plexInterface.py", line 114, in getMedia<br />
	    return PlexMedia(mediaurl,self.myPlexToken)<br />
	  File "/usr/local/lib/python2.7/dist-packages/pyplex/plexapi/plexInterface.py", line 27, in __init__<br />
	    self.duration = int(self.partTag.attrib['duration'])<br />
	exceptions.KeyError: 'duration'<br />
	<br />
2013-01-21 17:28:04+0000 [-] You pressed Ctrl+C!<br />
2013-01-21 17:28:04+0000 [-] Unexpected error in main loop.<br />
2013-01-21 17:28:04+0000 [-] Unhandled Error<br />
	Traceback (most recent call last):<br />
	  File "/usr/local/bin/pyplex", line 30, in <module><br />
	    main(args.analog)<br />
	  File "/usr/local/lib/python2.7/dist-packages/pyplex/core/__init__.py", line 105, in main<br />
	    reactor.run()<br />
	  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run<br />
	    self.mainLoop()<br />



Couple of other issues - I have to run pyplex as su, otherwise it closes, lacking permission to write the log file, and when I try to add the username/password arguments I get "NameError: global name 'storeAuthentication' is not defined".
I have a total of two days experience in Linux or the RPi, so this could very well be user error!
Appreciate your work on this, looking forward to a GUI Plex client for the RPi!

If this is going to happen, i know a lot of people who would buy RPi in a heartbeat, myself included

+1 :slight_smile:



Ah yes, you are probably running this on debian? The package names were for gentoo my friend - good to see you got it working.

For the log file, you can just give yourself write permissions to the log directory (I only tested as root). To do this, something like "sudo chmod 775 /var/log".

As for mp3 playback, I assume you mean for audio files (music). I never got this working, because plex handles audio different than video. It shouldn't be too hard to get it working though. Right now my efforts are focused on PlexHT : )

Hey folks,



I finally got around to doing some RPi investigation yesterday. Some things to report…



[list]

[]Plex uses CMake, XBMC uses configure/automake

[
]The XBMC RPi guys hardcoded a lot of paths : (

[/list]



I was able to get CMake to run, but it errors out on architecture related issues (looking for SSE2 headers that wouldn’t exist on arm).



Getting configure to run is a clusterfsck also, as the xbmc guys hardcoded everything for cross compilation. I’m currently working on patching this.



My goal is to first get XBMC building (it’s actually a subset of plex in plexht), then try to smash the CMake files together with the XBMC RPi make files manually.



All the pieces are there, it’s just a matter of putting them together…



If anyone has experience with CMake, I could use your help. I have all of the dependencies ready to go (except for gcc 4.5, which I am building presently).



All that is left to be done is to smash two different build systems together, and bam, we should have plexht.



I’ll be spending most of this weekend hacking on this. Anyone with gentoo/cmake/automake experience would be welcome to join me : )



Sounds promising! Just got my Pi set up with PlexBMC and its amazing, really looking forward to seeing this. I can't offer anything in the way of CMake experience but I'd be happy to help optimise the Plex Mediastream skin should it need it. (Noticed the Pi doesn't deal with most skins very well!)


That sounds great!

Another update: I managed to get the XBMC portion of plex configured and compiling ( it's compiling now, but I expect it'll work).

My plan is to compare the makefiles generated from configure with the ones generated from CMake. It is likely that by disabling things that aren't supported for RPi (X11 and accelerated graphics stuff), and forcing EGLES suppport and omxplayer, as well as the arm build flags, RPi includes and compiler defs, that the Plex CMake framework will be able to build for RPi without too much modification.

I'm being hopeful on that of course... In any case spelunking through the XBMC rpi build process has provided me with a lot of valuable information. If XBMC runs (as I expect it will), then I'll begin the great Cmake smash.

Wish me luck folks ;)

I’m crossing fingers! :smiley:



Good luck ;) appreciate the frequent progress updates! Please keep them coming :)

Thank you very much dale! appreciate your hard work!



Some VERY good news:

After having a nice chat with Tobias Hieta (the lead plexht linux dev who built the CMake system), I am quite confident that I know what needs to be done to get the CMake build process working, and it's much simpler than I thought. I have also had another plex user familiar with gentoo contact me requesting to help, and I'm getting them set up with my build environment.

If all goes well, and my girlfriend doesn't mind me being a total recluse for a few days, we'll hopefully have a gentoo build very soon (though I expect we'll have a few bugs to squash for things like playback, and gui performance). Once we get things working on gentoo, I'm guessing I'll have to port it to debian for most people... that'll take some time as we won't have the same flexibility with package versions.

I'm still sorting out some bugs with the XBMC build before I try hacking at CMake. I'm hoping to start on CMake later today or tomorrow. If I could get something ready for next weekend, that'd be perfect... but it's hard to estimate.

Hey dale, just curious, have you taken a look at the work done by the OpenELEC folks in regards to the raspberry pi? They have all of their code up on github, and their OS is based on linux and is extremely optimized for the pi. If you haven’t take a look:



https://github.com/OpenELEC



Anyway, good luck with the raspberry Pi build, it’s one of the things I’ve been hoping for for so long so I can’t wait to start beta testing!

Yes I’m aware of the OpenELEC work. The PlexHT people are working on a port for it right now. My expertise is with the RPi. Once I get this going on gentoo (the system I’m most familiar with), I’ll spend more time with OpenELEC.



Cheers