[RELEASE] Myth2XBMC Script for Xbox (Stream Live TV from MythTV to XBMC for Xbox)
#1
Thumbs Up 
Myth2XBMC is heavily based on the original xbmc-mythtv script. I started modifying it quite awhile back and have been using it at home on 3 Xboxes. I decided to update and release it since MythBox doesn't work on the XBOX.

This is for XBOX only since I haven't had time to look at any other platforms... and since MythBox is available for them. Let me know if you have any problems.

http://code.google.com/p/myth2xbmc/downloads/list

Requires a recent build of XBMC. I have it working with the latest T3CH build. The script uses the new special:// directory changes to get the XBMC cache size to use for LiveTV. Otherwise you would need to set your XBMC Video Lan cache to 1024K or less (because I default to 1024K if have trouble getting the XBMC value). Not doing this results in Live TV not starting or stopping quickly because the player trys to read enough for the cache and if the live tv file isn't that big yet the player reaches the end of the file.

Known Problems:
I haven't been able to get Commercial skipping working right for my SD digital mpeg recordings. Seems like a bug with MPlayer that seekTime doesn't seek correctly for the SD digital recordings, but analog recordings seem to seek correctly.

**** This uses the player you have set in default for XBMC, I prefer MPlayer since DVDPlayer skips are so slow ****

NOTE: I do not have a ton of time to work on this so don't expect me to check back here more than once a day (usually in the evenings).
Reply
#2
This script is compatible only for Xbox I'm assuming since it didn't work on Windows. Just looking to confirm this, thanks.

iRoNBiLL
Reply
#3
THIS IS PRIMARILY FOR XBOX! However, I have made some fixes to the original code and I noticed it loads under windows now, however it doesn't play the files with settings path set to smb://....

You can however change the settings path to something like myth://192.168.11.2/recordings and it will play as long as the native XBMC myth:// protocol works on your system. Change the 192.168.11.2 to your myth server. you have to have shared the recordings on the server.

Not sure what the deal is with smb:// on windows.

You can also use myth:// on xbox but I have found smb:// to be more responsive to skip forward/back, etc.
Reply
#4
This is great, thank you for this.

Working perfectly with my mythbuntu 8.10 back end with two nova-t 500
Reply
#5
I have also uploaded the changes I made to Project Mayhem III skin that includes a TV button that starts myth2xbmc. When you unzip ProjectMayhemIII_chg1.zip it would go under the XBMC directory and replaces a few files under XBMC/skin/Project Mayhem III: home.xml under Pal and Pal16x9 for the TV button, and font.xml under NTSC makes the fonts bigger for standard TVs like my 27" TV. You can find it at: http://code.google.com/p/myth2xbmc/downloads/list
Reply
#6
sounds like great work:-)

seems i need to sort out my mythubunto install problems, and soon.

Dam0
Reply
#7
Getting this to work for XBMC windows with Aeon Auriga would rock my world... Smile
Reply
#8
Talle Wrote:Getting this to work for XBMC windows with Aeon Auriga would rock my world... Smile

check my sig for windows compatible fork
MythBox for XBMC - http://mythbox.googlecode.com
Reply
#9
Found a strange bug

On my Mythbuntu 9.04 machine, when i do a scan on Freeview (UK DVB) some of my channels get strange high numbers which I have to manually reset to the correct numbers.

If I do this, the guide on a mythfrontend shows the correct content but the guide on this XBMC script shows no guide data available.

Any ideas?
Reply
#10
Is it just the Guide that has a problem? (ie does LiveTV show the correct channels and/or programs?)
Reply
#11
first of all nice work,

I'm getting troubles with the script and my mysql database on a xbox, it says something like database connection failed unable to continue, but I check the same configuration information and it works from mythbox script on a windows box, where i can check logs?
Reply
#12
Change the logLevel in default.py. Probably want to set
logLevel = mythutil.LOG_MYTH | mythutil.LOG_GUI

Then look in myth2xbmc.log in the myth2xbmc directory.
Reply
#13
I think the mysql client version is the problem, the log says:

DEBUG:root:[30] 2008-02-03 01:53:58.722000 myth.Database.initialize() ERROR: Client does not support authentication protocol requested by server; consider upgrading MySQL client
DEBUG:root:[29] 2008-02-03 01:53:58.728000 < myth.Database.initialize()
DEBUG:root:[29] 2008-02-03 01:54:00.718000 MythMain.refresh ERROR: conn

I'm using mysql 5.0.51a-3ubuntu5.1 as database, do you know if there is an updated py client?
Reply
#14
After some googling i've find that is a password version problem, to resolve the issue i've modified user password with the following mysql command:

SET PASSWORD FOR '<xbmc_user>'@'%' = OLD_PASSWORD('<xbmc_password>');

And it start working Smile
Reply
#15
Upss another problem, Live Tv seems not working properly, and tv guide also, i get this on myth2xbmc log:

