PleXBMC client for XBMC

Not tried lion, but assuming that XBMC works on it, then plexbmc will. If it doesn’t work, i’ll try and fix it, but my client OSX is a hackintosh, and my mac mini runs headless (so plex and XBMC won’t run), so upgrading might be difficult…



I’ll check the subtitle download out later on…

Does this work if the media server is on windows? I’ve been able to get it to work with my OSX media server but not my windows one which is my main media server. Thanks.

It should do - I test it against my test instance - but it doesn’t hold much data so doesn’t getting hammered as much as my OSX one does…



If you could turn on debugging in the plugin (addon setting -> debug) and run it again, then send me the log file i’ll take a look.



There is more info about where logs are and what to do in this post:

http://forums.plexapp.com/index.php/topic/27270-plexbmc-client-for-xbmc/page__view__findpost__p__174269



ok here is the error log

10:44:01 T:3600 M:4294967295  NOTICE: ===== PLEXBMC START =====<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> running on (2, 4, 5, 'final', 0)<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Running addon ElementTree version<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Settings hostname and port: 192.168.1.12:32400<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Settings streaming: 0<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Setting secondary: false<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Setting debug to true<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Setting stream Control to : 0<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Running skin: skin.confluence.plexbmc<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Running watch view skin: plexbmc<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> serverList is [['Primary', '192.168.1.12:32400', False]]<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> Script argument is skin<br />
10:44:01 T:3600 M:4294967295  NOTICE: == ENTER: skin() ==<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> skin: Using list of 1 servers: [['Primary', '192.168.1.12:32400', False]]<br />
10:44:01 T:3600 M:4294967295  NOTICE: == ENTER: getURL ==<br />
10:44:01 T:3600 M:4294967295  NOTICE: PleXBMC -> getURL: url = http://192.168.1.12:32400/system/library/sections<br />
10:44:02 T:3600 M:4294967295  NOTICE: HTTP response error: 404 Not Found<br />
10:44:02 T:3600 M:4294967295  NOTICE: PleXBMC -> skin: Clearing properties from [0] to []<br />
10:44:02 T:3600 M:4294967295  NOTICE: PleXBMC -> skin: Total number of skin sections is [0]<br />
10:44:02 T:3600 M:4294967295  NOTICE: PleXBMC -> skin: Total number of servers is [1]<br />
10:44:02 T:3600 M:4294967295  NOTICE: ===== PLEXBMC STOP =====



The PMS is on the same machine that I am trying to use PleXBMC on. I also tried using local host and 127.0.0.1 and none of those worked. Then I switched the ip to my Mac server and it worked right away. Also I have version 10.1 and it tells me I need a pre-Eden version to use bonjour so I have it set to manual configuration.

Just checked a similar configuration on my windows PMS server and it works fine.



The 404 means that it’s not getting a response from the server - is it a firewall issues or something else blocking the traffic?



Can you manually access the address through a web browser: http://192.168.1.12:32400/system/library/sections



EDIT: Yeah, for bonjour to work it needs a later version of the XBMC code - nothing I can do to workaround that one unfortunately :frowning:



