PleXBMC client for XBMC



The plugin will try and open the actual file stored by PMS first (e.g. I:\Movies\etc.....), if that fails then it will default to streaming through the webserver - which should always work. The fact that this also fails really has me thinking.

The PMS server is obviously working, as we can get the metadata back - so it would point to the file not being available to playback. This would also support the missing local file issue.

Could you check the "Plex Media Server.log" file to see what the error message was at the time you tired playback?


So you've installed the plexbmc plugin, but you can't see the addon section under videos to open it? Are you using the tweaked confluence skin, or the stock one? You should also be able to get to addon through setting -> system -> addon


Fixed in new build - just testing it now before release (you can always get the latest from git if you fancy testing it out - just drop default.py into the addon dir [if you are testing on the nightly with builtin m3u8 support, then you don't need to bother updating HLSproxy.py)



Can't seem to be able to recreate this - if I set stream to auto, transcoding works fine. I don;t have a suitably modified nightly to test, but I can see the correct transcode URL hitting the XBMC player. Do you have some log output I can look at to see what you are getting?


Thought it showed something about a curl error which may lead to an SMB permissions error...


The curl message is an XBMC generated error, and by this time XBMC is trying to play an http:// file (so not an smb issue for XBMC). Error 22 usually denotes an http return code of 404 which makes me think the file is actually missing. Plex server log should hopefully say why it passed back a 404.

It could well be an smb permissions problem at the server level, not sure how these files are stored. Or perhaps a drive power down that isn't waking up in time (or being reconnected?) [sorry, that might have been what you meant]


I think this might be the error.. could be wrong

Aug 07, 2011 01:16:14 [1400] DEBUG - Request: GET /library/metadata/3622 [127.0.0.1] (1 live)<br />
Aug 07, 2011 01:16:14 [1400] DEBUG - Falling back to picking the first audio stream.<br />
Aug 07, 2011 01:16:14 [1400] DEBUG - Audio Stream: 1071, Subtitle Stream: -1<br />
Aug 07, 2011 01:16:14 [1400] DEBUG - It took 0.001000 sec to serialize a list with 1 elements.<br />
Aug 07, 2011 01:16:17 [2896] DEBUG - Request: GET /library/metadata/3622 [127.0.0.1] (1 live)<br />
Aug 07, 2011 01:16:17 [2896] DEBUG - Falling back to picking the first audio stream.<br />
Aug 07, 2011 01:16:17 [2896] DEBUG - Audio Stream: 1071, Subtitle Stream: -1<br />
Aug 07, 2011 01:16:17 [2896] DEBUG - It took 0.001000 sec to serialize a list with 1 elements.



I tried playing the movie on PLeXBMC then I went and tried it on another Plex client on my laptop. Plays perfect on the laptop just not locally on PleXBMC


Just tried this on my test Windows PMS server, with a local XBMC install (a nightly from April). I can detect local windows files and playback no problem.

From the Windows server can you definitely access that file on the I: Drive?
Also, could you try connecting to http://localhost:32400/library/parts/3616/file.mkv from a local web browser. Should prompt you to save or open file..

Failing that, I'm just testing a new version of the plugin for release sometime tonight (hopefully), so maybe that will help get things going...

AC3 Transcoding:



replace:





capability=“X-Plex-Client-Capabilities=”+urllib.quote_plus(“protocols=http-live-streaming,http-mp4-streaming,http-mp4-video,http-mp4-video-720p,http-streaming-video,http-streaming-video-720p,webkit;videoDecoders=h264{profile:high&resolution:1080&level:51};audioDecoders=mp3,aac”)



with:



capability=“X-Plex-Client-Capabilities=”+urllib.quote_plus(“protocols=http-live-streaming,http-mp4-streaming,http-streaming-video,http-streaming-video-240p,http-streaming-video-320p,http-streaming-video-480p,http-streaming-video-720p,http-streaming-video-1080p,http-mp4-video,http-mp4-video-240p,http-mp4-video-320p,http-mp4-video-480p,http-mp4-video-720p,http-mp4-video-1080p;videoDecoders=h264{profile:high&resolution:1080&level:51};audioDecoders=mp3,aac,ac3”)





And Replace:





fullURL=“http://”+server+myurl+"&X-Plex-Access-Key="+publicKey+"&X-Plex-Access-Time="+str(now)+"&X-Plex-Access-Code="+urllib.quote_plus(token)



with:



fullURL=“http://”+server+myurl+"&X-Plex-Access-Key="+publicKey+"&X-Plex-Access-Time="+str(now)+"&X-Plex-Access-Code="+urllib.quote_plus(token)+"&"+capability





Shout Out to: Anthrax-Leprosy-Pi



Still looking at DTS as xbmc does not seem to recognize the stream but this should provide DTS->ac3 transcoding. Please note that bitrate seems odd in dts->ac3 transcoding as it is not 640 kbps but variable. Some minor adjustments may be needed.

Hi. I was checking out the addon today. Congratulations on the great work.



On the integration I had two questions. They may be covered already but I couldn’t find it.



-Where are the fanarts downloaded? I would like to use them in the screensaver but by default the screensaver only sees the dummy one (Aladdin). What would be the path for posters and fanart? Can both be accessed separately?



-Is sorting by other fields disabled? I like to sort by file date (for movies to see the most recent ones I have) and by air date (to follow shows as they air).



Eduo



fantastic - I added ac3 as an audio decoder and can see that XBMC has detected and playsback an AC3 stream (~640kbps). I also added DTS and can see that a DCA codec is used at ~1.5mbps.. I'll add these as advanced transcoder options.

Thanks for your help here.

EDIT: Done - available in Git.

EDIT2: Hold off for a second - those settings broke transcoding playback on remote links (i.e. over internet). I've fixed locally but won't be able to upload the changes until much later tonight.


The fanart lives on the Plex Media Server, so is accessible via an http:// link - XBMC caches these to the local thumbnail directory in it's userdata directory.



The only sorting I can use are the ones provided by Plex Media Server - recently added would show you the last 100 films that have just been added to that section (I use this quite a bit). The only air date one I can see displays the episodes by air date in one list..

First kudos on the plugin/add-on :slight_smile:



I got it setup just to my liking, but i did run into some problems i hope you can help me with.


  1. Somehow playing songs from PMS->Music section isn’t working, i get the following error in the XBMC log:



    ERROR: XFILE::CFileCache::Open - failed to open source <file:D:/Music/maroon 5 - songs about jane/02_maroon5_-this_love-tn.mp3>

    ERROR: MP3Codec: Unable to open file file:D:/Music/maroon 5 - songs about jane/02_maroon5
    -this_love-tn.mp3

    ERROR: CAudioDecoder: Unable to Init Codec while loading file file:D:/Music/maroon 5 - songs about jane/02_maroon5
    -this_love-tn.mp3

    ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.plexbmc/?url=file:D:\Music\maroon 5 - songs about jane\02_maroon5
    -_this_love-tn.mp3&mode=12&resume=0&id=407&duration=217]


  2. Tying to watch photos from PMS->Photos also gives me an error:



    ERROR: Error Type: exceptions.KeyError

    ERROR: Error Contents: viewGroup

    ERROR: Traceback (most recent call last):

    File “C:\Users\Roel\AppData\Roaming\XBMC\addons\plugin.video.plexbmc\default.py”, line 3407, in ?getContent(url)

    File “C:\Users\Roel\AppData\Roaming\XBMC\addons\plugin.video.plexbmc\default.py”, line 1975, in getContent if arguments[‘viewGroup’] == “movie”:

    KeyError: viewGroup

    ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.plexbmc/ url=http://127.0.0.1:32400/library/metadata/198&mode=0

    ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.plexbmc/?url=http://127.0.0.1:32400/library/metadata/198&mode=0) failed



    I’m running the follwing setup:



    Windows 7 Professional x64

    XBMC: 10.1 Dharma Git: e9e9099 (compiled march 8th)

    Skin: skin.confluence.plexbmc (the one on page 1 0.4.4-1.1.0)

    Add-on: plugin.video.plexbmc 1.9.5



    I tried disabeling the integration in XBMC of PleXBMC, adding the pictures and music to te XBMC library itself with the possitive outcome of being able to play both music and photos.



    So i think it’s an error in PMS or in the way PleXBMC tries to get the data from PMS?



    If you need more info please let me know what and where i can find it :slight_smile:



    Thanks in advance

Hi,


  1. Know error with local windows media - it’s fixed in upcoming version.
  2. Not sure, but will check it out later.


Whoa thats fast :P

Good to hear and i'll keep my eyes on the thread.

What’s the latest version of plexbmc in the repository?



I see from the first post that 1.9.5 is current but according to xbmc, 1.9.4.2 is still what I’m getting from the repository. Is that correct?

Linda - Yeah I noticed that too when testing on a fresh build today. I’m not sure if XBMC can cope with the 4 digit version numbers. I’m pushing out a new release later (1.9.6) so i’ll see if that manages to work it’s way through the system.



It's my fault I added more functionality that suddenly broke the auto update of the repository, I'll have a look at it later today..


Fixed, latest versions in the repository are:


<br />
<addons><br />
<addon id="plugin.video.plexbmc" name="PleXBMC" version="1.9.5" provider-name="Hippojay (plexbmc@h-jay.com). Initial build by Hooligan Harley"></addon><br />
<addon id="skin.cirrus-ex.plexbmc" version="0.2-2.0" name="cirrus extended v2 - plexbmc" provider-name="Butchabay and Malexx. modded by hippojay"></addon><br />
<addon id="skin.confluence.plexbmc" version="0.4.4-1.1.0" name="Confluence.plexbmc" provider-name="Jezz_X, Team XBMC. Tweaked for PleXBMC by Hippojay"></addon><br />
<addon id="skin.frontseat" version="1.0.1" name="FrontSeat" provider-name="jaaps"></addon><br />
<addon id="skin.mediastream_redux" version="1.1.2" name="MediaStream Redux" provider-name="Jezz_X (graphics by team razorfish)"></addon><br />
<addon id="skin.quartz.plexbmc" version="0.2-1.0.3" name="Quartz" provider-name="Pecinko. Modded by Hippojay for Plexbmc"></addon><br />
<addon id="xbmc.repo.plexbmc" name="PleXBMC Add-ons for XBMC" version="1.0.0" provider-name="Harley and Hippojay"></addon><br />
</addons>



Fetched from: http://erlandssson.nu/repository.plexbmc.addons/addons.xml if addon version(s) differ in the repository and this file there is something wrong on my side.

New release V1.9.6 - https://github.com/downloads/hippojay/plugin.video.plexbmc/plugin.video.plexbmc-1.9.6.zip



There are a number of bug fixes and also some new features I’ve added:

[list]

[] Flatten TV shows for “one season shows” or “all seasons”

[
] Transcoding now supports AC3 and DTS audio

[] Fixed: Better transcoder proxy stability (I’ve not seen it fail yet since fixing!)

[
] Fixed: Support for webkit plugins - extended so that iplayer/40d/etc work. Again, only through transcoding.

[] Fixed: Windows local file detection

[
] Fixed: Transcoder would not start with auto setting

[] Fixed: Photo section filter menus

[
] Other stuff I’ve forgotten about…

[/list]



I’ve not pushed this for auto-update yet - as I want to make sure it doesn’t break anything. I’ll do that in a couple of days.



I’ve also upped some new/updated skins:

[list]

[] Aeon Nox version for PleXBMC

[
] CirrusEX now supports horizontal menus (high and low)

Quartz has been updated to master version 1.0.3

[/list]



The skins are in the repo, but I will create some zip files for stand alone installs. Just need to free up some disk space for them.

hippojay,



As per your previous suggestions I have installed plex server on a mac mini and am using a windows client with xbmc and PlexXBMC.



I am still having 2 issues:



1.) The audio output is analogue from the computer to the TV and the should volume on the TV is very low. When I play the same file directly in Media Player or VLC the sound is normal volume. From my research it seems like other players amplify the volume automatically. Is there such an option or work-a-round for XBMC to work?



2.) Since I have most of the plug-ins running from the mac mini now they mostly all seem to be working for me (yippe, thanks!). The only issue I am having (which I don’t have on the apple TV2) is that some of the plugins, namely hulu, seem to want to cache the whole show before playing it, so it can take 30 minutes or more before the video actually starts (but it does start and play eventually). Is there a solution to this as well?



I really know nothing about the XBMC client. I see there are options for trans-coding in the settings menu, but I have no idea what they are for. Are they to allow another client to connect to the XBMC box and stream from XBMC to another client, or should I be setting that up for the mac mini so it will stream to XBMC?



I hope my questions aren’t too basic for you. I have searched for these answers but nothing is making sense in relation to having PlexXBMC installed.



One last thing is a future feature request. I like that you are able to add a Plex server by IP address and not just Bonjour announcements since I now have 4 Plex servers in the house, each serving up a different type of content (One for kids, one for me, etc, since there are no profiles yet in Plex). My request would be to allow me to add additional ‘static’ plex servers to the list since I don’t want to use bonjour announcements.



Thanks!