MP & XBMC intergration scripts v0.6d Update 4-MAR-07 (1 Viewer)

pezmannen

New Member
June 18, 2006
4
0
Yep, streaming tv would be sweet. So, at least there's no risk of you stopping to develop this plugin now with xbox 360 present.
 

2canSAM

New Member
June 27, 2006
2
0
Skinning

Works a treat for me with RC4. Is there any chance to get the new plugin with the old skin? I use MCE2005 skin on my XBMC and would love for this script to look more like that. Thanks again for all your hard work on this.
 

Gamester17

Portal Pro
May 12, 2004
98
3
Sweden
Home Country
Sweden Sweden
Gamester17 said:
@thechad, can I make a suggestion/request?, use the XBMSP protocol instead of or as an option to SMB/SAMBA :wink:

Why you ask? Well firstly was designed for streaming, (SMB/SAMBA is not), it's faster/smoother, and it supports auto-detect,
(the auto-detect function would fit perfectly in here as it would make network configuration so much simpler / almost none).
If you could implement a XBMSP/ccXStream server (in C# code) as part of your plugin for MediaPortal that be really great 8)

You can find more information (inc. code and docs) about XBMSP (and ccXStream) here:
http://mfxstream.sourceforge.net / http://sourceforge.net/projects/mfxstream
http://prdownloads.sourceforge.net/xbmc/ccxstream-1.0.15.tar.gz?download
http://prdownloads.sourceforge.net/xbmc/ccxstream-1.0.15-win.rar?download
http://sourceforge.net/projects/pxbmsps

PS! Also checkout the TiVo-version of ccXStream-server (as it streams MPEG-TS) and it's respective python-scripts:
http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=ST;f=21;t=4005
http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=ST;f=21;t=14227
http://www.dealdatabase.com/forum/showthread.php?p=219033#post219033
http://www.dealdatabase.com/forum/showpost.php?p=215580&postcount=94
thechad, FYI; XBMC now has a built-in UPnP client so I suggest you try using that as the streaming protocol instead or SMB/SAMBA, you can try XBMSP too if you have the time but since UPnP is a real industy standard it's better documentented, plus there are many UPnP software development tools and resources available online.

Check out the Platinum C++ UPnP SDK which contains server and client code:
http://sourceforge.net/projects/platinum/
(this is the client used in XBMC, patch by c0diq the author of the Platinum SDK)
 

Osanya

New Member
October 1, 2006
2
0
45
sweet! This makes me want to start modding my pmIII skin for a "my tv" tab that links right to the script... tho it might be easier to just put a link to it inside "my videos."

For some reason the wife just can't wrap her head around that "scripts" popup tab in XBMC

Great script though!
 

LoL

New Member
April 23, 2006
4
0
No real plans at the moment, hoping to do a refresh after MP 0.2 Final and XBMC 2.0 final are released.

Beyond that I am hoping that someone will integrate live TV streaming into the TVEngine which I can then expand on to the xbox.

Main things holding things up are
- stable release of MP so that devs introduce new features again.
- streaming of Live TV in Mpeg
- MP recording to DVR_MS
- language encoding issues with python in XBMC

Hey thechad,

I really liked the idea of this and have been waiting for the 2.0 releases of both XBMC and Mediaportal so we would get an update of your great script!
Are you still working on this?

I tried starting the 0.6c script on XBMC 2.0 and Mediaportal 2.0 on the pc but didn't get lucky. It gives me the following error:
"unable to create socket to MP server"
"see script output for further information"

Here's the log:

Code:
14:40:12 M: 39768064   DEBUG: CApplication::OnKey: 256 pressed, action is 7
14:40:12 M: 39731200   DEBUG: LoadLibraryA('python24.dll')
14:40:12 M: 38612992   DEBUG: LoadLibrary('python24.dll') returning: 0xb51460
14:40:12 M: 38612992   DEBUG: dllGetProcAddress(0x98cc68(kernel32.dll), 'InterlockedCompareExchange') => 0x1be5d4
14:40:12 M: 38346752   DEBUG: GetModuleFileNameA(0x0, 0xf82490, 256) => 'xbmc.xbe'
14:40:12 M: 38346752   DEBUG: advapi32.dll fake function RegQueryInfoKeyA called
14:40:12 M: 38346752   DEBUG: advapi32.dll fake function RegQueryInfoKeyA called
14:40:12 M: 38318080    INFO: Stating file Q:\system\python\python24.zlib
14:40:12 M: 38289408    INFO: Stating file Q:\system\python\python24.zlib\zlib
14:40:12 M: 38289408    INFO: Stating file Q:\system\python\DLLs
14:40:12 M: 38289408    INFO: Stating file Q:\system\python\DLLs\zlib
14:40:12 M: 38289408   DEBUG: LoadLibraryExA called with flags: 
                              - LOAD_WITH_ALTERED_SEARCH_PATH
14:40:12 M: 38289408   DEBUG: LoadLibraryA('zlib.pyd')
14:40:12 M: 38219776   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
14:40:12 M: 38219776   DEBUG: LoadLibrary('zlib.pyd') returning: 0xb339b0
14:40:12 M: 38219776   DEBUG: dllGetProcAddress(0xfa0000(zlib.pyd), 'initzlib') => 0xfa2150
14:40:12 M: 37679104    INFO: Stating file Q:\system\python
14:40:12 M: 37679104    INFO: Stating file Q:\system\python\lib\site-packages
14:40:12 M: 37310464    INFO: Stating file Q:\system\python\python24.zlib\encodings
14:40:12 M: 37310464    INFO: Stating file Q:\system\python\python24.zlib
14:40:12 M: 37310464    INFO: Stating file Q:\system\python\python24.zlib\encodings\codecs
14:40:12 M: 37310464    INFO: Stating file Q:\system\python\python24.zlib\encodings\exceptions
14:40:12 M: 37310464    INFO: Stating file Q:\system\python\python24.zlib\encodings\types
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\python24.zlib\encodings\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\python24.zlib\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\DLLs\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\Lib
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\Lib\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\spyce
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\spyce\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\python24.zip
14:40:12 M: 37302272    INFO: Stating file Q:\system\python
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\python24.zip\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\lib\plat-win
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\lib
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\lib\plat-win\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\lib\lib-tk
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\lib
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\lib\lib-tk\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\python
14:40:12 M: 37302272    INFO: Stating file Q:\python\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\cp0
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\python24.zlib\sitecustomize
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\DLLs\sitecustomize
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\Lib\sitecustomize
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\spyce\sitecustomize
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\python24.zip\sitecustomize
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\lib\plat-win\sitecustomize
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\lib\lib-tk\sitecustomize
14:40:12 M: 37302272    INFO: Stating file Q:\python\sitecustomize
14:40:12 M: 37302272    INFO: Stating file Q:\system\python\sitecustomize
14:40:12 M: 37298176    INFO: -->Python Initialized<--
14:40:12 M: 37298176    INFO: 
14:40:12 M: 36786176   DEBUG: CGUIMediaWindow::GetDirectory (Q:\scripts\mediaportal)
14:40:13 M: 36765696   DEBUG:   ParentPath = [Q:\scripts\mediaportal]
14:40:13 M: 36683776    INFO: Stating file Q:\scripts\mediaportal
14:40:13 M: 36683776    INFO: Stating file Q:\scripts\mediaportal\string
14:40:13 M: 36700160    INFO: Stating file Q:\scripts\mediaportal\re
14:40:13 M: 36700160    INFO: Stating file Q:\scripts\mediaportal\sre
14:40:13 M: 36769792    INFO: Stating file Q:\scripts\mediaportal\sre_compile
14:40:13 M: 36687872    INFO: Stating file Q:\scripts\mediaportal\sre_constants
14:40:13 M: 36671488    INFO: Stating file Q:\scripts\mediaportal\sre_parse
14:40:13 M: 36417536    INFO: Stating file Q:\scripts\mediaportal\xml
14:40:13 M: 36438016    INFO: Stating file Q:\system\python\python24.zlib\xml
14:40:13 M: 36438016    INFO: Stating file Q:\system\python\python24.zlib
14:40:13 M: 36438016    INFO: Stating file Q:\system\python\python24.zlib\xml\_xmlplus
14:40:13 M: 36438016    INFO: Stating file Q:\scripts\mediaportal\_xmlplus
14:40:13 M: 36438016    INFO: Stating file Q:\system\python\python24.zlib\_xmlplus
14:40:13 M: 36438016    INFO: Stating file Q:\system\python\DLLs\_xmlplus
14:40:13 M: 36438016    INFO: Stating file Q:\system\python\Lib\_xmlplus
14:40:13 M: 36438016    INFO: Stating file Q:\system\python\spyce\_xmlplus
14:40:13 M: 36364288    INFO: Stating file Q:\system\python\python24.zlib\xml\dom
14:40:13 M: 36368384    INFO: Stating file Q:\system\python\python24.zlib\xml
14:40:13 M: 36368384    INFO: Stating file Q:\system\python\python24.zlib
14:40:13 M: 36364288    INFO: Stating file Q:\system\python\python24.zlib\xml\dom\xml
14:40:13 M: 35299328    INFO: Stating file Q:\system\python\python24.zlib\xml\dom\copy
14:40:13 M: 35299328    INFO: Stating file Q:\scripts\mediaportal\copy
14:40:13 M: 35229696    INFO: Stating file Q:\scripts\mediaportal\org
14:40:13 M: 35229696    INFO: Stating file Q:\system\python\python24.zlib\org
14:40:13 M: 35229696    INFO: Stating file Q:\system\python\DLLs\org
14:40:13 M: 35229696    INFO: Stating file Q:\system\python\Lib\org
14:40:13 M: 35229696    INFO: Stating file Q:\system\python\spyce\org
14:40:13 M: 35229696    INFO: Stating file Q:\scripts\mediaportal\inspect
14:40:13 M: 35209216    INFO: Stating file Q:\scripts\mediaportal\dis
14:40:13 M: 35213312    INFO: Stating file Q:\scripts\mediaportal\opcode
14:40:13 M: 35205120    INFO: Stating file Q:\scripts\mediaportal\tokenize
14:40:13 M: 35241984    INFO: Stating file Q:\scripts\mediaportal\token
14:40:13 M: 35176448    INFO: Stating file Q:\scripts\mediaportal\traceback
14:40:13 M: 35164160    INFO: Stating file Q:\scripts\mediaportal\mpSettings
14:40:13 M: 35119104    INFO: Stating file Q:\scripts\mediaportal\mpManRec
14:40:13 M: 35143680    INFO: Stating file Q:\scripts\mediaportal\urllib
14:40:13 M: 35086336    INFO: Stating file Q:\scripts\mediaportal\socket
14:40:14 M: 35176448    INFO: Stating file Q:\scripts\mediaportal\_socket
14:40:14 M: 35061760    INFO: Stating file Q:\system\python\python24.zlib\_socket
14:40:14 M: 35106816    INFO: Stating file Q:\system\python\DLLs\_socket
14:40:14 M: 35106816   DEBUG: LoadLibraryExA called with flags: 
                              - LOAD_WITH_ALTERED_SEARCH_PATH
14:40:14 M: 35106816   DEBUG: LoadLibraryA('_socket.pyd')
14:40:14 M: 35057664   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
14:40:14 M: 35057664   DEBUG: LoadLibrary('_socket.pyd') returning: 0xc0a930
14:40:14 M: 35057664   DEBUG: dllGetProcAddress(0x13c0000(_socket.pyd), 'init_socket') => 0x13c4bf0
14:40:14 M: 35033088    INFO: Stating file Q:\scripts\mediaportal\_ssl
14:40:14 M: 35033088    INFO: Stating file Q:\system\python\python24.zlib\_ssl
14:40:14 M: 35033088    INFO: Stating file Q:\system\python\DLLs\_ssl
14:40:14 M: 35033088   DEBUG: LoadLibraryExA called with flags: 
                              - LOAD_WITH_ALTERED_SEARCH_PATH
14:40:14 M: 35033088   DEBUG: LoadLibraryA('_ssl.pyd')
14:40:14 M: 34533376   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
14:40:14 M: 34533376   DEBUG: LoadLibrary('_ssl.pyd') returning: 0xd85950
14:40:14 M: 34533376   DEBUG: dllGetProcAddress(0x13d0000(_ssl.pyd), 'init_ssl') => 0x13d1820
14:40:14 M: 34480128   DEBUG: kernel32.dll fake function SetConsoleCtrlHandler called
14:40:14 M: 34344960    INFO: Stating file Q:\scripts\mediaportal\urlparse
14:40:14 M: 34365440    INFO: Stating file Q:\scripts\mediaportal\nturl2path
14:40:14 M: 34365440    INFO: Stating file Q:\scripts\mediaportal\mpUtil
14:40:14 M: 34365440    INFO: Stating file Q:\scripts\mediaportal\mpEpg
14:40:14 M: 34324480    INFO: Stating file Q:\scripts\mediaportal\textwrap
14:40:14 M: 34304000    INFO: Stating file Q:\scripts\mediaportal\threading
14:40:14 M: 34365440    INFO: Stating file Q:\scripts\mediaportal\atexit
14:40:14 M: 34357248    INFO: Stating file Q:\scripts\mediaportal\mpScheduled
14:40:34 M: 28856320    INFO: Unable to create Socket to MP server
                             Data: <?xml version="1.0" encoding="utf-8"?><mediaportal><mode>recorded</mode><action>get</action></mediaportal>
14:40:34 M: 28856320    INFO: 
14:40:34 M: 28856320    INFO: (10060, 'Operation timed out')
14:40:34 M: 28856320    INFO: 
14:40:34 M: 28856320    INFO: Traceback (most recent call last):
14:40:34 M: 28856320    INFO:   File "Q:\scripts\mediaportal\mpUtil.py", line 51, in connect
14:40:34 M: 28856320    INFO: Stating file Q:\scripts\mediaportal\mpUtil.py
14:40:34 M: 28856320    INFO:     s.connect((mpSettings.IP, mpSettings.PORT))
14:40:34 M: 28856320    INFO:   File "<string>", line 1, in connect
14:40:34 M: 28856320    INFO: error: (10060, 'Operation timed out')
14:40:39 M: 28852224   DEBUG: CApplication::OnKey: 256 pressed, action is 7
14:40:40 M: 29802496   DEBUG: Activating window ID: 13000
14:40:40 M: 29802496   DEBUG: Checking if window ID 13000 is locked.

Is this not working anymore because the script is outdated?
What are the chances of you picking this up again?
I really hope you'll continue working on this!

Hope to hear from you, LoL ;)
 