For the transcoding (i.e. #1 in list) is that in the current nightlies or does it still require special build?

Still requires a special build at the moment - that patch hasn’t been accepted into the code yet.



I could probably produce a Windows build if anyone wants, as i already have that environment setup (and it’s dead easy). OSX possibly, Linux not yet…




I cannot manually access the address through the web browser. I can get to :http://192.168.1.12:32400/manage/index.html#/sections/1 perfectly fine. and wait a later version of XBMC so wouldnt it be eden or post eden?


Thanks for PleXBMC. I'm really close to resurrecting some old PCs (one running XP, one running Vista) because of it, but in order to do a "family launch" I have to wait until these two things work:

1. Disney Jr. and PBS Kids Plex plug-ins play (and preferably the Justin.TV plug-in). If I could find an XBMC equivalent to these I would use them, but I cannot.

2. I have a section of .strm movies in Plex that I use PLEXFLIX to grab from Netflix and Hulu. Those movies show up in PleXBMC, and even asks me if I would like to resume or play from beginning, but playing them always fails (I swear they used to play on earlier versions of PleXBMC).

Ideally, if those things worked, I would always switch the main TV in the living room running Plex on a Mac Mini 2010 to PlexBMC as my main client full time as well. Thanks for Cirrus! It's absolutely great!!


I think these are the flash/silverlight plugins that I'm looking at now. Although I'm UK based, when means we don't have access to quite the number of streaming TV sites :-(


Hmmm, XBMC should be able to play .strm files. I'll investigate further...



Thanks should go to the guy who created the skin - Crookas on XBMC.org. I think it's great too...


That is strange. Are you running the latest version of Plex on Windows?

You should be able to hit the following, and get an XML page back - displays the code on IE9 and Chrome. You will get a blank page on an iOS device..
http://192.168.1.12:32400
http://192.168.1.12:32400/system
http://192.168.1.12:32400/system/library
http://192.168.1.12:32400/system/library/sections

I'm not sure if bonjour would help in this situation, as we know that 192.168.1.12 is a media server (as the /manage page works) - so we need to understand why we can hit the XML code pages used by PleXBMC to read the library..


Well I got it to work not sure what it was. I noticed my scanners weren't working either so I copied so files over from another Windows PMS I have and it seems to have fixed the problem!

I’m having some issues streaming anything to PleXBMC. I will load up XBMC and open my media list. I will select either a show or movie and then nothing happens. This happens with any of my PCs that have PleXBMC while trying to access my PMS. I am also unable to stream anything from friend’s external PMS. However, Plex on Android works fine with my setup.



My setup is the following:



Windows 7 Ultimate x64

XBMC latest nightly w/ PleXBMC plugin

PMS latest on the same box.



Any help would be appreciated. Thanks.



Here’s the log file when opening any media.


21:59:26 T:2744 M:4294967295  NOTICE: ===== PLEXBMC START =====<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> running on (2, 6, 6, 'final', 0)<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Running with cElementTree on Python 2.5+<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Settings hostname and port: 192.168.217.150:32400<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Settings streaming: 0<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Setting secondary: false<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Setting debug to true<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Setting stream Control to : 0<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Running skin: skin.confluence.plexbmc<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Running watch view skin: xbmc<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Additional servers configured; found [1]<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Adding server [Server 1] at [192.168.217.150]<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> serverList is [['Primary', '192.168.217.150:32400', False], ['Server 1', '192.168.217.150:32400', False]]<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Getting authentication settings.<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> username is media<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Script argument is 0<br />
21:59:26 T:2744 M:4294967295  NOTICE: == ENTER: get_params ==<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> {'url': 'http://192.168.217.150:32400/library/metadata/25', 'mode': '5', 'id': '25'}<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Mode: 5<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> URL: http://192.168.217.150:32400/library/metadata/25<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> Name: None<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> ID: 25<br />
21:59:26 T:2744 M:4294967295  NOTICE: == ENTER: PLAYEPISODE ==<br />
21:59:26 T:2744 M:4294967295  NOTICE: == ENTER: getAudioSubtitlesMedia ==<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> getAudioSubtitlesMedia: Gather media stream info<br />
21:59:26 T:2744 M:4294967295  NOTICE: == ENTER: getURL ==<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> getURL: url = http://192.168.217.150:32400/library/metadata/25<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> getURL: ====== XML returned =======<br />
21:59:26 T:2744 M:4294967295  NOTICE: <?xml version="1.0" encoding="UTF-8"?><br />
                                            <MediaContainer size="1" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1302647742" identifier="com.plexapp.plugins.library"><br />
                                            <Video ratingKey="25" key="/library/metadata/25" guid="com.plexapp.agents.thetvdb://xxxxx/x/xx?lang=en" type="episode" title="Show Title" summary="Show Summary" index="22" rating="7.4" viewCount="1" lastViewedAt="1310276674" thumb="/library/metadata/25/thumb?t=1309924910" duration="1186000" originallyAvailableAt="2011-04-28" addedAt="1309924818" updatedAt="1309924910"><br />
                                            <Media id="23" duration="1186000" bitrate="375" aspectRatio="1.78" audioChannels="6" audioCodec="ac3" videoCodec="h264" videoResolution="720" container="mkv" videoFrameRate="24p"><br />
                                            <Part id="23" key="/library/parts/23/Show.mkv" duration="1186000" file="E:\Media\TV\Show\Season 02\Show.mkv" size="585571719"><br />
                                            <Stream id="93" key="/library/streams/93" streamType="3" codec="srt" language="English" languageCode="eng" /><br />
                                            <Stream id="107" streamType="1" codec="h264" index="0" language="English" languageCode="eng" /><br />
                                            <Stream id="108" streamType="2" selected="1" codec="ac3" index="1" channels="6" /><br />
                                            </Part><br />
                                            </Media><br />
                                            <Writer id="52" tag="Karey Dornetto" /><br />
                                            <Director id="62" tag="Jay Chandrasekhar" /><br />
                                            </Video><br />
                                            </MediaContainer><br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> getURL: ====== XML finished ======<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> getAudioSubtitlesMedia: Stream selection is set OFF<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> getAudioSubtitlesMedia: {'audioCount': 0, 'subCount': 0, 'subtitle': {}, 'external': {}, 'media': {'viewOffset': None, 'duration': '1186000'}, 'partsCount': 1, 'audio': {}, 'parts': [('/library/parts/23/Show.mkv', 'E:\\Media\\TV\\Show\\Season 02\\Show.mkv')], 'contents': 'type'}<br />
21:59:26 T:2744 M:4294967295  NOTICE: == ENTER: selectMedia ==<br />
21:59:26 T:2744 M:4294967295  NOTICE: == ENTER: mediaType ==<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> mediaType: looks like a windows file<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> mediaType: Checking for local file<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> selectMedia: We have selected media at file:E:\Media\TV\Show\Season 02\Show.mkv<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Resume has been set to 0<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: handle is 0<br />
21:59:26 T:2232 M:4294967295   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult- plugin returned successfully<br />
21:59:26 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerCoreFactory::GetPlayers(file:E:\Media\TV\Show\Season 02\Show.mkv)<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)<br />
21:59:26 T:2232 M:4294967295   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players<br />
21:59:26 T:2232 M:4294967295  NOTICE: DVDPlayer: Opening: file:E:\Media\TV\Show\Season 02\Show.mkv<br />
21:59:26 T:2232 M:4294967295 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED<br />
21:59:26 T:1376 M:4294967295   DEBUG: Thread CDVDPlayer start, auto delete: 0<br />
21:59:26 T:1376 M:4294967295  NOTICE: Creating InputStream<br />
21:59:26 T:1376 M:4294967295   ERROR: CDVDPlayer::OpenInputStream - error opening [file:E:\Media\TV\Show\Season 02\Show.mkv]<br />
21:59:26 T:1376 M:4294967295  NOTICE: CDVDPlayer::OnExit()<br />
21:59:26 T:1376 M:4294967295  NOTICE: CDVDPlayer::OnExit() deleting input stream<br />
21:59:26 T:1376 M:4294967295   DEBUG: Thread CDVDPlayer 1376 terminating<br />
21:59:26 T:2232 M:4294967295   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc<br />
21:59:26 T:2232 M:4294967295   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop<br />
21:59:26 T:2232 M:4294967295   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.plexbmc/?url=http://192.168.217.150:32400/library/metadata/25&mode=5&id=25]<br />
21:59:26 T:2232 M:4294967295   DEBUG: Playlist Player: one or more items failed to play... aborting playback<br />
21:59:26 T:2232 M:4294967295    INFO: Loading skin file: DialogOK.xml<br />
21:59:26 T:2232 M:4294967295   DEBUG: ------ Window Init (DialogOK.xml) ------<br />
21:59:26 T:2232 M:4294967295  NOTICE: CDVDPlayer::CloseFile()<br />
21:59:26 T:2232 M:4294967295 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED<br />
21:59:26 T:2232 M:4294967295  NOTICE: DVDPlayer: waiting for threads to exit<br />
21:59:26 T:2232 M:4294967295  NOTICE: DVDPlayer: finished waiting<br />
21:59:28 T:2232 M:4294967295   DEBUG: CApplication::ProcessMouse: trying mouse action leftclick<br />
21:59:28 T:2232 M:4294967295   DEBUG: ------ Window Deinit (DialogOK.xml) ------<br />
21:59:28 T:6004 M:4294967295   DEBUG: Thread Background Loader start, auto delete: 0<br />
21:59:28 T:6004 M:4294967295   DEBUG: Thread Background Loader 6004 terminating<br />
21:59:28 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:29 T:2232 M:4294967295   DEBUG: CWinEventsWin32::WndProcWindow is active<br />
21:59:30 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:32 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:33 T:2232 M:4294967295   DEBUG: ------ Window Deinit (Pointer.xml) ------<br />
21:59:34 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:36 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:38 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:40 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:42 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:44 T:2744 M:4294967295  NOTICE: PleXBMC -> PLAYEPISODE: Not playing yet...sleep for 2<br />
21:59:44 T:2744 M:4294967295  NOTICE: ===== PLEXBMC STOP =====