DEBUG:root:[29] 2009-06-12 11:44:21.293000 < MythMain.loadPage(2)
DEBUG:root:[29] 2009-06-12 11:44:21.295000 < MythMain.loadAction(main_recorded_shows) returning 1
DEBUG:root:[29] 2009-06-12 11:44:21.296000 < MythMain.onControlHook(<xbmcgui.ControlButton object at 0x013B3800>)
DEBUG:root:[29] 2009-06-12 11:44:36.814000 > MythMain.onControlHook(<xbmcgui.ControlButton object at 0x013B3720>)
DEBUG:root:[29] 2009-06-12 11:44:36.815000 > MythMain.loadAction(main_live_tv)
DEBUG:root:[29] 2009-06-12 11:44:36.816000 > MythMain.loadPage(1)
DEBUG:root:[29] 2009-06-12 11:44:37.113000 > mythlivetv.showWindow()
DEBUG:root:[29] 2009-06-12 11:44:37.131000 > mythlivetv.__init__
DEBUG:root:[29] 2009-06-12 11:44:37.133000 < mythlivetv.__init__
DEBUG:root:[28] 2009-06-12 11:44:39.092000 > mythlivetv.loadPrograms()
DEBUG:root:[28] 2009-06-12 11:44:39.094000 < mythlivetv.checkConnections()
DEBUG:root:[28] 2009-06-12 11:44:39.096000 > myth.getChannelList
DEBUG:root:[28] 2009-06-12 11:44:39.133000 < myth.getChannelList
DEBUG:root:[28] 2009-06-12 11:44:39.135000 > mythlivetv.fixChannelList()
DEBUG:root:[28] 2009-06-12 11:44:39.137000 < mythlivetv.fixChannelList()
DEBUG:root:[28] 2009-06-12 11:44:39.138000 > myth.getProgramListings
DEBUG:root:[28] 2009-06-12 11:44:39.258000 < myth.getProgramListings
DEBUG:root:[28] 2009-06-12 11:44:39.260000 > mythlivetv.fixProgramList()
DEBUG:root:[28] 2009-06-12 11:44:39.274000 < mythlivetv.fixProgramList()
DEBUG:root:[28] 2009-06-12 11:44:39.611000 loadPrograms() exception: list index out of range
DEBUG:root:[28] 2009-06-12 11:44:39.614000 MythMain.loadPage(1) ERROR: list index out of range
DEBUG:root:[28] 2009-06-12 11:44:39.631000 < MythMain.loadAction(main_live_tv) returning 1
DEBUG:root:[28] 2009-06-12 11:44:39.634000 < MythMain.onControlHook(<xbmcgui.ControlButton object at 0x013B3720>)
DEBUG:root:[29] 2009-06-12 11:44:44.474000 > MythMain.onControlHook(<xbmcgui.ControlButton object at 0x013B3720>)
DEBUG:root:[29] 2009-06-12 11:44:44.475000 > MythMain.loadAction(main_live_tv)
DEBUG:root:[29] 2009-06-12 11:44:44.476000 > MythMain.loadPage(1)
DEBUG:root:[28] 2009-06-12 11:44:44.771000 > mythlivetv.showWindow()
DEBUG:root:[28] 2009-06-12 11:44:44.791000 > mythlivetv.__init__
DEBUG:root:[28] 2009-06-12 11:44:44.794000 < mythlivetv.__init__
DEBUG:root:[28] 2009-06-12 11:44:46.791000 > mythlivetv.loadPrograms()
DEBUG:root:[28] 2009-06-12 11:44:46.794000 < mythlivetv.checkConnections()
DEBUG:root:[28] 2009-06-12 11:44:46.796000 > myth.getChannelList
DEBUG:root:[28] 2009-06-12 11:44:46.831000 < myth.getChannelList
DEBUG:root:[28] 2009-06-12 11:44:46.834000 > mythlivetv.fixChannelList()
DEBUG:root:[28] 2009-06-12 11:44:46.836000 < mythlivetv.fixChannelList()
DEBUG:root:[28] 2009-06-12 11:44:46.837000 > myth.getProgramListings
DEBUG:root:[28] 2009-06-12 11:44:46.958000 < myth.getProgramListings
DEBUG:root:[28] 2009-06-12 11:44:46.959000 > mythlivetv.fixProgramList()
DEBUG:root:[28] 2009-06-12 11:44:46.972000 < mythlivetv.fixProgramList()
DEBUG:root:[28] 2009-06-12 11:44:47.291000 loadPrograms() exception: list index out of range
DEBUG:root:[28] 2009-06-12 11:44:47.294000 MythMain.loadPage(1) ERROR: list index out of range
DEBUG:root:[28] 2009-06-12 11:44:47.312000 < MythMain.loadAction(main_live_tv) returning 1
DEBUG:root:[28] 2009-06-12 11:44:47.314000 < MythMain.onControlHook(<xbmcgui.ControlButton object at 0x013B3720>)

any idea?
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Myth2XBMC Script for Xbox (Stream Live TV from MythTV to XBMC for Xbox)1