thechad

Portal Pro
February 5, 2005
187
0
Geelong, Australia
Home Country
Hi LoL,

I havn't had time to look at the scripts for a long time (work) and I have never actually used them myself so it is hard to find inspiration to improve them. I started them as some groundwork while I waited for MP to support network streaming of live TV but this has taken longer than expected to come to fruition.

If you are having issues connecting check the MP log to make sure the plugin is starting up and also check you have the correct IP setup in the plugin setup in MP. This error was experienced by others earlier in the thread so you can have a look there for more tips.

I am still looking at how to tackle the new TV server but one major hurdle is that xbmc currently does not support rtsp streaming which is how MP dishes out the file to clients. Also a plugin would need to be written for the TV server to marshal commands between it and the Xbox as Python does not support .Net remoting, and to add to this the TV server will not have plugin support for first release.

If anyone wants to develop this plugin further feel free to contact me.
 

cowpie

Portal Member
October 6, 2006
35
0
Home Country
Canada Canada
Thechad the script is really handy. I'd love to use to all the time for viewing metadata like episode descriptions and titles (xbmc doesn't handle it so far) and managing (deleting) files, because of course now XBMC can play dvr-ms files. I think this is much more reliable than the media center extender that MS offers, except of course for the live tv part which I don't personally care about.

(for all those who want better quality, try to download JOhn's newer version of mplayer.dll at the xbmc forums. the default one in xbmc is old!)

If you want to see how to launch videos from within a script I believe the "ooba" script does that too.
 

CYaBro

Portal Member
April 27, 2006
49
2
Whangarei
Home Country
New Zealand New Zealand
Hey thechad,

Any chance of your xbmc plugin working in MP 0.2.2.0?
I love this plugin as I use it to schedule recordings all the time from the xbox!
I just installed the latest MP 0.2.2.0 but when I try to configure you plugin in MP setup I get an error... something about Unhandled exception.
Or even better would be as a plugin for the new TVServer as I don't use MP on the PC, it just sits in the back room.
 

Users who are viewing this thread

Top Bottom