Hi - I can see the local PMS problem, I’ve not stripped of my protocol identifier. I’ll fix that tonight (UK time - in around 15 hours). Not sure what he remote streaming issue is, would need to see some logs from that.



I haven’t tested on a nightly in a few months, mainly because of the new dirty region stuff which is causing some issues. So there might be some incompatibilities. I’ll probably download a copy when my last patch finally get accepted.



Thanks for taking a look at my problem and thank you for this great plugin. :)


Certainly I should have worded my gratitude as a thank you for integrating the Cirrus skin...obviously big thanks to Crookas. Thanks for the great work on the integration thus far and double thanks for offering to look into the .strm files issue I'm having. Can't wait until I can use PleXBMC as my main client...to have all of the great add-ons in XBMC and the wonderful plug-ins for Plex all housed in one program will be absolutely delightful.

No problem. Sorry for delays on getting these fixed, my wife has “reallocated” my time to some painting and decorating at the moment, but I think I’ll sneak a few hours tomorrow when she’s out :slight_smile:

I currently use a Mac Mini for my main Plex client and media server. Up in the bedroom I used a PS3 with media loaded on it or streamed from PS3 media server. However I have recently added an ACER Revo with XBMC Live loaded on it to replace the PS3 (now just used for gaming). I have installed the Neon Skin and am using PLEXbmc with the main movie and TV section added as favourites. Everything works fine apart from when I come to a movie with CD1 & CD2. At this stage XBMC asks me which part I would like to play. I assumed that if I chose CD1 then CD2 would follow on automatically. This is not the case. After CD1 has finished it starts to play it again.



Is there a way to set this up so that it would play the entire movie? Even better if it does not even show the 2 options.



Cheers and thanks for the great plugin,

James

Heh, I was playing with this a moment ago. Good work! I almost expected that when I hit ‘play video’ in the Netflix plugin, it would actually work. :stuck_out_tongue:

A question: When PleXMBC is local to Plex, are videos still streamed or are they played locally? I’m just curious if I’ll get the advantage of Ubuntu’s VDPAU support of if we’re stuck in high CPU heaven as ffmpeg doesn’t support VDPAU on transcoding.



@Hippojay - If you are still struggling on testing Netflix and such, let me know. I’m in the UK as well and would be happy to give you temp access to my VPN account @ Witopia if that would help.