Kodi Community Forum
Python and MythTV (a MythTV Front-End) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Python and MythTV (a MythTV Front-End) (/showthread.php?tid=2349)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


- DrWeird - 2005-05-12

(najt @ may 12 2005,04:51 Wrote:
(drweird @ may 12 2005,02:37 Wrote:i'm getting a new error after upgrading my mythtv box to .18. when i try to connect to recorded shows i get an error that says

['reject', '15']

if i try again, i get an error that says

'nonetype' object has not attribute 'send'

this happens on the recorded shows, program guide and upcoming shows buttons. status shows the backend status just fine and settings when i select test says the tests succeed. live tv will show me the listings, but will not connect to the video feed.
change the value of mythtv protocol in the xmbcmythtv settings. set it to current_value+1
that did it. thanks!


- najt - 2005-05-12

i put a small article article about xbmcmythtv on my website. it's basic, but i presume that if you know how to install linux and mythtv that you don't need a step-by-step guide Smile

http://mahune.org/archive/2005/05/07/mythtv-and-xbox/


- davidred - 2005-05-13

(davidred @ may 12 2005,04:05 Wrote:hi guys,

i'm having problems getting xbmcmythtv to work after upgrading to the latest mythtv & xbmc. the error i get is;

Quote:06-12-8907 04:49:34 info -->python initialized<--
06-12-8907 04:49:34 info
06-12-8907 04:49:34 info traceback (most recent call last):
06-12-8907 04:49:34 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 7, in ?
06-12-8907 04:49:34 info
06-12-8907 04:49:34 info from mythtvgui import dialog
06-12-8907 04:49:34 info systemerror
06-12-8907 04:49:34 info :
06-12-8907 04:49:34 info null result without error in pyobject_call
06-12-8907 04:49:34 info

i have tried the latest cvs of xbmcmythv, older versions of xbmc and even older versions of the python library with no success in getting this to work. i assume because i can run the other python scripts that come with xbmc that python is installed and working correctly.

so does anyone have any suggestions for me to try out?

cheers
well i finally fixed the problem.

i booted from an old slayerx cd and deleted the entire contents of my xbmc directory (although this was done previously using the inbuilt xbmc recovery ftp server). i then installed xbmc into a new location (e:/xbmc/ as opposed to e:/apps/xbmc/) as per the instructions, and then installed xbmcmythtv as per the instructions and everything worked perfectly.

Huh


- philled - 2005-05-15

i've just got xbmcmythtv working with my 0.18 back end. originally i had bt878 cards in the backend which recorded mpeg-4 files which don't seem to be playable by the xmbc mplayer. so i changed them for some dvb-t cards which record in mpeg-2.

now i can play the files from xbmcmythtv but the playback of audio and video is very jittery which makes it pretty much unwatchable.

the network is a 100mbps rnuning over an ethernet switch with only 2 or 3 pcs on it, so surely that shouldn't be a bottleneck?

the recordings are being accessed over samba. i was wondering whether that could be an issue. does anyone have any ideas what might be causing this and how i can fix it?

thanks,
phill


- najt - 2005-05-15

(philled @ may 15 2005,05:26 Wrote:i've just got xbmcmythtv working with my 0.18 back end. originally i had bt878 cards in the backend which recorded mpeg-4 files which don't seem to be playable by the xmbc mplayer. so i changed them for some dvb-t cards which record in mpeg-2.

now i can play the files from xbmcmythtv but the playback of audio and video is very jittery which makes it pretty much unwatchable.

the network is a 100mbps rnuning over an ethernet switch with only 2 or 3 pcs on it, so surely that shouldn't be a bottleneck?

the recordings are being accessed over samba. i was wondering whether that could be an issue. does anyone have any ideas what might be causing this and how i can fix it?

thanks,
phill
are you sure the files aren't being recorded that way (jittery). try copying one of the videos to your computer and playing it. also check the processor load on your mythtv backend when you play those files.


- juski - 2005-05-16

it's been a long time since i played with this, so i upgraded xbmc to 1.1.10 2005.05.13 at the weekend and installed the latest xbmcmythtv scripts... it loads ok - livetv works alright but when i try to scroll down the list of recorded shows, it just crashes.

i get about 5 programs down the list & it just hangs... any ideas?

fyi i've changed the home.xml file again so there's a button for mythtv on the front page. if anyone wants pointers on how to do this let me know & i'll post the tip.


- najt - 2005-05-16

(juski @ may 16 2005,21:32 Wrote:it's been a long time since i played with this, so i upgraded xbmc to 1.1.10 2005.05.13 at the weekend and installed the latest xbmcmythtv scripts... it loads ok - livetv works alright but when i try to scroll down the list of recorded shows, it just crashes.

i get about 5 programs down the list & it just hangs... any ideas?

fyi i've changed the home.xml file again so there's a button for mythtv on the front page. if anyone wants pointers on how to do this let me know & i'll post the tip.
use a build thats between 06/04 and 16/04.


- Wob - 2005-05-17

ok, i have run into a problem, i have had the script running without much problems for months now, i think that the amount of recorded shows i have may be causing me grief. problem is in the recorded programs list, i have a lot of shows in my collection now (9 pages, 75 programs, using 230 gb (77 hrs 51 mins) out of 365 gb) and if i try and resort the list it freezes and needs a reboot.
it also freezes randomly if i scroll through the list one show at a time, and i have found some shows that when highlighted will freeze it without fail, i though this very odd, as at this point it is showing nothing more than sql data, i checked the shows and that don't contain any unusual characters or anything like that.

i have included the log just before the crash, running xbmc from 02/05/2005 and xbmcmyhtv scrip of around the same time. help is appreciated as always.

17-05-2005 22:14:54 error exception in capplication::render()
17-05-2005 22:14:54 error exception in capplication::render()
17-05-2005 22:14:54 error exception in capplication::render()
17-05-2005 22:14:55 error exception in capplication::render()
17-05-2005 22:14:55 error exception in capplication::render()
17-05-2005 22:14:55 error exception in capplication::render()
17-05-2005 22:14:55 error exception in capplication::render()
17-05-2005 22:14:55 error exception in capplication::render()
17-05-2005 22:14:55 error exception in capplication::render()
17-05-2005 22:14:55 error exception in capplication::render()
17-05-2005 22:14:55 error exception in capplication::render()
17-05-2005 22:14:55 error capplication::render(), too many exceptions
17-05-2005 22:14:55 fatal exception_access_violation (0xc0000005)
at 0x006e00bb


- juski - 2005-05-17

(najt @ may 16 2005,21:38 Wrote:use a build thats between 06/04 and 16/04.
damn.

i don't have access to any april builds. i guess i'll just have to wait until things are fixed. why? because i download xbmc from newsgroups & i flatly refuse to put any file-sharing muck on my machine Wink

i enabled full logging and the log didn't show anything untoward at all.

what's changed since the 16-04 builds which could so adversely affect the mythtv scripts?


- najt - 2005-05-17

the skin format has been changed and since xbmcmythtv uses skins it was broken. i couldn't even get it to run with builds past 16/04. but i doubt that's the cause of your problem... just try it with a older build.


- juski - 2005-05-18

easier said than done Confused

the latest version of the scripts have changes to work with the new skin format, so that isn't to blame. i'll have a dig in the code to see if i can mess it up some more :thumbsup:


- DrWeird - 2005-05-18

weird, i am running off a build of xmbc from 12/5 and everything is running fine. najt, could you post the walkthrough for the button? i see the button on the screen but cannot select it for some reason.

thanks,

rob


- juski - 2005-05-18

on my setup i chose to do away with the 'my programs' menu item. i use evolution-x as my main dash so i don't need the 'my programs' menu anyway.

here's the code for what i've got:

Quote:<control>
<description>my programs normal push button</description>
<type>button</type> <execute>q:\scripts\xbmcmythtv\mythtvmain.py</execute>
<id>2</id>
<posx>91</posx>
<posy>231</posy>
<width>14</width>
<height>13</height>
<label>mythtv</label>
<font>special13</font>
#<hyperlink>1</hyperlink>
<onleft>98</onleft>
<onright>99</onright>
<onup>9</onup>
<ondown>4</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>

this is in the home.xml file within /e/apps/xbmc/skin/project mayhem iii/pal16x9/ folder btw


- linger902 - 2005-05-18

(juski @ may 18 2005,08:41 Wrote:...
this is in the home.xml file within /e/apps/xbmc/skin/project mayhem iii/pal16x9/ folder btw
i've done something similar on my box -- i added a button for mythtv. pretty simple, you just need to edit:

xboxmediacenter.xml - add a button in homebuttons, ie:

Quote: <homebuttons>
<button>
<description>mythtv</description>
<label>9</label>
<execute>q:\scripts\mytv.py</execute>
<icon>105</icon>
</button>

language/english/strings.xml - define a label for that button, ie:

Quote: <string><id>9</id><value>mythtv</value></string>

straight forward enough. i use this with the mce skin and it looks great.

i've been running these scripts for a while (since page 13 of this thread) -- the xbmc that i'm currently using is 2005-01-15. i haven't upgraded to any of the new scripts yet, i've been pretty happy just using the basic playback functionality.


- juski - 2005-05-21

i think i have an idea what the problem is...

i suspect the reason xbmc is crashing when i browse my recorded shows is something to do with the text of the program description - maybe 'illegal' characters ...?

i'll try turning off the description in the python code to see if that helps:

Quote:# populate description
#self.controls['show_descr'].control.reset()
#self.controls['show_descr'].control.addlabel( \
# row.formatteddescription() )
#debug( "show_descr=[%s]"%row.formatteddescription() )

wow! it works without crashing now... i wonder if the problem is a memory issue because text in the description field is too long. i use tv_grab_uk_rt for my listings - they give quite an essay for the show description. hmmmm.