• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 39
Python and MythTV (a MythTV Front-End)
#16
so i must be missing something.  i've got a mythtv backend running, i've got xbmc running.  i've got access to the setup menu options and can even pull in listings of my recorded shows.  when i click on an episode to play it, i get an error that says "'(cannot connect tree, errclass:1 and errcode:5)',1,5"

should the samba share point to my /myth directory or to the /myth/tv directory or some other directory?  i've curious to compare the output quality with the xbox myth setups i've tried.  any help would be appreciated.

btw, i've been able to access the samba share from my windows machine and can read the files just fine.
Reply
#17
(rothbart @ april 07 2004,09:29 Wrote:should the samba share point to my /myth directory or to the /myth/tv directory or some other directory?  i've curious to compare the output quality with the xbox myth setups i've tried.  any help would be appreciated.
point it to the folder where the tv recordings are, so /myth/tv. if you need a username/password to access your samba share, you will also need to include that in the path (smb://user:password@ip/share/)
Reply
#18
(madtw @ april 07 2004,02:55 Wrote:i think i'll add the ability to delete recordings soon as well.
deleting a recording would be really useful. are you going to have a yes/no dialog box pop-up at the end of a recording?

another thing i have been experimenting with is using the xbox web browser, linksboks, and pointing to the mythtv web server. this way everything can be done thru the xbox.
Reply
#19
Quote:are you going to have a yes/no dialog box pop-up at the end of a recording?

instead of playing a show when you select a show from the recorded show window, i was thinking of having a popup window that gives you the option to "play recorded show", "delete recorded show", or "cancel".

at the moment, there is no way for a python script to know when the player finishes. darkie mentioned that he was trying to think of a way for this to be possible but i haven't heard anything since.

i didn't even think to try linksboks... :d
Reply
#20
so finally figured out that maybe it has to do with the format of my files.  i changed to 640x480 from the default 480x480.  other than that, i think my settings are pretty much default.  are there any things about the format of the recording that could keep xbmc from being able to play the shows?

i sorta got further trying to record a really old show that i still had on hand. it would play "something" but audio-only. it certainly wasn't the audio track to the recording... it was as if random binary data was trying to be played as audio... not quite static, but definitely not intentional audio.

--rothbart
Reply
#21
i was having a problem with the buttons along the top (power off, home, reboot, credits) - it seemed the button images were mis-matched to the commands. anyway, it problem was in the home.xml in the mediacenter skin that came with one of the xbmc-mythtv archives. i cleaned it up to fix the problem. madtw, if it is not already fixed, i can email you the xml file if you want it.
Reply
#22
sure, send me the home.xml file that you modified and also the build version of xbmc that you are using. the home.xml that i included in the latest release of xbmc mythtv was from the 2004-03-28 build. if you used an older or newer version then that might explain why things didn't work as expected. i'm not sure how to release my skin changes on an ongoing basis...
Reply
#23
i'm running a mythtv backend with a dvb-t receiver, and i've been using xbmc to play the .nuv files back manually - i just found this project, you can imagine my delight. Smile

however, whilst the "mytvsettings.py" script executes fine (i've set up all the appropriate options), the "mytv.py" script always terminates with a "typeerror: unsupported operand type(s) for +: 'int' and 'tuple' ". i'm running a cvs build from 9/4/04, i've also tried a cvs build from 1/4/04 with the same problem.

looking at the debug log, the problem looks to be in the mysql.py library. i get some debug just prior to the error, specifically:

file "q:\python\lib\mysql.py", line 655, in __getstringandseekpos
 tmpstring = self.msg[self.positionConfusedelf.position + length]

i'm a coder by day, i've had a go at tracking it down but haven't had much luck, i'm not familiar with pyton and there doesn't seem to be any elegant way of debugging it in xbmc. any ideas you guys have would be appreciated!

meanwhile i think i'll start to study up on python, if i can get this thing going i can see myself wasting hours helping to extend it. Smile the default mythtv front-end isn't exactly fault-tolerant, it's a pain to boot via linux, and i've found xbmc's playback to be far better anyway.
Reply
#24
i had a quick look at the code that causes the typeerror exception to be raised. struct.unpack() returns a list instead of a scalar value. if you add [0] after each call to struct.unpack(), hopefully it will work.

i was fairly new to python when i ported the code in mysql.py from a perl module and didn't really test all scenarios as thoroughly as i would've liked. my main goal was to get database access working for what i needed.

given that all the struct.unpack calls were incorrect in that function, i wouldn't be surprised if you hit some other problems in the untested code. you can enable debug in the mysql module by adding "debug=1" to the parameter list when the mysql.connection() object is constructed in mytv.py.

let me know if you run into any other problems so i can fix the module...
Reply
#25
that worked a treat! thanks very much. i was also getting a problem in mytv.py at the start of "displayshow" where "channel" is set, i don't have "callsign"s set up for the channels and i was getting a string concatenation error. i've patched my local copy to ignore callsigns for now. thanks again! :d
Reply
#26
here's a simple little patch for gui.py so it stretches the background to the right size on pal systems:

def ( self, title, width=-1, height=-1 ):
if width == -1:
width = self.getwidth()

if height == -1:
height = self.getheight()

self.width = width
self.height = height

this way it uses the default size of the screen rather than hard-coded values.
Reply
#27
thanks for the feedback... i made the changes you mentioned. at the moment there is a lot of hard coding for ntsc. if you have any other pal friendly changes, pass them on and i'll try to include them.

i just installed the 2004-04-13 build of xbmc. you can grab the latest changes from here.

this version is much smaller because the xbmc release i got had a bunch of the .png files extracted in the skin directory. that means i can probably remove the explicit pathing to the files from my scripts in the long term if the files get included in textures.xpr but for now i just removed the files from my release.

once the functionality is rich, i'll try to figure out how to make the script more skin friendly.
Reply
#28
hi madtw,

i'm trying to get your myth-support to work, but i'm having a lot of trouble. the 0.2pre4 version won't even start - getting the exception:

system error: null result without error in pyobject_call
in file ..., line 1 "import gui"

the 0.2pre3 version starts up fine, but when i try to play a recorded show, xbmc either dies or just plays wired sounds. no exception in the python output. i think my settings (including smb are ok).

i'm working on a new version of xmbc (compiled yesterday) and i tried all kinds of tv formats (including 480x480). i'm working on pal.

would be happy for any help!!!!

thanks,

michael
Reply
#29
ok - i played around with the .nuv files. even as a plain smb share, i cannot play those files. i get the same syntoms as with the mythtv support - i either just hear some scratching noises, or xbnc hangs. can anybody which format to use?

i tried pal 384x288, 384x576, 480x480. i also tried rtjpeg and mpeg4 codec. i didn't play around with the audio codec yet....

also i still get the same null error when i try to use the 0.2pre4 version of mytv.

please help,

michael
Reply
#30
when i do not use the libraies (gui, nmb, smb...), but copy all in one file eg mytv.py it works fine. no idea why i cannot access the libraries.....

michael
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 39

Logout Mark Read Team Forum Stats Members Help
Python and MythTV (a MythTV Front-End)0