PDA

View Full Version : Python and MythTV (a MythTV Front-End)


Pages : 1 [2] 3

Loto_Bak
2005-02-19, 09:29
getting an issue with a recent cvs build (feb 17)

error log follows


24-11-2003 10:43:53 info debug level set to 31
24-11-2003 10:43:53 info traceback (most recent call last):
24-11-2003 10:43:53 info file "q:\scripts\xbmcmythtv\mythtv.py", line 1268, in ?
24-11-2003 10:43:53 info
24-11-2003 10:43:53 info unittest.main()
24-11-2003 10:43:53 info file "q:\python\python23.zlib\unittest.py", line 714, in
24-11-2003 10:43:53 info attributeerror
24-11-2003 10:43:53 info :
24-11-2003 10:43:53 info 'module' object has no attribute 'argv'
24-11-2003 10:43:53 info


thanks for any help

madtw
2005-02-19, 14:43
run the mythtvmain.py script instead of mythtv.py. the latter contains mythtv protocol code only. it will not create any screens - and apparently errors out in the unit test framework that is run when you run the wrong script.

smurf2
2005-02-20, 07:25
i finally finished getting 0.17 installed and had a go at this kewl script and now have it working for everything at last .it's good to finally be able to watch live tv .with the installation of the patched dll for mplayer (to play the mpeg4 nuv files) this script is nothing short of awesome

thanx for all the work you guys have put in :)

regards mary

imthemp3king
2005-02-20, 23:52
does anyone have this working with an avermedia avertv card? *i just cannot seem to get this working. *i keep getting access denied errors when trying to view my recordings. *i have verified from multiple pc's that i can access the shares i have created on the mythtv server. *i have the 0.16 backend and the latest cvs of xbmcmythtv.

madtw
2005-02-20, 23:59
when i was working on the scripts, i got access denied errors when the path prefixes were not configured correctly. if you don't change the paths from the defaults, it is highly unlikely that they'll work with your setup. also, if you have a single backend setup, try explicitly specifying the hostname instead of relying on '%h' to expand out correctly.

Zeth
2005-02-21, 03:01
man i appreciate the job you guys do on this script. happy to say another 0.17 mythtv working very well. todays snapshot of script cvs. had a few oddities with perl, but as soon as i updated all was well.

2.6.8-gentoo-r10
amd athlon™ xp 2400+
pvr-350 - multimedia video controller: internext compression inc itvc15 mpeg-2 encoder (rev 01)


had to add l/p to my paths according to my smb setup..

looking forward to updates. ;)

Loto_Bak
2005-02-21, 07:14
thanks for the reply madtw...

may i recommend an update of readme in the cvs? its in dire need of being relevent ;)

dooze
2005-02-23, 12:24
i'm running an avermedia dvb-t card on my mythtv backend, i've got no problems playing back recordings via xbmc. it must be some sort of configuration issue at your end.

the picture quality via xbmc is awesome, it's much better than playing though the linux based front-end for some reason.

imthemp3king
2005-02-23, 15:02
i'm running an avermedia dvb-t card on my mythtv backend, i've got no problems playing back recordings via xbmc. it must be some sort of configuration issue at your end.

the picture quality via xbmc is awesome, it's much better than playing though the linux based front-end for some reason.
do you have transcoding turned on? i haven't tried enabling transcoding yet. i tried copying the recordings local to the xbox hard drive last night and it would not play the one i copied over. i will post logs later tonight.

Abo-Jo
2005-02-24, 02:52
just got my xbmcmythtv installed and 99% working today. got an issue with the mysql error 10057 which i thought would stop it form accessing the db but it seems to have picked up all the filenames correctly which is nice.

a lot better than just seeing timecode filenames on smb...

looking forward to getting the tv guide running.

madtw
2005-02-24, 03:31
fyi, the tv guide screen has not yet been rewritten to support skinning... so all you'll get at the moment is a dialog with the skin name for the button.

Wob
2005-02-24, 12:50
hey guys,
first of thanks for all the hard work, the script is awesome. good not to have to wait for the load time of linux.
i want to be able to watch shows as they are recorded, something i do all the time under the linux front end. problem with the script when doing this is that it asumes the end of the file is were the show was currently upto when you started watching and spits you out when it gets to that point. the live tv is able to continue viewing while the file is expanded (as long as you don't fast forward past the end point). i was wondering if there is anyway to have the script detect a show that is currently recording and treat it the same way as livetv so that it doesn't keep spitting you back out to the menu.

cheers,
beau

Abo-Jo
2005-02-25, 01:31
fyi, the tv guide screen has not yet been rewritten to support skinning... so all you'll get at the moment is a dialog with the skin name for the button.
:) just figured that out! not a problem really...

madtw
2005-02-25, 03:51
wob: at the moment, there is nothing special in the script to do playback from live tv versus a recorded show once playback starts. both fire up the video player exposed to python by xbmc. the behavior that you are seeing is native to the xbmc video player.

having said that, i'm looking into exposing a few more things to the python encapsulation of the player. if i see an easy fix to this issue as well, i'll make the change and submit a patch...

Livin
2005-02-25, 06:10
i'm late in the game here so my apologies for noob questions...

are there any plans for a tutorial on how to set up the system?

is the plan to be able to use all mythtv pvr/video features from within xbmc's native interface?

i have not yet setup mythtv (don't have a pc to run it on yet) but may just do so if the answers to the above are both yes.

thanks

dooze
2005-02-25, 09:35
i haven't done any transcoding on the backend because i've never been able to get it to work properly. i've transcoded stuff with mencoder under win32 (my backend is hopelessly underpowered for anything other than streaming dvb-t to disk).

as a side note, i've also found a way to burn to dvd fairly reliably with no quality loss from the original recording (but slow and manual) - i can use projectx and ifoedit to demultiplex then remultiplex recordings to create a dvd image, then if the show is larger than a single dvd i use dvdshrink to actually burn it to disc. the mythtvburn scripts on sourceforge half-work for me, in that i can burn a dvd image, but the dvd image crashes dvdshrink when i try to resize it to fit into an actual dvd. *sigh*

lintweaker
2005-02-25, 12:51
i have just upgraded my xbmc and took the latest xbmcmythtv from cvs (yesterday) and everything works as a charm. the only problem is live tv. when i select live tv the chosen channel is just beeing displayed for a few seconds, then it stops. what can this be?

nb this is with mythtv 0.17

LazyBoy
2005-02-25, 20:09
i'm having a problem with live tv too.
recorded shows and upcoming shows work.
settings tested ok.
with llive tv, the channel listing comes up, but
when i select one i get an "access denied" dialog.

the backend is 0.16 and it works with other frontends.
(i changed the xbmcmythtv protocol setting to 13 to
be compatible.)
the backend log says

2005-02-25 12:59:19 mainserver::handleannounce playback
2005-02-25 12:59:19 adding: xbox as a client (events: 0)
2005-02-25 12:59:19 changing from none to watchinglivetv
waited too long for recorder to pause
2005-02-25 12:59:29 changing from watchinglivetv to none
2005-02-25 12:59:29 unknown socket

any advice?
thanks.
lb

madtw
2005-02-26, 03:23
there was a message posted a few pages back describing how to make live tv work. if you want the details, look back but a short recap is to adjust your xbmc cache settings smaller (i use 1mb for lan video cache) and fiddle with the min buffer size setting in xbmcmythtv (i use 750000 bytes).

your access denied problem is most likely a problem with your smb share configuration or path prefixes if you don't use smb. the settings screen only tests myth tv and mysql connections at the moment.

affini: the plan is to provide myth tv functionality natively through the xbmc interface. however, i don't see it doing everything that the myth frontend can do for various reasons - myth is changing all the time so we play catchup; features that are of high interest to the people working on it get implemented; xbmc is a bit limiting in what can be done through python; xbmc can do a lot of what myth provides (e.g. weather, music playback, video playback, dvd playback, add on emulators, etc.).

bigv
2005-02-26, 05:26
after upgrade my mythtv to 0.17(the schema upgrade is not automatically, has to manually change some table columns to get the upgrade completed), put xbmcmythtv 2-21-2005 cvs, tune up the cache setting, everything works, but not smooth on 802.11b connection(well, i use 802.11b on xbmc with no problem). so i changed it to wire connection, live tv and recored show gets very smoothly.

well, one thing i notice, loading the channels for live tv is very slow(30 secs), i am using dishnetwork, so lots of channels. did i do something wrong? if not, we probably wanna load it page by page instead of one big page.

madtw
2005-02-26, 06:27
yeah, i've noticed that loading the live tv screen takes a while and i only have ~60 channels. the query that is being used is extremely inefficient. that was rubenonrye's baby so i haven't looked at it much... once i finish this commercial skip stuff i may look at it. in the meantime feel free to offer patches to improve performance. i don't think xbmc gives you page spinner click events though so your suggestion may not work. also, even if you could page the stuff, it isn't the network transfer of the channel information that is slowing it down... i think it is the various joins in the query that are making it slow (and the joins would still be done when paging).

LazyBoy
2005-02-26, 23:58
madtw,

thanks for replying, but the cache and ring buffer size changes
didn't do it for me.

i don't think my problem is smb configuration either. my live tv
is going to the same directory (and smb share) as my recorded
shows, and they play fine. i double checked and saw the
ringbuf1.nuv file created there when i tried to watch live tv.

i also tried adding a trailing / to the live tv prefix. (from an
old post; probably an obsolete work around.)

i'm using a dotted quad (192.168.12.100) for my
primary host ip entry and smb://%h/media/mythtv
for recorded show and live tv prefixes. (trailing /
for the latter.)

the xmbc log below shows a live tv attempt followed
by a recorded show success. it looks like the name
used for live tv is being mangled somewhere. the
recorded show log shows the name "stimpy" which
is my backend (the .100 box). but the xbox doesn't
know that and i don't have local dns entries, so it
must have gotten it from the backend.

so i'm guessing that the backend is contacted at the
primary host ip and returns the string to be used in %h,
but it's getting scrambled in the live tv case??

thanks for any help,
lb


26-02-2005 16:26:16 debug freeing fs segment @ 0x821010
26-02-2005 16:26:16 info mplayer play:smb://192/media/mythtv/\ringbuf1.nuv cachesize:1024
26-02-2005 16:26:18 error smbdirectory->getdirectory: unable to open directory : 'smb://192/media/mythtv/\'
unix_err:'2743' nt_err : 'c0000022' error : 'access denied'
26-02-2005 16:26:18 debug initializing fs_seg..
26-02-2005 16:26:18 debug fs segment @ 0x821010
26-02-2005 16:26:20 info filesmb->open: unable to open file : 'smb://xbox:xbox@192/media/mythtv//ringbuf1.nuv'
unix_err:'2743' nt_err : 'c0000022' error : 'access denied'
26-02-2005 16:26:20 info flipping bi-directional subtitles disabled
26-02-2005 16:26:20 info stating file smb://192/media/mythtv/\ringbuf1.nuv.conf
26-02-2005 16:26:21 info stating file q:\mplayer\\ringbuf1.nuv.conf
26-02-2005 16:26:23 info filesmb->open: unable to open file : 'smb://xbox:xbox@192/media/mythtv//ringbuf1.nuv'
unix_err:'2743' nt_err : 'c0000022' error : 'access denied'
26-02-2005 16:26:23 error cmplayer::openfile() smb://192/media/mythtv/\ringbuf1.nuv failed
26-02-2005 16:37:04 debug freeing fs segment @ 0x821010
26-02-2005 16:37:04 info mplayer play:smb://stimpy/media/mythtv/1005_20050203210000_20050203220000.nuv cachesize:1024
26-02-2005 16:37:04 debug initializing fs_seg..
26-02-2005 16:37:04 debug fs segment @ 0x821010
26-02-2005 16:37:05 info flipping bi-directional subtitles disabled
26-02-2005 16:37:05 info stating file smb://stimpy/media/mythtv/1005_20050203210000_20050203220000.nuv.conf
26-02-2005 16:37:05 info stating file q:\mplayer\1005_20050203210000_20050203220000.nuv. conf
26-02-2005 16:37:05 notice start led control
26-02-2005 16:37:06 debug created video textures (0)

LazyBoy
2005-02-27, 02:50
i fixed my live tv problem by commenting out two lines in mythtvlivetv.py.

host = s.getsetting( "mythtv_host" )
# if sre.match( "^[ss][mm][bb]:", fullpath ):
# host = sre.sub( '\..*$', '', host )
fullpath = sre.sub( '\%h', host, fullpath )


i believe the intent is to reduce an fqdn to a simple name. adding a digit test would be more appropriate than removing them, but i'm not a python programmer.

thanks for the scripts though. this is a great improvement over booting linux.

just curious. how many people are actively working on this? what features are we likely to see next?

thanks again,
lb

madtw
2005-02-27, 08:05
my bad... yeah, i should've put a digit check in there. thanks for finding that, i'll fix it in cvs shortly. i have dns setup for my lan so i never hit that scenario in my testing.

the name stimpy is coming from the mythbackend. when a show is recorded it keeps track of which host recorded the show. this is in case you have multiple backends recording, then the primary backend can find the shows on the appropriate backend. if you ever go to such a configuration, you might want to get myth to stick the ip address into the database instead of the name.

euphorical, rubenonrye, and myself have worked on it in the last few months. however, i haven't heard from the other two in a few weeks now so i guess they're busy with other things. :)

i'm currently working on getting commercial skipping working. it seems to be working for the most part... but i've found that myth isn't always detecting the commercials correctly. also, mplayer seeking in xbmc is not as accurate as i'd hoped so i've had to tweak the code a little. seeking becomes progressively less accurate the further you get into the file. i'm almost ready to check the python code back into cvs... however, it requires some c++ patches to xbmc code as well and i'm not sure how long that'll take to be accepted into the xbmc cvs tree.

the next stuff on the list might be the program guide and the ability to make changes to upcoming shows that may or may not be recorded. i'd also like to expose more xbmc gui controls to python.

luigi
2005-02-28, 01:18
thanks for all the scripts madtw, this is definately the way to go, best of both worlds...
while you take a look at the code for the previous post, i suspect we may have another bug to iron out. i'm getting the "unkown socket error", but it appears to be coming from an alternate source to previous posts, even after comenting out the two lines suggested for the fqdn check code...
xbmc logs indicate
error cmplayer::openfile() smb://192.168.0.4/livetv\ringbuf1.nuv failed
basically were getting a backslash instead of a forward slash. this looks to me to be originating from the code somehow, as it's only livetv that has the issue. i've taken a look at the code, but i'm not much good at it.
looking forward to seeing the program guide in action!

madtw
2005-02-28, 02:23
technically, all the '/'s in the path are incorrect. the xbox is based on a win32 core and the path separator is '\'. fortunately, xbmc normalizes the path if it contains a mixture of '/' and '\' so i don't think that is your problem. if you still think that is your problem, replace all occurences of "os.sep" with "'/'" and see if it helps.

when you say "unknown socket" error... what do you mean? i have "unknown socket" being logged in the mythbackend.log all the time... but everything works fine.

luigi
2005-02-28, 04:02
thanks for the quick reply.
the "unkown socket" appears in the logs alongside the ...
"waited too long for recorder to pause", i thought that they were linked, but as you have stated they aren't, and yes i can see success assoicated with the entries also.
no "os.sep" found in mythlivetv.py, are you suggesting i try this on all scripts?
i've followed the previous posts and tried to tweak the cache settings, but not had any success with livetv...don't get a picture at all just a momentary paused in the gui scrolling.

i think there might also be some issue with the way the live tv program info is parsed. i found one channel entry last night that continually caused the box to freeze by just highlighting it.

one thing to note is that i don't have the setting for unknown type cache - internet, not sure if this is necessary.
i've also set the path manually etc etc. i have been able to do this using mythtv frontend from the xbox, so the backend server is cool.
i'll keep at it a while and see what i come up with.

madtw
2005-02-28, 06:01
if you have the latest cvs version of mythtvlivetv.py, you will find os.sep on line 73. this is where it builds the live tv path from your live tv prefix setting and the ring buffer file name returned by the myth backend.

if you don't think tweaking the xbmc cache settings is doing anything, try cranking up the min buf size in the xbmcmythtv settings to a value like 8388608. it will make xbmc wait until the ring buffer file is 8mb in size before it starts playing it. if that works, then you can start lowering the value until you get a good balance between reliable live tv playback and reduced time to start viewing. keep in mind that with such a large value, it might take 15-20 seconds before you get any video playback.

as for the program names that cause xbmc to freeze... i seem to remember finding a few problems like that earlier. if you can capture the title, sub title and description of the show that would help. when i saw this earlier, it had to do with non-ascii characters (e.g. french accented letters).

luigi
2005-02-28, 13:25
thanks again madtw,
i must have typo'd on the search & replace for os.sep. i replaced os.sep with "/"and this surely fixes the issue. i reversed the change and tested this scientifically, so at least in my set-up scenario the "\" is a factor.
there seems to be a significant level of visual drop out in livetv were audio comes through but visual fails (from onset), with the min ring buffer at 8388608. retrying the livetv connection generally fixes the problem and lowering the min ring buffer tends to diminish such events (short term observation).
interesting that even with livetv all working i still get... waited too long for recorder to pause in mythbackend log.

thanks again.

lui

e332
2005-02-28, 14:56
hi

i was wondering which codec is best to use for the live tv viewing in xbmcmyth, rtmpg or mpeg4? assuming cpu on backend is no problem, just considdering the support for each codec in mplayer ( modified dll).

thanks

keep up the good work.

stilger
2005-02-28, 19:08
just wanted to say thanks for such an awesome script and ask a few questions.

1. has anyone experienced their backend locking up when using this python script?

2. i have also noticed on a few different occasions that when going into recorded shows it can sometime not open correctly. a good example is that one of the recorded shows i have has a name of "gymnastics". when entering recorded shows i got an error that i had to click ok on. the error description had the word gymnastics in it. (this is all from memory.)

i will try to keep better logs and descriptions of this problem going forward.

3. also, has anyone been able to put a bookmark on a recorded show when using the python interface to open it? when i try it acts like it does it but it does not show on the bookmarks.

thanks.

Wob
2005-03-01, 12:44
hey madtw,
thanks for the reply, i have since realised that if i just watch and don't fast forward the watching of recordings works fine. that is good enough for now, having it not quick out when it hits the end (just stop, like in mythtv) would be nice, but i am not that picky.
thanks again for all the hard work, keep it up.

cheers,
beau

madtw
2005-03-02, 02:15
there seems to be a significant level of visual drop out in livetv were audio comes through but visual fails (from onset), with the min ring buffer at 8388608. retrying the livetv connection generally fixes the problem and lowering the min ring buffer tends to diminish such events (short term observation).
this sounds like an issue that xbmc had a while back... are you running a very recent version? i haven't experienced any visual drop outs or audio/video problems with a feb 3, 2005 build of xbmc.

Wob
2005-03-02, 09:54
ok, another question. this has been a problem for me since the interface change, but i just haven't been that bothered with it.

i can not view the status page, i get an error on screen "argument 1 must be unicode or str" with an ok option. then i just get returned to the main screen. i have inculded text from my log.

currently running the latest cvs (downloaded last night)

02-03-2005 18:28:41 info traceback (most recent call last):
02-03-2005 18:28:41 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 63, in oncontrol
02-03-2005 18:28:41 info mythtvstatus.showwindow()
02-03-2005 18:28:41 info file "q:\scripts\xbmcmythtv\mythtvstatus.py", line 30, in showwindow
02-03-2005 18:28:41 info win.refresh()
02-03-2005 18:28:41 info file "q:\scripts\xbmcmythtv\mythtvstatus.py", line 86, in refresh
02-03-2005 18:28:41 info self.controls['subscription'].control.addlabel( \
02-03-2005 18:28:41 info typeerror: argument 1 must be unicode or str

madtw
2005-03-03, 03:54
in order to display status from the backend, i have to parse the html that is returned as a result of connecting to the status port on the myth tv backend. obviously the html that your backend is generating is different than what i saw from my backend. can you connect to your myth tv backend status port with a browser, save the html, and send it to me?

otherwise, try commenting out the lines dealing with the "subscription" field to see if the screen comes up.

Loto_Bak
2005-03-03, 05:20
i am currently exsperiancing this error when trying to execute mythtvmain.py


05-12-8907 10:54:14 info traceback (most recent call last):
05-12-8907 10:54:14 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 7, in ?
05-12-8907 10:54:14 info
05-12-8907 10:54:14 info from mythtvgui import dialog
05-12-8907 10:54:14 info systemerror
05-12-8907 10:54:14 info :
05-12-8907 10:54:14 info null result without error in pyobject_call


this is using a march02/2005 build of xbmc completely bare of any modifications. i have a suspision this is not your scripts fault, but perhaps you could shine some light on the problem i am having.

thanks for your hard work on this project. once the patches for xbmc commercial skip and seeking stuff is tested ill mention it to jmarshal and hopefully we can get it in the cvs

madtw
2005-03-03, 08:15
silly question but do you have python installed? check the xbmc/python directory for a file called python23.zlib and a subdirectory called lib... the traceback in your message indicates it failed on the first line of code in the file.

Loto_Bak
2005-03-03, 08:20
appears a conflict in tdata between multiple version (though within a couple months of another)

diagdave@msn.com
2005-03-05, 03:48
i get an error if i put the host name in:


(4, getaddrinfo failed')


but if i put the ip address in i get a error when i try to go into status:


argument 1 must be unicode or str


or program uide


main_program_guide


or live tv:


error retriving recording schedule: you have...


any ideas?

madtw
2005-03-05, 06:01
if you're going to put the host name in, it must be the fully qualified domain name for your machine (assuming you have dns setup for your lan). the xbox name resolution seems to have a problem without the fqdn.

your myth tv backend status page must be different than mine so if you can connect to your myth tv backend status port with a browser and save the html to a file and send it to me, i can look into why it is having problems parsing it.

the program guide screen is not yet implemented using the skinned interface. all you will get is a dialog that says "program_guide" if you select it.

i'm not sure what the problem is for live tv... you could try running the mythtvlivetv.py script manually from the scripts directory and then have a look at the log file that is generated to see what the full error message is.

smurf2
2005-03-06, 03:14
hi
i was wondering if anyone has a patched mplayer.dll for the current cvs
xbox_media_center_2005-03-04 to play the compressed nuv files

i want to upgrade to get around the crashieness of the previous months cvs

anyhelp would be greatly apreciated :)

mary

orangechicken
2005-03-06, 21:52
i'm using a mid-feb build of xbmc and 0.14 of xbmc_mythtv (is that the most current version? point me in the right direction if it's not, thanks)

set up my connection and everything - i can view the status of the backend with the status script - but when i try to click on the recorded shows button it just pops up a dialog saying "reject['14']" (or something similar - that's definitely the number though)

any ideas? i can't find the error code in any of the scripts.

tia,
chicken

madtw
2005-03-07, 06:13
no, the latest is here (http://sourceforge.net/projects/xbmcmythtv/). you will need to check the files out of cvs... since no one has built release archive files yet.

orangechicken
2005-03-07, 10:15
yeah found that after i posted.

got it installed (had to replace %h with mythtv:mythtv@192.168.1.102 in the smb share paths - using an ip address and that is still apparently broken)

i'm using 802.11g and it's *real* choppy when playing recordings or live tv (btw, bug when i go to view live tv listings - can't hit back to get back to the main xbmc_mythtv menu). anything i can do to make it work over my setup - i can't believe that it would flood all the bandwidth... would it?

chicken

orangechicken
2005-03-07, 22:07
i tried editing all the caches (turned them all off, turned them down, turned them up, etc) in different combinations but nothing helped get rid of the choppiness - it would just run to the end of the buffer and start chopping.

another guy on this thread said that he's using 802.11g and playing back just fine. to that guy (or anyone else who can answer): what are your settings? what are your source files (mpeg-2 or mpeg-4?)

tia,
chicken

Loto_Bak
2005-03-08, 00:36
ill try and keep updated releases on www.loafamotive.com/xbmc/scripts/

madtw
2005-03-08, 07:53
don't worry about keeping releases elsewhere... i have placed a tar/gz file on the sourceforge page with the latest export from cvs.

j0ly
2005-03-08, 18:22
thanks madtw,

this is working great for me, but my live tv does not... i changed the buffers and it worked for a while. the other problem i have is i have 2 encoders on my myth server (pvr250's) and when going to status it breaks the screen (just cosmeticly) the other problem i have is i can only get my live tv from the first encoder in my box (which happens to be an analog line, the second decoder is hooked up to a motorolla dct-2500, so i am not able to get any of my digital channels). just some suggestions, and i would like to personaly thank you for creating this. it wraps my whole systems together perfectly!

thanks
- scott

davegartside
2005-03-08, 18:35
agreed the script is fantastic! any ideas when the program guide will return?

many thanks for a great script

dave.

orangechicken
2005-03-09, 00:52
fixed my choppiness problem.

yeah guys, if you have an 802.11g router - make sure that it is in g-only mode. otherwise you only get about 7-11mbps (as opposed to 22mbps or so).

all is well now! this is pretty slick!

stilger
2005-03-11, 07:07
again great work on this script. does anyone know when the changes will be made in the xbmc player core to allow the use of commerical marking?

also - i posted this along with some other oddities earlier but has anyone else had the myth backend lockup when moving around in this script. (usualy when selecting a recorded show to see more information).

i have also had on numerous occasions where i can move around on whatever screen i am on (example: i can move around in the recorded show information page but when i hit exit or menu it does not take me to the previous menu.) the only way i can get out is to reset my xbox.

any pointers would be awesome.

Loto_Bak
2005-03-11, 09:44
i am currently having python lockup when trying to access 'live tv'
other threads are stull running but python is fully locked and no info/warnings appear in the logs

after enabling debug in mythtvmain.py this is the output i'm getting


23-11-2003 09:15:35 info > singleton.getinstance( t=[<class 'mythtv.settings'>])
23-11-2003 09:15:35 info < singleton.getinstance( t=[<class 'mythtv.settings'>] ) => [<mythtv.settings object at 0x00aa2a50>]
23-11-2003 09:15:35 info > mythtv.settings.getsetting( tag=[mythtv_protocol] )
23-11-2003 09:15:35 info < mythtv.settings.getsetting( tag=[mythtv_protocol] ) => [13]
23-11-2003 09:15:35 info > singleton.getinstance( t=[<class 'mythtv.settings'>])
23-11-2003 09:15:35 info < singleton.getinstance( t=[<class 'mythtv.settings'>] ) => [<mythtv.settings object at 0x00aa2a50>]
23-11-2003 09:15:35 info > mythtv.settings.getsetting( tag=[mythtv_protocol] )
23-11-2003 09:15:35 info < mythtv.settings.getsetting( tag=[mythtv_protocol] ) => [13]
23-11-2003 09:15:35 info > singleton.getinstance( t=[<class 'mythtv.settings'>])
23-11-2003 09:15:35 info < singleton.getinstance( t=[<class 'mythtv.settings'>] ) => [<mythtv.settings object at 0x00aa2a50>]
23-11-2003 09:15:35 info > mythtv.settings.getsetting( tag=[mythtv_protocol] )
23-11-2003 09:15:35 info < mythtv.settings.getsetting( tag=[mythtv_protocol] ) => [13]
23-11-2003 09:15:35 info > singleton.getinstance( t=[<class 'mythtv.settings'>])
23-11-2003 09:15:35 info < singleton.getinstance( t=[<class 'mythtv.settings'>] ) => [<mythtv.settings object at 0x00aa2a50>]
23-11-2003 09:15:35 info > mythtv.settings.getsetting( tag=[mythtv_protocol] )
23-11-2003 09:15:35 info < mythtv.settings.getsetting( tag=[mythtv_protocol] ) => [13]
23-11-2003 09:15:35 fatal exception_access_violation (0xc0000005)
at 0x00224727
23-11-2003 09:15:35 fatal exception_access_violation (0xc0000005)
at 0x00224727


im using mythtv .16
all live tv paths are correct
other sections work just fine
and watching live from the linux box works
xbmc build march-08-2005

after enabling debug ive also noticed that recorded programs no longer works, but works fine with debug disabled.

any insight? i've seen two other users in #xbmc with a simular issue

edit
yes stilgar i've had the same issue time to time. not very often though

madtw
2005-03-12, 02:25
stilger: when you asked if anyone has seen the "myth backend lockup when moving around in this script", do you mean that your backend crashes or do you mean that xbmc becomes unresponsive? i haven't noticed the myth backend locking up or crashing while using the script. i have noticed the problem where sometimes you can't get out of a screen but you can still ftp to xbmc and you can navigate within the screen. however, i haven't been able to track down what is going on in the interpreter. it is like the event handler no longer gets called and so the code that responds to the menu button no longer gets invoked.

loto_bak: the memory access violation means that there is some memory trashing happening in the xbmc memory space. this could be as a result of something completely unrelated or it could be some python code that is triggering a memory error in the python interpreter. i haven't seen this problem on my setup so it is hard to know how to fix it. it could be that some recent cvs changes are not quite stable and that once those are fixed, this problem will go away. i'll try enabling debug in mythtvmain.py to see why the recorded programs isn't working - thanks for the heads up.

with any of these problems, if you can come up with a short set of steps to reproduce it consistently, post the steps here. it will help in tracking down how to fix it...

Loto_Bak
2005-03-12, 08:32
could you give me a date of a build you know is working? i can roll back to test if it an issue with the current cvs.

madtw
2005-03-12, 17:41
the last time i used live tv was on a feb 3, 2005 build of xbmc. that version supported two mplayer cores. when i tried the newer core, i remember it locking up on video playback when fast forwarding/rewinding.

with the march builds of xbmc, they have removed the old mplayer core in favor of the newer one. fast forwarding is a bit messed up still. also, i noticed my commercial skipping would ditch out of the media file being played (probably related to fast forwarding issues). i'm wondering if live tv playback is messed up as a result?

[edit] i tried live tv on a march 3, 2005 build and it locks up as well. i'm guessing it is the switch to the new mplayer core.

madtw
2005-03-12, 22:13
this is working great for me, but my live tv does not... i changed the buffers and it worked for a while. the other problem i have is i have 2 encoders on my myth server (pvr250's) and when going to status it breaks the screen (just cosmeticly) the other problem i have is i can only get my live tv from the first encoder in my box (which happens to be an analog line, the second decoder is hooked up to a motorolla dct-2500, so i am not able to get any of my digital channels). just some suggestions, and i would like to personaly thank you for creating this. it wraps my whole systems together perfectly!
can you connect with a browser to the status port on your myth tv backend, save the html to a file, and send it to me? i don't have two tuner cards in my myth tv backend so i'm not sure what the html looks like...

as for not being able to to use the second tuner card for live tv, i'll have a look at the code. i think the code currently just grabs an available encoder on the backend. ideally, it should ask for all encoders that are available and popup a dialog with a list if more than one is available. you could test this by trying to watch live tv while the first tuner card is recording something...

madtw
2005-03-13, 07:17
alright, i have just checked in fixes for live tv and recorded show playback tested with a march 12, 2005 cvs build of xbmc. everything seems to be very stable. live tv was definitely broken... i'm not sure when i checked in the broken code - i'm pretty sure it would not have worked with any version of xbmc. sorry for the red herring there.

fyi, the new mplayer core is much more accurate when seeking. as a result, i removed some workarounds when playing back recorded shows with automatic commercial skipping. the commercial skipping is pretty good now and my xbmc source code changes have made it into cvs now so everyone should be able to try it out with a fairly recent build.

if you think commercials were not skipped correctly, please verify that the myth tv frontend skips the commercial differently before posting a bug report. also, keep in mind that the python myth tv frontend only uses the timing info generated by myth tv to skip commercials. the official myth tv frontend uses the timing info as a guideline and then also analyzes frames to get a smoother commercial skip. the python version will never be as smooth as the official frontend.

stilger
2005-03-13, 17:44
thanks for the commerical skipping. i have compiled the new version of xbmc and xbmcmythtv and i can not figure out how to use it. what keys on the remote access the marks.

madtw
2005-03-13, 18:14
commercial skipping works with recorded shows that have been indexed for commercials by the myth tv backend. when you hit "play" on a recorded show, the script will check to see if you have any commercial marks in the myth backend database. if you have them, it will prompt you if you want to automatically skip commercials before starting playback. then while playing, when it realizes you've reached the start of a commercial break, it will pause the stream and fast forward to the point after the commercial. if you're not seeing the dialog before playback, then either the version of xbmc you have doesn't have the seektime(), gettime(), and gettotaltime() functions exposed in python or you don't have any commercial marks in the database.

stilger
2005-03-13, 21:08
i compiled a new xbmc from cvs today. i also got the latest xbmcmythtv from cvs today. i do not get the dialog. i can use the commerical skip option when watching recorded shows from my myth frontend though. are the changes needed for commercial skipping in the public xbmc cvs?

while testing the latest the script today i did get the problem where i can not go back to the previous menu. i have not got my other problem where my myth backend locks up since yet today.

i have also noticed that on the live tv screen when i am browsing up and down through the channels that i can see all the show information up to the air date line. all the other lines below i can not see. (i think they are description and notes). i can see them fine in the recorded show menu though. i am running 720p as my resolution. i have a ntsc xbox with a uxe softmod.

thanks for all the work on the great script.

madtw
2005-03-14, 04:39
yep, the changes are in the public cvs. i did a full checkout yesterday and got them. make sure you also update to the latest cvs of xbmcmythtv. also, you may want to try deleting all the .pyo files in the xbmcmythtv directory on your xbox to make sure everything gets recompiled. lastly, don't forget to reboot your xbox after deleting those files.

hmm.. i haven't experienced the problem where i can't go back to the previous menu with the latest build. can you reproduce the problem consistently by doing a specific set of steps?

i'm also running in 720p and i can see all of the text. try changing the skin files to adjust things to your liking. if you send the changes back to me and things look good on my setup as well, i can check the skin fixes into cvs so everyone can benefit.

stilger
2005-03-14, 06:39
hmm... when installing a new xbmc i always rename the xbmc directory and then copy a new one onto the xbox.

i just looked at my xbmcmythtv script directory and noticed the .pyo files all have a 3-2-05 date on them. i will delete them and try it. that is probably it.

thanks.

stilger
2005-03-16, 22:21
i deleted my .pyo files in the xbmcmythtv directory. it still does not seem to be doing commerical marking/skipping. i can not get it to prompt me when i start a recorded show. i will recompile a new xbmc and grab the latest xbmcmythtv from cvs and try it again in the next day or so.

madtw
2005-03-17, 04:35
take a look at mythtvrecordshowdetails.py. change this:


def isseeksupported( self ):
return xbmc.player..has_key( "seektime" )

to:

def isseeksupported( self ):
return 1


i put the check in there so that if people run an old version of xbmc, it won't bug them about commercial skipping that isn't supported anyway.

if you still don't get the prompt, then the script probably didn't retrieve any commercial mark information from the myth tv backend. search for the call to "loadmarkup". basically the logic is if seeking is supported by xbmc and some markup was found for the show, ask the user if they want to skip commercials automatically. if they answer yes, then set the commercial skipping flag to true otherwise set it to false. you could hard code the commercial skipping flag to true always and see what happens... but if no markup was loaded, then onplaybackstarted will exit prematurely...

if you don't see the logic described above in the code then you're running an old version. btw, you grabbed the code from cvs instead of the tar.gz from sourceforge, right?

stilger
2005-03-17, 20:26
i am pulling my code from cvs. i will recompile a new xbmc today and and pull the xbmcmythtv code from cvs again just to be sure. after installing it i will test it without making the change. if it still does not work i will make the change you recommend and try it again. i will let you know. thanks for all your help on this.

DrWeird
2005-03-18, 03:40
maybe i am doing something wrong. i have xbmc running from slayer's evox install disk. this installed xbmc on the f drive under apps\xbmc. i copied the xbmcmythtv folder to the scripts directory, but when i try to run the mythtvmain.py, it flashes running for a sec, but then does nothing. did i do something wrong?

drweird

madtw
2005-03-18, 05:28
i'm guessing slayer's evox install of xbmc installs a *very* old version of xbmc. these scripts depend on some recent features that have been added to xbmc over the past couple of weeks. i don't think slayer's disk has been updated since sometime last year...

stilger
2005-03-18, 07:34
madtw, i was able to make it skip commericals by making the changes in the file you suggested. i could not get it to prompt me without making the changes. if you would like me to do any testing in any other way let me know. thanks for all the help.

DrWeird
2005-03-22, 05:33
i've got the absolute latest version of xbmc on my xbox running fine. when i upload the xbmcmythtv folder to scripts and try to run mythtvmain.py, i get a invalid literal for int() error. is the version of the python library that i got from the xbmc cvs the wrong version for the script? any other ideas?

drweird

taylorasdfjkl
2005-03-22, 18:47
this may have been discussed earlier, but i don't see it posted anywhere.

i was able to get mpeg4 and rtjpeg .nuv support by recompiling mplayer using these instructions:
http://manual.xboxmediacenter.de/wakka.php?wakka=compilingmplayer

but first patching mplayer with the patch on this page:
http://dijkstra.csh.rit.edu/~mdz/mythtv/

you can download my .nuv patched mplayer.dll (cvs 03/21/05) here:
http://home.comcast.net/~gmsts/mplayer.zip

now i can play these .nuv files through "my files" or watch recordings, but the files will stop playing when i try to fast forward or enable skip commercials.

also, live tv does not play at all, and i get this in my mythbackend log:

2005-03-22 10:02:14.007 adding: xbox as a client (events: 0)
2005-03-22 10:02:23.244 changing from none to watchinglivetv
strange error flushing buffer ...

after this, i am stuck in the live tv screen and have to reboot the xbox.

i am also getting the above posted "invalid literal for int()" error with the latest cvs releases of xbmc and xbmcmythtv, but only when using the project mayhem iii skin.


taylor

Loto_Bak
2005-03-22, 20:29
xbmcmythtv does not like skins other than pm or pm2. speaking of which could xbmcmythtv fall back on another skin when the corresponding xbmc/xbmcmythtv skin is not found

DrWeird
2005-03-22, 21:15
i just learned the skin issue. i switched back to pm and that solved the int() error.

thanks,

drweird

madtw
2005-03-23, 03:57
i've been reworking the skins because there was a lot of redundancy. i currently have pm, pm2, and pm3 working really well but it requires some patches to xbmc to expose more functionality to python. the patches have been submitted and they will probably end up being included friday (since that seems to be the pattern for previous patches i submitted).

i also have a new skinned version of the program guide working but i have held back from checking it all into cvs until the xbmc patches make it into cvs... when i check it all in, i will be deleting almost all the skin-specific skin files replacing them with skin files that are in a shared directory. then each skin just needs a custom background image and most likely a vars.xml which contains a number of coordinate variables that are skin specific.

when those changes take place, the fallback will be the skin/shared directory...

madtw
2005-03-23, 04:07
now i can play these .nuv files through "my files" or watch recordings, but the files will stop playing when i try to fast forward or enable skip commercials.
this sounds like a problem that xbmc had at the beginning of march. with the latest builds, if you fast forward while playing live tv, it keeps playing at the end of the expanding buffer. commercial skipping is now much more accurate than the previous mplayer core. which mplayer core did you patch? (v5 or v6 - i haven't looked at the mplayer dlls but i seem to remember numbers like that)

hpx
2005-03-23, 05:44
a few things;

- first of all, this script is absolutely fantastic. commercial skipping works great! i'm using the xbmcmythtv cvs from sunday and the latest xbmc from -my mom-.

- regarding the skin issue, i have a custom mediaportalx skin, so to maintain compatibility, i just rename project gotham to mediaportalx. works great. this way i have the custom skin, and a similar-themed skin for mythtv. i had to change the left margin to width*.08 rather than .05 to prevent the words from being cut off.

- does program guide work. when i select it i only get a dialog box with " main_program_guide ".

- lastly, is there any way to change channels when watching livetv?

- thanks again for the great script.

madtw
2005-03-23, 10:27
does program guide work. when i select it i only get a dialog box with " main_program_guide ".
no, the current cvs version of mythtvmain.py only displays a dialog when you click on the program guide button. when patch #1166891 is put into xbmc cvs, i will check in all my latest changes with the program guide, cleaned up skins, support for pm, pm2, and pm3.
lastly, is there any way to change channels when watching livetv?
hit the display button on the remote and pick a different channel. unfortunately, when live tv is playing back full screen, mplayer grabs most input except for a few global button presses. i haven't found a way for python to get the input events to trap things like skip +/- to change channels, etc..

DrWeird
2005-03-24, 00:39
when i try to watch live tv, it will show me about 1 second of tv then go back to the menu. if i try and watch live tv on the mythbox itself, it works, although slowly at times. could be my backend is not powerful enough. (piii-550 w/ 750mb ram) if it helps, i may switch to runlevel 3 and disable xwindows as only the backend needs to run. but before i can do that, i need to make sure i can watch live tv via the xbox first.

thanks,

drweird

madtw
2005-03-24, 05:02
this question has been answered a few times on previous pages. you need to adjust the size of your xbmc cache versus the xbmcmythtv buffer size. as a rule of thumb the xbmc cache should be smaller than the xbmcmythtv buffer size. see the previous posts for exact details.

DrWeird
2005-03-24, 06:57
thanks. i should have searched the posting better. it works great now. now i can try and see what i can contribute. now, if i could just get the messed up program guide on my mythbox working i'd be happy. moved time zones and providers and now everything is http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cry.gif

thinkquicker
2005-03-25, 06:13
hello, i've been following this project for a little while now, it's great! i want to thank all the developers, your efforts are apprectiated. i currently have everything that is suppose to work working, and it's working great.

just to sum up how to get it all working i'm posting my settings below. you're on your own to make sure your backend is setup to allow remote clients, grab the knoppmyth distro if you need to test, just a bootable cd that boots right into mythtv.

everything i'm posting below was from the forum and/or the readme. just thought i'd point that out. :)

----------------------

settings to get live tv working:
xbmc video cache lan = 1024
xbmcmythtv buffer size = 750000


for comercial skipping:
-latest version of xbmcmythtv cvs
-recent version of xbmc
(i'm running one from 3/21/05)


button on the main xbmc menu for mythtv:

this is something you need to do if you want to use xbmcmythtv. check the readme for all the steps, you have to increase numbuttons value by 1 in:
xbmc/skin/project mayhem/pal/home.xml
(yes pal, even in north america)

this is what i added to the xboxmediacenter.xml file:
<button>
<label>mythtv</label>
<icon>103</icon>
<description>mythtv</description>
<execute>q:\scripts\xbmcmythtv\mythtvmain.py</execute>
</button>


==============

that's all i had to change to make everything work perfectly.

thanks again.

avar
2005-03-25, 18:32
i was so relieved to find this project, as i never really liked running linux on my xbox. *thank you for all your efforts.

heres my problem:
i installed it, set it up. *now when i go to watch a recorded show nothing happens. *i get nothing in the logs (despite having debug=0). *on the backend side i get this:

2005-03-25 07:57:09.603 invalid file handle when opening /rawvideos/1054_20050325010000_20050325013000.nuv.png. *0 retries remaining.
error: file i/o problem in 'safe_read()': bad file descriptor

i my cvs for xbmc and xbmcmythtv are current as of 3/24/05
mythtvbackend = 0.17

i know that this appears to be a server side issue but everything appeared to be working fine before. also, it is working fine using the frontend on the server. *i am downloading knoppmyth, just to verify, but it will take a day or two (slow connection). *any help is appreciated.

madtw
2005-03-25, 19:11
ok, two things i noticed from your message:

1. in order to get debug info from the scripts, you need to set debug in xbmc to an appropriate level and also set debug in the script code itself. debug in the script is a bitmask... so debug=0 actually turns all messages off. i suspect debug=0 was the value you specified in the xboxmediacenter.xml file. also, if you use xbmc as your dash, there is an initial log file that is generated on c: and then the continuation of the log file in the xbmc home directory (e.g. e:\apps\xbmc).

2. the backend message you displayed talks about a .nuv.png file. this is not a video file but rather a screenshot from the program. if you go into the recorded show details screen, it instructs the backend to create a screenshot, downloads it from myth, and then displays it. do you see a screenshot before you select "play"?

the only time i've seen something like this is when i had a few zero size video files that myth kept in the database and on disk. this caused problems when trying to generate the screenshots and obviously the shows couldn't be watched. my backend server's tuner card driver failed to initialize completely and so all shows were 0 byte files. the fix at that time was to reboot the box and make sure the driver initialized properly. then delete all the bad shows from the database.

avar
2005-03-26, 00:54
thanks for the fast reply

1. in order to get debug info from the scripts, you need to set debug in xbmc to an appropriate level and also set debug in the script code itself. *debug in the script is a bitmask... so debug=0 actually turns all messages off. *i suspect debug=0 was the value you specified in the xboxmediacenter.xml file. *also, if you use xbmc as your dash, there is an initial log file that is generated on c: and then the continuation of the log file in the xbmc home directory (e.g. e:\apps\xbmc).
i guess cause it said in the readme, that you had integrated debug in with xbmc as of 0.14, that that was the only place i had to enable it. *ill enable it correctly tonight.

2. the backend message you displayed talks about a .nuv.png file. *this is not a video file but rather a screenshot from the program. *if you go into the recorded show details screen, it instructs the backend to create a screenshot, downloads it from myth, and then displays it. *do you see a screenshot before you select "play"?

the only time i've seen something like this is when i had a few zero size video files that myth kept in the database and on disk. *this caused problems when trying to generate the screenshots and obviously the shows couldn't be watched. *my backend server's tuner card driver failed to initialize completely and so all shows were 0 byte files. *the fix at that time was to reboot the box and make sure the driver initialized properly. *then delete all the bad shows from the database.

i think i have an idea about whats going on, and it is a backend issue. *you were right about it creating 0 size files. *.nuv file was 1.5gb. *.nuv.png was 137 bytes?? *it appears that having a 0 sized png file caused xbmcmythtv to stall? *the pc frontend was able to deal with it ok, although it was slower that usual.

my tuner card, which is about 6 yrs old, seems to be on the fritz. *it no longer works in windows at all, and is flakey on linux through tvtime. *the nuv file it did create is xtremely poor quality, and the sound is awful. *it worked great for about a month, and then decided to go out sometime while i was setting up xbmcmythtv. *i guess its time to get a new one

thank you for your help

madtw
2005-03-26, 21:07
this is just a heads up that i have checked in the latest source into cvs. my patches have *not* made it into xbmc cvs yet but i figured i might as well make my changes available so that there is no delay when they do. if you build your own xbmc, apply the diffs attached to patch 1166891 to the xbmc source tree before compiling. if you don't, the scripts will fail miserably because they rely on parameters to gui controls that aren't available without the patch.

note: read the readme file for upgrade instructions as well as optional instructions for channel icons.

elminster
2005-03-26, 22:10
hi justed checked out the latest version of mythtv and they have made an alteration to the protocol again. they are now on protocol 15.

i'm sure you know but throught i'd mention it.

freeidee
2005-03-26, 23:35
hello
madtw help me :verysad:

i tested the your script , but don't work live tv ( press livetv in xbmc and freeze all , ) the log of mythbackend is : unknows socket
work only the play of recording , and show



push testing button and ok i dont understand the problem

use mythtv 0.17 and last xbmc build 12,03,2005

ps:sorry for my bad english , i'am italian
, mythtv in the pc work perfect

madtw
2005-03-27, 00:46
fyi, i usually stick with the last stable release of myth tv. this means that i don't usually update the protocol until they release a new stable release. however, the xbmcmythtv settings allows you to specify the version number of the protocol. sometimes, when they update the protocol, you can just change the number in the settings and things will work... occassionally the message size increases and then things may or may not break.

as for your live tv freeze up... it could be many things. make sure you are running a very new release of xbmc. i updated from xbmc cvs march 25, 2005 and did not have any problems playing back live tv. also, make sure you setup your cache settings as per many messages posted in this thread. the "unknown socket" error is typical in the myth logs... it doesn't mean anything. i get that all the time when things work as well.

freeidee
2005-03-27, 01:27
thanks for the fast reply
ok now try with the last version xbmc

the protocol task that works use the 14 if change number mythbackend perceives to me and it says me to put the 14, i use 14

freeidee
2005-03-27, 02:10
i have tried with last xbmc 26.03.2005
but when i press livetv it freeze xbmcmythv
all i have controlled the path smb is are right
to the serveur mysql colleague
i am not understood where puo to be the problem?

madtw
2005-03-27, 06:42
no idea. you may have to wait until someone else experiences the same problem. there isn't a whole lot of information to go off of...

freeidee
2005-03-27, 11:34
use fedora 3 and mythtv 0,17 rpm version but to be this that problems give to me, trying last mythtv the 0,17 cvs perhaps works xbmythtv that of tasks?
excuse you have intention of release some other version of xbmcythv in these days?

madtw
2005-03-27, 20:48
no, the cvs build of mythtv has never been tested by me. i am running the last stable release (version 0.17). if other people are running a newer version please speak up... otherwise, i would stick with the latest stable release of mythtv - not a cvs build.

did you install xbmcmythtv from the tar file on sourceforge? if yes, then that is a bit old. there have been many fixes/changes since then. the latest cvs of xbmcmythtv will *not* work with xbmc unless you apply patch 1166891 to the source and build it manually. if i was you, i would wait a few days until the xbmc patch is included in cvs and is in the public builds. then grab the latest xbmcmythtv from cvs as well and hopefully things will work for you like they do for me.

i am planning to create a new tar release of xbmcmythtv on sourceforge. however, that won't happen until the patch mentioned above becomes mainstream and people have had a chance to test the latest version in various configurations.

freeidee
2005-03-27, 21:55
thanks always for the reply

yes i'am install the last xbmythtv tar on the sourceforge
i have tryed this version http://citkit.dl.sourceforge.net/sourcef.....tar.gz (http://citkit.dl.sourceforge.net/sourceforge/xbmcmythtv/xbmcmythtv-0.17.1.tar.gz)


therefore then my problem and the patch to apply to xbmc in order making to work xbmythtv ok? , excuse you could makes me the pleasure to send to me if you can, or to say where i can find xbmc patched i did not know that that served a patch to xbmc in order making to work yours script, where i can find it? you could send it to me thr xbmc patched, i do not know to compile

madtw
2005-03-28, 01:50
sorry, you'll have to wait until it gets into the public builds. just be patient...

freeidee
2005-03-28, 11:09
ok , wait :sleep: :d

freeidee
2005-03-28, 20:26
sorry madtw, a curiosity this script allows to me , schedule programming the recording ?

i can programming recorder from xbox? o only with mythtv-frontend ( pc ) ?

taylorasdfjkl
2005-03-29, 00:46
now i can play these .nuv files through "my files" or watch recordings, but the files will stop playing when i try to fast forward or enable skip commercials.
this sounds like a problem that xbmc had at the beginning of march. with the latest builds, if you fast forward while playing live tv, it keeps playing at the end of the expanding buffer. commercial skipping is now much more accurate than the previous mplayer core. which mplayer core did you patch? (v5 or v6 - i haven't looked at the mplayer dlls but i seem to remember numbers like that)
i'm using the latest mplayer source from "anonymous@cvs.sourceforge.net:/cvsroot/xbmc"
which looks to be "pre6" according to the changelog.

upon further testing though, this problem seems to
only occur specifically with mpeg4 .nuv files. all other files, including rtjpeg .nuv files don't have this problem. so i can only
assume, since i'm not a programmer, that this is just a problem
in the .nuv patch i applied.

perhaps this needs to be addressed in a different project/forum, but for now i'll just switch to rtjpeg encoding.


taylor

Abo-Jo
2005-03-29, 19:57
are any of you getting a socket 10057 not connected error on trying to play the recorded shows? it's really weird, xbmcmyth can see the recorded shows, it can select them and show me the image that is associated with the nuv file but when i click play it just stops with the error.

i didn't do anything to my mythtv box nor to the xbmcmyth installation. i have however, upgraded xbmc to a march 21 build. but the first thing i did after doing that was to play a recording as a test and it passed with flying colours. this just seems to be something which has recently kicked in...

madtw
2005-03-30, 01:28
the recorded show listing, screenshot, etc. are all done using the myth tv protocol. that means your connection to the backend is working fine. playback involves loading markup directly from the mysql database and then launching playback with your configured prefix. the socket connection error is most likely related to a problem connecting to the mysql database. check your settings in xbmcmythtv and check your mysql permissions for remote access.

madtw
2005-03-30, 01:30
sorry madtw, a curiosity this script allows to me , schedule programming the recording ?

i can programming recorder from xbox? o only with mythtv-frontend ( pc ) ?
not yet... the scripts currently allow you to do the following:

- watch live tv (from the myth backend)
- manage/watch recorded shows
- view upcoming scheduled shows
- view status
- view the program guide

scheduling recordings is something that will eventually be added when you select a program in the program guide.

wbrokow1
2005-03-30, 05:33
see this link it might help.
http://www.mythtv.org/docs/mythtv-howto-6.html#modify_perm_mysql

Abo-Jo
2005-03-30, 20:47
cheers, just changed the subnet a bit to see if that helps, maybe the xbox's ip changed and was not behaving as the correct user... testing in a bit.

edit:

not worked! i've gone through the permissions and i have my mythtv@xxx.xxx.xxx.% set with all privs on mythconverg. i've even tried it as root.

i know i haven't changed nay of these settings so something has gone on i assume that has goosed mysql.

RoosterX
2005-04-02, 14:40
will this script be able to pause, ff, fr etc (timeshift) through the xbox, or is it only showing live steams?
tia

sigtom
2005-04-02, 17:40
will this script be able to pause, ff, fr etc (timeshift) through the xbox, or is it only showing live steams?
tia
as madtw said this will allow you to:


- watch live tv (from the myth backend)
- manage/watch recorded shows
- view upcoming scheduled shows
- view status
- view the program guide

madtw
2005-04-03, 01:58
as sigtom pointed out, you can timeshift through the xbox by recording shows.

also, while watching live tv, you can pause (e.g. to go to the fridge or whatever). rewinding of live tv doesn't seem to work (it just puts you back at the end of the live tv stream) but i think that may be a mplayer issue. the myth ringbuffer should allow you to rewind for the buffer amount.

anyway, i don't use the myth frontend at all as a result of this script + myth web for scheduling. when i get a chance to write the scheduling bit, then i'll end up using the scripts exclusively.

luigi
2005-04-03, 05:16
hi all,
just tried the latest cvs versions (030405) of both mythtvxbmc and xbmc. i've noted the following errors. for live tv you get "unsupported operand types for +-:"none type" and "str"
for the program guide, i get "list index out of bounds"
everything else works as it should.

Livin
2005-04-03, 07:02
madtw,
this sounds like some great work... once you have released a gold version that works with xbmc i'm going to try my hand at setting it up. i've never even used mythtv but this is going to push me to do it!

thanks for giving to the community!

madtw
2005-04-03, 07:19
just tried the latest cvs versions (030405) of both mythtvxbmc and xbmc. i've noted the following errors. for live tv you get "unsupported operand types for +-:"none type" and "str"
for the program guide, i get "list index out of bounds"
everything else works as it should.
looks like you have some interesting data in your myth database... the live tv error means that something is coming back null/none when it isn't expected to (or handled properly). i'm not sure what would be causing your second error (besides the obvious that the index being used is outside the bounds of the array)... if you can consistently reproduce the problems through a sequence of well defined steps and/or get some debug logs, it would help me in figuring where the problem is...

Wob
2005-04-03, 11:00
hello again madtw,
just updated to the latest cvs of mythtv (running xbmc from 01/04/05) and everything is working sweet except the program guide looks like a dog breakfast. i have 7 channels, they are listeded multiple times down the screen 1-7, 1-7 etc, it also doesn't scroll properly, when i get halfway down it jumps, i have overlapping text (one show overlaps with the next) and the repeated channels show "no data".

this is the only error in my logs.
03-04-2005 17:44:26 info q:\scripts\xbmcmythtv\mythtvguide.py:118: deprecationwarning: integer argument expected, got float
alignment=(
03-04-2005 17:44:26 info q:\scripts\xbmcmythtv\mythtvguide.py:127: deprecationwarning: integer argument expected, got float
alignment=mythtvgui.align_center_y | mythtvgui.align_truncated )

i still have issues with the status, i have just sent you a msg with my status html.

cheers,
beau

madtw
2005-04-03, 18:07
wob: you didn't apply the xbmc patch i mentioned in an earlier post. i added screenshots of what the program guide should look like to the source forge page. alignment and truncation of the program guide button fonts will not work without the patch - actually i'm surprised anything works at all without the patch. you'll have to build xbmc manually until they include my patch...

[edit] i am working on a fix if you have less channels than displayed on a single screen. i have a few screen fulls of channels so i never hit that error condition.

[edit2] i just committed a fix to xbmcmythtv cvs if you have less channels than can be displayed on a single program guide screen. like i posted earlier, i didn't expect the scripts to work until xbmc patch 1166891 is applied to xbmc's cvs repository. unfortunately, it is taking longer than previous patches to be applied... but there isn't much i can do about that. as for the status problem, if you have more than one tuner i know there are issues... i am thinking about changing the status screen to have subscreens (i.e. break up existing info onto multiple screens taking into account multiple tuners, etc.). also, i wanted to get a program guide done because people keep asking for it so the status screen has been neglected for a while... i would like to get scheduling working before i look at the status screens again.

Wob
2005-04-04, 15:57
madtw,
my bad, i "assumed" that it would be in the latest cvs, i'll give it ago.

cheers,
beau

freeidee
2005-04-04, 22:51
hello madtw i wanted to know when it will be possible to program the recordings from xbmythtv? why task that is one what a lot important for all has ,some date? you are working to this?

madtw
2005-04-05, 03:22
sorry, i can't give a specific date since i work on this stuff in my spare time... rest assured that it is on my todo list.

as always, user code contributions are welcome as well... if you have made modifications to the scripts that you feel are useful to everyone.

madtw
2005-04-06, 04:31
fyi... the patches have made it into the xbmc cvs repository today. keep an eye out for your favorite builds...

Abo-Jo
2005-04-07, 03:11
see this link it might help.
http://www.mythtv.org/docs/mythtv-howto-6.html#modify_perm_mysql
i followed this tutorial first time round when i setup the myth box... i've now reinstalled countless versions of xbmc and xbmcmythtv to no avail. i've tried all number of users including root. still the socket 10057 error. i'm at a loss as to why this has started to rear its head as i installed myth 0.17 before i even had an xbox so when i tried the myth script out it worked pretty much first time.

can someone post a version number of xbmc and xbmcmythtv that they have which works please?

the only thing which i have not changed between these different updates is the xboxmediacenter.xml file. it is the same one which came on the evox build.

madtw
2005-04-07, 04:46
ok, i created a new tar.gz file on the sourceforge project page. this is what i am running with a fairly recent build of xbmc. the version of xbmc should not make a difference for your socket error.

you can get the file here (http://sourceforge.net/projects/xbmcmythtv/).

note: i added a query when testing mysql settings now. please make sure you test your settings (in fact, if i was you, i'd delete your existing settings and start from scratch). if your settings test ok, then the problem has nothing to do with mysql or the mythtv backend - the next thing to look at would be your path prefixes...

Abo-Jo
2005-04-07, 10:28
thanks madtw, i'll give her a try tonight.

edit:

bonza! it's working again. don't ask me how but the "my.cnf" file was rewritten to the default setting. i had to mess about with my users permissions and basically create a new user for myth and do a bit of setting up again.

thanks for help!!! :thumbsup:

Abo-Jo
2005-04-08, 02:11
the live tv works a treat, set the buffer to 8mb so it took a few moments to kick in, but it is cool. great effort, this is the business!

stilger
2005-04-09, 07:39
how many people have commerical flagging/skipping working? if i watch shows from my myth frontend it will skip the commericals fine. they will not skip with this script. my only thought is to do a complete reinstall of xbmc after deleting the saved game directory and see if that helps.

i also still sometimes get the lockups where i can move around on a screen but not go back the previous screen. this normaly happens in the recorded shows area. i am still able to select and watch any of the shows in there but i need to reset my xbox to get out of that menu. i mentioned this before and i do not think any one else had this problem.

any help would be great.

i also have the latest version installed and the program guide looks great.

madtw
2005-04-11, 05:46
stilger: do you get a dialog asking if you would like to skip commercials whenever you watch a recorded show? if you don't get that dialog, then something funny is going on...

you could try a clean install of xbmcmythtv... delete the entire xbmcmythtv directory and reinstall from scratch. at the very least, delete all .pyc or .pyo files in the xbmcmythtv dir so that xbmc recompiles the .py files.

philled
2005-04-11, 17:21
hello madtw - i'm new to this forum so i hope i'm doing the right thing just adding to the bottom of this list.

i've just installed xbmc dated 1-apr-05 and xbmcmythtv version 0.17.2. i can see the recorded programs and when i try to play one it says "do you want to automatically skip commercials", then when i say "no" (don't want to upset the tv execs now, do we) it comes up with an error message saying "invalid computer name". so frustrating - i thought i'd nailed it before that happened!

one further piece of info here is that there is an option to copy the file to local disk on the xbox, and that works fine. so it's finding the file and has read access.

does anyone know how i can resolve this?

thanks in advance,
phill

madtw
2005-04-11, 18:10
the copy is done using the myth tv protocol whereas playback is normally done using smb. my guess is that either the name of your host is weird or not being populated correctly in the myth database by the myth tv backend. you have two options: fix the backend so that it stamps the recorded shows with the right host name or change your path prefix replacing '%h' with either the ip or the correct host name.

easel
2005-04-11, 18:29
so i just got the 17.2 version of xbmcmythtv running with my newly upgraded mythtv 0.17 box. most things seem to work correctly, although it looks like i need to tweak the live tv buffering some more. well done.

however, i have about 200gb of shows recorded on my system at any time. the old xbmcmythtv recorded programs screen allowed me to view all programs, or select the program i want on the left and then a specific episode on the right. currently, i have 13 pages of recorded programs, and scrolling through them using a remote is really slow. my wife's not gonna like it.

is there another skin or something that allows filtering by show?

stilger
2005-04-12, 03:07
madtw:

yes i do get the dialog.

when updating to a new xbmcmythtv i rename or delete the current directory and just copy my settings file over.

when using the commerical skip it should automatically skip them when they come up. i should not need to do anything correct? (maybe i am missing something on how to use them.)

madtw
2005-04-12, 03:18
that cannot be skinned at the moment. skinning currently requires the same types of controls to be in the skin file but you can move them around however you like. the old interface had issues with various resolutions and skins so that is why it was changed.

your best bet with the latest interface is to use the view by button to group shows together by title. then you can use the list page up/down buttons to quickly navigate to your page of interest. i haven't gotten around to adding in a filter by program yet.

some ideas i've had but haven't had time to implement yet are:

- have a button that loops through "all programs" + each unique title one at a time when it is activated. the value in the button would filter the list on the right. (this would kind be like the old interface except you have to click a button instead of scrolling up/down)
- or when the list first comes up, display only the titles. when you select a title, show the episodes.

anyone else have any other ideas?

madtw
2005-04-12, 03:30
when updating to a new xbmcmythtv i rename or delete the current directory and just copy my settings file over.

when using the commerical skip it should automatically skip them when they come up. i should not need to do anything correct? (maybe i am missing something on how to use them.)
your method for upgrading sounds ok.

yep, commercial skipping should happen automatically after you answer "yes" in the dialog. when commercial skipping takes place, you will first see the pause button popup and if you wait a little (3-10 seconds), it should unpause hopefully after or near the end of a commercial. i've had some problems with certain shows (e.g. csi) where the scenes are very dark and the myth backend has marked the start of a commercial in the dark scene when there wasn't a commercial. sitcoms seem to work the best for commercial skipping (from a myth tv point of view).

if you don't get any commercial skipping at all, then i'm guessing the onplaybackstarted() method in mythtvrecordedshowdetails.py is exiting prematurely. you could try changing some of the "debug" calls to "xbmc.output" to see what is going on. also, at the end of the function, you'll see some commented out exception handling code. you could try uncommenting the code to see if you get an exception popup...

elminster
2005-04-12, 13:05
hi all,

i updated to xbmc 11/04/05 and tried using against the latest mythtv cvs. unfortunately things don't work with protocol 15.

i did however remove everything and revert back to 0.17 as suggested by madtw and things are a little better now.

i'm getting some invalid operand stuff at the moment when i select live tv but from an early question that suggests a problem with my database so i'm gonna clear it and see what happens. i'll let you know. would that also cause a problem with 'status'? i know that used to work, is it still supposed too?

also to help others if you get nt_status_object errors its likely to be your samba shares are not right. i had this because i was using the wrong directory in my paths.

good work madtw

philled
2005-04-12, 13:31
the copy is done using the myth tv protocol whereas playback is normally done using smb. *my guess is that either the name of your host is weird or not being populated correctly in the myth database by the myth tv backend. *you have two options: fix the backend so that it stamps the recorded shows with the right host name or change your path prefix replacing '%h' with either the ip or the correct host name.
thanks for that. i think i've already done the 2nd option - if i hadn't then i wouldn't be able to copy the files to the xbox, so i think bit's done already.

when you say the host name may be weird, do you mean the name of the xbox or the mythtv backend? also, could you please explain what you mean by fixing the backend to stamp with the correct host name. i don't understand what gets "stamped". the nuv files don't have any hostname info in them. do you mean the "hostname" column in the recorded table? perhaps this is the problem as its value is "elm.edwards.home" whereas the smb:// string i used has the ip address rather than the hostname. does the smb:// string _have_ to include whatever's in that column?

regards,
phill

Phunck
2005-04-12, 16:15
i just added tvtome support to my ooba script in v0.4... here's the latest unofficial release of ooba (v0.4). it has not been tested on my box yet, only in the emulator.

http://www.deviantart.com/view/16987987/

elminster
2005-04-12, 23:57
well i cleared out my database and managed to get things working again, all except status, however when i performed a mythfilldatabase to populate all my channel data, things got broken again. im now getting the operand error again when selecting live tv? btw im using a dvb card

i'll increase log levels tomorrow and see what i can find.

ahmose
2005-04-13, 00:06
elminster,
i'm having the same issue. live tv doesn't work for me either. i get the same errors.
i'll let you know if i figure out what the problem is.
btw, the mythtv script is great, thanks for the great work.

madtw
2005-04-13, 01:50
philled: yes, i meant that the hostname populated in the recorded table in the myth database may not be correct and if you have %h in the path prefix, it could build the path incorrectly. the recorded hostname and the smb path prefix do not have to match. the only time you may want to use %h is if you have multiple servers running the mythbackend software (this is untested since i only have one myth server). here is an example of my setup:

- recorded hostname 'banshee'
- samba server runs on banshee advertises "mythtv" service which is a folder containing nuv and live tv ring buffer files
- path on the filesystem where nuv and live tv ring buffer are created is actually /myth/tv/

my recorded prefix is "smb://%h/mythtv". i could also specify a prefix of "smb://10.1.1.5/mythtv" assuming the ip of banshee is 10.1.1.5. note: i also have a dns server running for my lan...

when you copy a file, the only path that is used from the settings is the local path. so if your recorded prefix or live tv prefix is setup incorrectly, it won't affect the copy. copying files using smb.py was extremely slow so i rewrote it to use the myth protocol instead.

madtw
2005-04-13, 01:57
well i cleared out my database and managed to get things working again, all except status, however when i performed a mythfilldatabase to populate all my channel data, things got broken again. im now getting the operand error again when selecting live tv? btw im using a dvb card
if someone posts the relevant xbmc log, it'll help in figuring out what is going on. is the operand error a python error or a mysql error? it sounds like a data issue since live tv works fine here...

Loto_Bak
2005-04-13, 02:07
in regards to browsing recorded programs,

i agree the current listing is combersome...
have you taken a look at the music library view in xbmc? it is a music database view that could possibly be applied to mythtv. i would assume show title, and record date are available. perhaps channel/network information is available as well. using this branching query system allows alot of expandability. i'll illustrate it below...

show titles /
--------title1/
--------title2/
----------------season1/
----------------season2/
(i dont know if season/episode info is available in myth)
date/
--------2005/
----------------march/
----------------april/
------------------------01/
------------------------02/
------------------------03/
network/
--------cbc/
--------abc/
--------chan04/
----------------show title/ or show date/


at the top of each catagory would be an option for 'all shows' so for example i wanted all shows recorded in april 05 i would go
->date ->05 ->april ->all shows
or all shows on channel 4
->network->chan04 ->all shows

it allows the end user to be as specific or general as they want their query to be. since myth runs a mysql db it should be easy to generate the queries

philled
2005-04-13, 17:24
i'm trying to get the python version of mythfrontend (xbmcmythtv) working on my xbox. i feel like i'm _very_ nearly there. i can view a the program guide, a list of recordings and i can select one to see more detail and a still image of it. however, when i come to play the recording i hear the xbox disk stir but then nothing happens. no error
messages on screen, nothing moves, nada. it just stays there on the detail program screen.

in the backend log i see this:
2005-04-13 23:59:30.538 mainserver::handleannounce playback
2005-04-13 23:59:30.539 adding: xbox as a client (events: 0)
2005-04-13 23:59:30.545 unknown socket
2005-04-13 23:59:38.841 mainserver::handleannounce playback
2005-04-13 23:59:38.843 adding: xbox as a client (events: 0)
2005-04-13 23:59:42.097 mainserver::handleannounce filetransfer
2005-04-13 23:59:42.099 adding: xbox as a remote file transfer
2005-04-13 23:59:42.174 unknown socket
2005-04-13 23:59:43.699 mainserver::handleannounce playback
2005-04-13 23:59:43.700 adding: xbox as a client (events: 0)
2005-04-13 23:59:43.715 mainserver::handleannounce filetransfer
2005-04-13 23:59:43.716 adding: xbox as a remote file transfer
2005-04-13 23:59:46.129 unknown socket

i'm assuming that the problem is the "unknown socket" line, but i have no idea what it means nor what i need to do to get this working.

can anyone help?

regards,
phill

elminster
2005-04-13, 21:50
hiya thanks for the reply, he is my xbmc.log on log level 0:

13-04-2005 19:46:11 info activating window id: 13000
13-04-2005 19:46:16 info traceback (most recent call last):
13-04-2005 19:46:16 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 56, in oncontrol
13-04-2005 19:46:16 info mythtvlivetv.showwindow();
13-04-2005 19:46:16 info file "q:\scripts\xbmcmythtv\mythtvlivetv.py", line 56, in showwindow
13-04-2005 19:46:16 info win.loadprograms()
13-04-2005 19:46:16 info file "q:\scripts\xbmcmythtv\mythtvlivetv.py", line 140, in loadprograms
13-04-2005 19:46:16 info channellistcontrol.additem(
13-04-2005 19:46:16 info file "q:\scripts\xbmcmythtv\mythtvprogram.py", line 104, in formattedchannel
13-04-2005 19:46:16 info value += " " + self.callsign()
13-04-2005 19:46:16 info typeerror: unsupported operand type(s) for +=: 'nonetype' and 'str'

hope this sheds some light on the problem?

edit----

looking in the python script it see this is where its having trouble:

def formattedchannel( self ):
"""returns chanstr callsign for display purposes"""
value = self.chanstr()
if self.callsign():
value += " " + self.callsign()
return value

now there other def's (dunno what a def is, not a programmer :-( ) like def formattedairdate( self ): and def formattedorigairdate( self ):

so i looked in my programs table and found airdate and origairdate columns (forgive me if im not using the right terminology) but no channel column so i guess this is the problem.

this is a little odd though right? i installed 0.17 not cvs mythtv just like madtw???

i have a chanid which is a primary key??

madtw
2005-04-14, 03:41
i'm assuming that the problem is the "unknown socket" line, but i have no idea what it means nor what i need to do to get this working.
nope, the unknown socket line is not the problem... i get that in my logs and everything works. here is a sample from my logs and no problems occurred on the python frontend:

2005-04-12 00:01:08.794 adding: xbox as a client (events: 0)
2005-04-12 00:01:48.000 mainserver::handleannounce filetransfer
2005-04-12 00:01:48.002 adding: xbox as a remote file transfer
2005-04-12 00:01:48.034 could not open /myth/tv//1052_20050411193000_20050411200000.nuv.png. 0 retries remaining.
2005-04-12 00:01:50.343 mainserver::handleannounce filetransfer
2005-04-12 00:01:50.348 adding: xbox as a remote file transfer
2005-04-12 00:01:50.504 unknown socket
2005-04-12 00:01:56.937 mainserver::handleannounce playback

madtw
2005-04-14, 03:53
elminster: the problem is the line "value = self.chanstr()" is supposed to return a string containing the channel number. if it returns none (which is the python equivalent of null), then the concatenation of the callsign onto a none value will fail (because the + operator is not defined for a none and a string - only string + string). the real question is why are you not getting a channel number back from your myth database... it should always be populated! the query to retrieve live tv program names does a join between the program and channel tables.

if you want to fix it temporarily, you can change the line to:

value = ""
if self.chanstr():
value += self.chanstr()

are you sure you don't have some old xbmcmythtv files somewhere on your xbox (e.g. in the xbmc/python/lib directory)?

ahmose
2005-04-14, 05:42
clearing the channels database fixed it for me. i did a mythtv-setup and mythfilldatabase and it works great now.
thanks for the help

philled
2005-04-14, 15:41
i'm assuming that the problem is the "unknown socket" line, but i have no idea what it means nor what i need to do to get this working.
nope, the unknown socket line is not the problem... i get that in my logs and everything works. *here is a sample from my logs and no problems occurred on the python frontend:

2005-04-12 00:01:08.794 adding: xbox as a client (events: 0)
2005-04-12 00:01:48.000 mainserver::handleannounce filetransfer
2005-04-12 00:01:48.002 adding: xbox as a remote file transfer
2005-04-12 00:01:48.034 could not open /myth/tv//1052_20050411193000_20050411200000.nuv.png. *0 retries remaining.
2005-04-12 00:01:50.343 mainserver::handleannounce filetransfer
2005-04-12 00:01:50.348 adding: xbox as a remote file transfer
2005-04-12 00:01:50.504 unknown socket
2005-04-12 00:01:56.937 mainserver::handleannounce playback

that's a bummer. i've been trying to get this working for the past week now. my linux mythbackend/frontend works beautifully. my new xbox frontend that has xbmcmythtv on it is a vsn 1.0 or 1.1 (not sure) running unleashx and xbmc dated 1st apr 2005. i've tried both 0.17.1 and 0.17.2 versions of xbmcmythtv and neither of them will play the selected recording. i can select the recording from a list and see the details of it plus the still image, but when i try to play it i get a short burst of disk activity and then nothing - very frustrating! does anyone have any suggestions on how i can sort this out or get some debugging info to find out what's wrong?

regards,
phill

philled
2005-04-14, 16:05
very quick question. i read somewhere that xbmcmythtv only supports mpeg2 recordings, but i also read that's not true. could someone please clarify? i cannot for the life of me get xbmcmythtv to play my recordings and i'm now wondering whether it's because they're mpeg4.

thanks,
phill

madtw
2005-04-14, 17:36
the xbmcmythtv python scripts just instruct xbmc to playback certain files... so the scripts can play back whatever xbmc supports. if you are having problems with play back, i would recommend recording your shows with the myth tv default of mpeg2 (xbmc supports that for sure). people were having problems when they setup transcoding to rtjpeg and mpeg4.

one of the first tests you should do when setting up xbmcmythtv is access your myth tv backend smb shared folder directly through xbmc and try playing back a random .nuv file (e.g. 1052_20050411193000_20050411200000.nuv). if that works, then you have a good chance of getting xbmcmythtv to work as well...

androo
2005-04-14, 17:50
first of all, this is great. thanks to all those developers :bowdown:

encountering a problem with livetv, program guide and status

got the 0.17 mythtv release.

got 20050406 cvs build of xbmc.

got 0.17.2 xbmcmythtv python scripts.

i am able to watch recordings (asks me if i want to use commercial skippings first) then i can hit 'play' and voila it plays! great.

but pressing livetv takes me to a screen with 'refresh' on the left and a box at the bottom of my screen with no data filled. there is a '1/0' just above this box on the right which changes to '1/1' when i click the bottom button of the control pad, no live tv appears. is 1/0 and 1/1 to do with encoders on my backend? (i have 2 encoders).

could anyone tell me of the possible problems. have looked at logs, there doesn't seem to be anything in there that is obviously wrong?


regards

a

madtw
2005-04-15, 03:06
no, the 1/0 and 1/1 are the pages that the list control thinks exist.

the live tv screen should display a list of channels and the programs currently showing on the channels in the area above the 1/0 or 1/1. the box below should show the details of the current list row hilighted. when you select a list entry, it should allow you to watch the show. if the list is empty, then i have to assume that the getprogramlistings() function in mythtv.py is returning no values. you can try manually running the query against your database to see if it is a data problem. also, you should be able to run the mythtvlivetv.py script manually and get a lot more debug information if you have your xbmc logging level set to 1.

Loto_Bak
2005-04-15, 07:58
i had a simular issue as androo, after i looked at the query i realized it relies on the xbox's time being set correctly.

ultimatly the front end wants to be synced with the mythtv backend, perhaps we could pull the time from it insted of the xbox clock?

madtw
2005-04-15, 08:26
don't you guys run a timeserver (ntpd) to sync your xbox clock with the real world? that's what i do... :)

Loto_Bak
2005-04-15, 09:52
ive had so many builds in and out in the last couple weeks i cant be bothered to go through the settings every time i change it... only after i get a good stable build and the ui changes are comming all the time atm...

sigtom
2005-04-15, 12:02
ive had so many builds in and out in the last couple weeks i cant be bothered to go through the settings every time i change it... only after i get a good stable build and the ui changes are comming all the time atm...
huh? setting what up? theres no settings that need to be changed for the xbmcmythtv python script to use ntp. run ntpd on a server on your network, usually your router/firewall/dhcp server..when the xbox turns on and get its ip from the dhcp server, it can also sync up with your ntp server.....or if thats too much to do, just google for a time server in your timezone and pop that ip/hostname into xbmc.

elminster
2005-04-15, 12:33
i sorted my problem with invalid channels. it turned out that i had an extra channel in my channels.conf for xmltv listings. so when i ran a mythfilldatabase it populated the channel table with this non existant channel hence no channel number.

i've removed it and things are back to normal. still not perfect but i think thats the qualilty of my signal i get a lot of issues with crashes and lockups. i'm getting someone in to upgrade my aerial next week so hopefully i'll be sorted. this has become an obsession!

madtw any idea how i would resort the live tv list by channel number instead of aphabethically?

stilger
2005-04-15, 17:06
madtw: just wanted to give you a follow up on the commerical skipping problem i had. i recompiled a new xbmc and loaded the latest xbmcmthytv script and it now works. i don't know what is different between this compile and the last one but it now works. great job.

Loto_Bak
2005-04-15, 20:05
sigtom,
xbmc's default configuration has ntp disabled. when im swapping multiple builds a day i dont bother customizing all my settings 5 times a day...

sigtom
2005-04-15, 23:10
hmm....seems like the issues of not having your clock set correctly would outweight the 5 seconds of time it takes to enable ntp.

henk
2005-04-16, 00:24
hi all,

i'm having problems with program guide and status page. this is what i get in the xbmc.log fisrt for the guide, the second part when i activate status. i use mythtv cvs from 3 weeks ago and xbmcmythtv from cvs, xbmc from a couple of days ago: build 2005.0411). has anybody suggestions?

thanks, henk

15-04-2005 23:02:31 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 60, in oncontrol

15-04-2005 23:02:31 info mythtvguide.showwindow()

15-04-2005 23:02:31 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 30, in showwindow

15-04-2005 23:02:31 info win.loadguide()

15-04-2005 23:02:31 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 466, in loadguide

15-04-2005 23:02:31 info int( self.channels[self.startchan].channum() ),

15-04-2005 23:02:31 info valueerror: invalid literal for int(): se13

15-04-2005 23:02:38 debug loadlibrarya('unicodedata.pyd')

15-04-2005 23:02:38 debug executing entrypoint at: 0x10325bb - dll: unicodedata.pyd

15-04-2005 23:02:38 debug loadlibrary('unicodedata.pyd') returning: 0xb38460

15-04-2005 23:02:38 debug kernel32!getprocaddress(0xb38460, 'initunicodedata') => 0x10324b0

15-04-2005 23:02:41 error unable to locate window with id -10000. check skin files

15-04-2005 23:02:41 info traceback (most recent call last):

15-04-2005 23:02:41 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 64, in oncontrol

15-04-2005 23:02:41 info mythtvstatus.showwindow()

15-04-2005 23:02:41 info file "q:\scripts\xbmcmythtv\mythtvstatus.py", line 30, in showwindow

15-04-2005 23:02:41 info win.refresh()

15-04-2005 23:02:41 info file "q:\scripts\xbmcmythtv\mythtvstatus.py", line 86, in refresh

15-04-2005 23:02:41 info self.controls['subscription'].control.addlabel( \

15-04-2005 23:02:41 info typeerror: argument 1 must be unicode or str

madtw
2005-04-16, 04:02
as mentioned in a previous post, i usually avoid the cvs builds of myth tv so it is hard for me to debug these problems. if you want to get around this issue, you could comment out the line that sets the subscription text.

as for the guide problem, it looks like your channum field in the database contains a non-numeric channel number "se13". last time i checked most tvs have numbers for channels and then there might be a call sign that is non-numeric. perhaps your database got populated incorrectly or your part of the world is just different. if your part of the world is different, then how the guide retrieves program data will have to change because at the moment it relies on a range of channel numbers.

ahmose
2005-04-16, 04:08
question: is it possible to reconfigure the remote control keys
so that fast forward is 30 seconds or 60 seconds etc... ?

philled
2005-04-16, 08:17
i've uploaded a patched version of mplayer to my xbox to try to get it to play my mythtv mpeg4 recordings. i can see the detailed recording list but when i select one and try to play it nothing happens. this time i've got the mplayer logs. can anyone see from this log what's wrong so i can stop banging my head against a brick wall:

<snip>
16-04-2005 14:59:04 info smb: cli_errno_from_nt: 32 bit codes: code=c0000034
16-04-2005 14:59:04 info smb: smbc errno nt_status_object_name_not_found -> 2
16-04-2005 14:59:04 debug msg:get_path('1000_20050416130000_20050416134500.n uv.conf') -> 'q:\mplayer\1000_20050416130000_20050416134500.nuv .conf'
16-04-2005 14:59:04 info stating file q:\mplayer\1000_20050416130000_20050416134500.nuv. conf
16-04-2005 14:59:04 debug msg:playing smb://mythtv:xxxxxx@elm/mythtv/1000_20050416130000_20050416134500.nuv.
16-04-2005 14:59:04 debug msg:auto open z:\subtitle
16-04-2005 14:59:04 debug msg:filename for url is now smb://mythtv:xxxxxx@elm/mythtv/1000_20050416130000_20050416134500.nuv
16-04-2005 14:59:04 debug msg:protocol:smb
16-04-2005 14:59:04 debug msg:use standard file for protocol:smb
16-04-2005 14:59:04 debug msg:winsock2 init: 0
16-04-2005 14:59:04 error cmplayer::openfile() smb://mythtv:perkins2@elm/mythtv/1000_20050416130000_20050416134500.nuv failed
</snip>

thanks,
phill

sigtom
2005-04-16, 09:22
well, to make sure the mplayer you have can play the mpeg4 files, copy a .nuv over to your xbox and try to play it. does it work?

philled
2005-04-16, 09:37
well, to make sure the mplayer you have can play the mpeg4 files, copy a .nuv over to your xbox and try to play it. *does it work?
ok - i'm now getting to the bottom of this. i downloaded a patched version of mplayer which is supposed to work with mpeg4. my situation is as follows:

- original vsn of mplayer.ddl plays mpeg2 over samba, but doesn't play mpeg4.

- new patched vsn of mplayer.dll playes the 1st second of both mpeg2 and mpeg4 over samba but then crashes immediately for both formats :(

so what i need is a patched version of mplayer.dll that can play mpeg2 and mpeg4 without crashing. does anyone have such a beast that they could give me?

thanks,
phill

sigtom
2005-04-16, 09:59
did you do like i said above and play a mpeg4 .nuv thats on the actual hard drive in the xbox? drop samba out of the setup for a min, that way you can eliminate one thing at a time. if you cant play the mythtv mpeg4 .nuv with the patched mplayer, playing the file off the hdd and not thru samba, then the patched vs of mplayer youve got wont work. thats why i got a pvr250, the patched vs of mplayer listed earlier in this thread wasnt to reliable as i remember it.

philled
2005-04-17, 10:33
did you do like i said above and play a mpeg4 .nuv thats on the actual hard drive in the xbox? *drop samba out of the setup for a min, that way you can eliminate one thing at a time. *if you cant play the mythtv mpeg4 .nuv with the patched mplayer, playing the file off the hdd and not thru samba, then the patched vs of mplayer youve got wont work. *thats why i got a pvr250, the patched vs of mplayer listed earlier in this thread wasnt to reliable as i remember it.
yes, i did what you said. the version of mplayer i've got won't work which is why i'm asking if anyone has got a version of mplayer.dll that will work with both mpeg2 and mpeg4 files. anyone...?

regards,
phill

henk
2005-04-17, 14:42
as for the guide problem, it looks like your channum field in the database contains a non-numeric channel number "se13". last time i checked most tvs have numbers for channels and then there might be a call sign that is non-numeric. perhaps your database got populated incorrectly or your part of the world is just different. if your part of the world is different, then how the guide retrieves program data will have to change because at the moment it relies on a range of channel numbers.
hi madtw,

i got around the "status" problem. works now.

about the guide problem i don't understand. here (amsterdam/netherlands) we still have non-numeric channel numbers...

amsterdam freq page (http://www.upc.nl/frequencies_gm.php?gm=0363)

how can i change that?

androo
2005-04-18, 01:46
update from my last post (pg 27).

i have now got the program guide to display, with channels and data. ( resolved by either syncing the xbox time to the mythbackend time or fixing some corrupt data within my mythtv database, (channel table). (don't know which one fixed it or if both did. i suspect it was the later that made the difference.)

this has also greatly improved the livetv. i now get a list of all the channels. i have two encoders (dvb-t) and through xbmc i can view only the same two channels, but when i try and select a different channel to the two that work, i get an error, "unable to change channel".

any ideas anyone?

madtw
2005-04-18, 05:35
about the guide problem i don't understand. here (amsterdam/netherlands) we still have non-numeric channel numbers...

amsterdam freq page (http://www.upc.nl/frequencies_gm.php?gm=0363)

how can i change that?
so how do you enter a s14+ channel into your tv? do you choose channel 13? if so, then your database should have 13 in the channum field.. not s14+.

otherwise, i may have to change the logic to use chanid instead of channum. in order to make the interface faster, i need to limit the query to a screen full of data. at the moment, i use channum to control the rows and time to control the columns. i suppose i could use chanid to control the rows... the only problem with that is that chanid is not guaranteed to be in a meaningful order.

edit: try the latest cvs... i changed it to use chanid instead of channum. hopefully that fixes your problem and it still works for everyone else. :)

madtw
2005-04-18, 06:46
this has also greatly improved the livetv. i now get a list of all the channels. i have two encoders (dvb-t) and through xbmc i can view only the same two channels, but when i try and select a different channel to the two that work, i get an error, "unable to change channel".
i'm not using dvb-t cards so it is hard for me to figure out what is going wrong. the message you reference seems to be from the waitforchannelchange method in mythtv.py. you could try commenting out the call to the method in changelivetv. if that has problems, try adding in a time.sleep(x) call where x is a number of seconds instead of the waitforchannelchange call. if you eventually get it working that way, then we can work towards figuring out a better way to wait for a channel change...

henk
2005-04-18, 21:28
edit: try the latest cvs... i changed it to use chanid instead of channum. hopefully that fixes your problem and it still works for everyone else. :)
hmmm, no i cannot play the recorded show anymore:

18-04-2005 20:23:19 info traceback (most recent call last):
18-04-2005 20:23:19 info file "q:\scripts\xbmcmythtv\mythtvrecordedshowdetails.p y", line 286, in oncontrol
18-04-2005 20:23:19 info self.play()
18-04-2005 20:23:19 info file "q:\scripts\xbmcmythtv\mythtvrecordedshowdetails.p y", line 339, in play
18-04-2005 20:23:19 info player.play( self.program.remotepath() )
18-04-2005 20:23:19 info file "q:\scripts\xbmcmythtv\mythtvprogram.py", line 388, in remotepath
18-04-2005 20:23:19 info remotepath += self.chanid() + "_" + \
18-04-2005 20:23:19 info typeerror: unsupported operand type(s) for +: 'int' and 'str'

and the program guide gives another debug output:

18-04-2005 20:26:13 info file "q:\scripts\xbmcmythtv\mythtvchannel.py", line 37, in icon

18-04-2005 20:26:13 info if self.data['icon'] ) == 0:

androo
2005-04-18, 23:12
okkaayy.... almost there.

with your initial suggestion of commenting the call waitforchannelchange changing channels in 'live tv' appeared to work, but changing the channel would result in seeing the previous channel then actually seeing the encoder switch channels to the intended. this worked in general but crashed on the odd occasion whilst switching ( resulting in transitional picture on screen, encoder being tuned into something (not allowing other frontend to use it) and also not allowing me to exit from the screwed up output screen.)

the second suggestion of adding a time.sleep(x) line (i tried x=4 first) this resulted in the same thing (again initially working then crashing out on channel switches)

i increased x=6, which improved things. i hardly saw any channel switches on the screen. but sadly, i did see the odd channel switch on screen and occasionally it crashed it.

are we meant to see channels switching on the screen?
i am using a wireless connection to my xbox, when tuned into a channel i can watch live tv perfectly, i haven't tried the channel hopping with a wired connection yet?

what do you think madtw?

thanks

frooby
2005-04-18, 23:28
androo,
i had the exact same problem with the channel changing (two dvb-t cards). almost every time the picture get's scrambled the xbox would crash (mostly when the channel gets changed). to help with the channel changing part i just uncommented the 'pause' line in the changelivetv function. ever since then it's been fine.

madtw
2005-04-19, 02:06
hmmm, no i cannot play the recorded show anymore:
...

and the program guide gives another debug output:

18-04-2005 20:26:13 info file "q:\scripts\xbmcmythtv\mythtvchannel.py", line 37, in icon

18-04-2005 20:26:13 info if self.data['icon'] ) == 0:
ok, i should've tried playing a recorded show because it was broken on mine too. i have checked in a fix for that problem.

as for the program guide error that you reported, are you sure you included the correct log error? the actual line of code referenced looks very different from what you posted... this leads me to believe that you either mistyped the log message or you have an old copy of code installed. furthermore, i did bring up the program guide screen after making my changes yesterday and it all worked fine here...

just out of curiosity, what values do you have in the icon column in the channel table in the myth tv database? i have a path to an icon or the text "none".

androo
2005-04-19, 02:55
androo,
i had the exact same problem with the channel changing (two dvb-t cards). almost every time the picture get's scrambled the xbox would crash (mostly when the channel gets changed). to help with the channel changing part i just uncommented the 'pause' line in the changelivetv function. ever since then it's been fine.
frooby,
ahhh you got my hopes up then! :-)
unfortunately my version of xbmcmythtv has that line already commented out. was that change put into cvs?

thanks for your help anyway.

frooby
2005-04-19, 03:16
androo,

un comment it.. . shouldn't be commented out!

smurf2
2005-04-19, 06:40
thanx frooby that fixed up the same thing for me :)

<dance>

androo
2005-04-19, 11:38
androo,

un comment it.. . shouldn't be commented out!
doh! i should learn to read.

ok, i'll try that tonight. thanks frooby.

luigi
2005-04-19, 13:51
finally got around to activating the debug on the argument 5 must be string, not none i'm getting.
too many roaming rugrats in the way :nuts:

turns out to be an issue when you attempt to run a clean set-up with project mayhem iii skin. if you change to mayhem ii you're away, & you can then change back to iii!

here's the debug...
19-04-2005 20:36:58 info q:\scripts\xbmcmythtv\smb.py:94: futurewarning: hex/oct constants > sys.maxint will return positive values in python 2.4 and up

sv_type_domain_enum = 0x80000000

19-04-2005 20:36:58 info q:\scripts\xbmcmythtv\smb.py:315: futurewarning: hex/oct constants > sys.maxint will return positive values in python 2.4 and up

cap_extended_security = 0x80000000

19-04-2005 20:36:58 info q:\scripts\xbmcmythtv\smb.py:621: futurewarning: hex/oct constants > sys.maxint will return positive values in python 2.4 and up

if server_flags & 0x80000000:

19-04-2005 20:36:59 debug loadlibrarya('pyexpat.pyd')

19-04-2005 20:36:59 debug executing entrypoint at: 0x1019c01 - dll: pyexpat.pyd

19-04-2005 20:36:59 debug loadlibrary('pyexpat.pyd') returning: 0xb48f80

19-04-2005 20:36:59 debug kernel32!getprocaddress(0xb48f80, 'initpyexpat') => 0x1004540

19-04-2005 20:37:00 info traceback (most recent call last):

19-04-2005 20:37:00 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 80, in ?

19-04-2005 20:37:00 info win.loadskin( "home.xml" )

19-04-2005 20:37:00 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 247, in loadskin

19-04-2005 20:37:00 info self.addcontrols(dom.getelementsbytagname("control"))

19-04-2005 20:37:00 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 296, in addcontrols

19-04-2005 20:37:00 info me.create()

19-04-2005 20:37:00 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 90, in create

19-04-2005 20:37:00 info c = xbmcgui.controlimage(x,y,w,h,tx)

19-04-2005 20:37:00 info typeerror: argument 5 must be string, not none

luigi
2005-04-19, 15:42
the error i get when attemting to view the program guide appears to be related to channel icons.
in australia the icons aren't available as far as i know.
here's the debug...

19-04-2005 20:58:18 info * file "q:\scripts\xbmcmythtv\mythtvgui.py", line 135, in buildpath
19-04-2005 20:58:18 info * * file = self.geticonfile( channel )
19-04-2005 20:58:18 info * file "q:\scripts\xbmcmythtv\mythtvgui.py", line 143, in geticonfile
19-04-2005 20:58:18 info * * file = channel.icon()
19-04-2005 20:58:18 info * file "q:\scripts\xbmcmythtv\mythtvchannel.py", line 37, in icon
19-04-2005 20:58:18 info * * if self.data['icon'] ) == 0:
19-04-2005 20:58:18 info typeerror: len() of unsized object

madtw
2005-04-19, 17:04
ok, thanks. i have added some additional error checking in mythtvchannel.py. it still works for me so let me know if there are still any problems...

henk
2005-04-19, 22:11
just out of curiosity, what values do you have in the icon column in the channel table in the myth tv database? i have a path to an icon or the text "none".
still getting the error.

the values of the icon column are:

icon varchar(255) no none

19-04-2005 20:59:34 info traceback (most recent call last):
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 60, in oncontrol
19-04-2005 20:59:34 info mythtvguide.showwindow()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 30, in showwindow
19-04-2005 20:59:34 info win.loadguide()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 470, in loadguide
19-04-2005 20:59:34 info self.render()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 549, in render
19-04-2005 20:59:34 info self.renderchannels()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 594, in renderchannels
19-04-2005 20:59:34 info file = cic.findfile( self.channels[i] )
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvutil.py", line 348, in findfile
19-04-2005 20:59:34 info file = self.buildpath( obj )
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvgui.py", line 135, in buildpath
19-04-2005 20:59:34 info file = self.geticonfile( channel )
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvgui.py", line 143, in geticonfile
19-04-2005 20:59:34 info file = channel.icon()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvchannel.py", line 37, in icon
19-04-2005 20:59:34 info if self.data['icon'] ) == 0:
19-04-2005 20:59:34 info typeerror: len() of unsized object

madtw
2005-04-20, 01:33
you are definitely running older code now... i rearranged the code in cvs last night so that the checks are done starting on line 30 in mythtvchannel.py. please update mythtvchannel.py from cvs and then post if it still fails...

alternatively, you can change the code in mythtvchannel.py until it works with your data and then submit a patch.

henk
2005-04-20, 06:45
you are definitely running older code now... i rearranged the code in cvs last night so that the checks are done starting on line 30 in mythtvchannel.py. please update mythtvchannel.py from cvs and then post if it still fails...
it's working :nod:

i dunno what went wrong. i run xbmc build from 20050411, xbmcmythtv always latest from cvs and mythtv also latest from cvs (0.18.20050409-1). the mythtv install runs from 0.13 on, so also the database. maybe the channel tables were different those days and have forced this problem.

anyway, many thanks :)

jpf
2005-04-20, 14:05
can someone advise on problems with not being able to exit the various mythtv menus?

sometimes after watching livetv or a recorded show, i am unable to exit the menu. i have to force a reboot on the xbox.

also, i get wierd int[] errors sometimes while attempting to watch livetv.

philled
2005-04-20, 14:58
i've seen a few posts from people trying to get xbmc to play the mpeg-4 .nuv files. there's an old patch for mplayer that allowed these files to be played. it's available at:
http://dijkstra.csh.rit.edu/~mdz/mythtv/

this patch can be applied to the mplayer sources in the xbmc cvs with a little bit of tweaking. i have the updated mplayer.dll binary i made for my own use, which i'd be happy to distribute if someone wants to donate the server space :) that way, you could just drop the new mplayer.dll over the old one on your xbox. the binary is not compiled against any ms sdk's, and is all open source, so legal concerns shouldn't be an issue.
can anyone please advise hot to apply this patch to a current cvs download of player? i don't know anything about how to apply patches. i'm following instructions to compile mplayer using mingw and msys.

alternatively, does anyone have a version of mplayer.dll that can play mpeg2 and mpeg4 encoded mythtv files? and which they are willing to send me?

regards,
phill

stilger
2005-04-20, 18:26
can someone advise on problems with not being able to exit the various mythtv menus?

sometimes after watching livetv or a recorded show, i am unable to exit the menu. i have to force a reboot on the xbox.

also, i get wierd int[] errors sometimes while attempting to watch livetv.

i get this once in a while. i have posted on it twice but no one else has seemed to have the problem.

madtw: any ideas?

madtw
2005-04-21, 06:01
stilger/jpf: i used to get the unable to exit a screen problem occasionally with older versions of xbmc but with the latest builds things seem to be much more stable. if i could reproduce the problem on my side, i might be able to track it down... but i haven't had the problem in a while now. as for exceptions or error dialogs (e.g. the int[] error you mentioned), grab the relevant xbmc log file and post it so i can have a look. i need a good stack trace to debug stuff remotely... and even then it can be hard unless it is an obvious bug in the code. it could be weird race conditions with threaded events or a bug in the code that only happens in certain conditions.

if you are going to post a problem, it helps if you tell me which build of xbmc you are using (e.g. cvs checkout date), which version of xbmcmythtv, which myth tv backend version, and any steps you went through before hitting the problem. also, it is important to let me know if the problem occurs if you immediately run the xbmcmythtv scripts after a reboot or if you ran other stuff before you ran the xbmcmythtv scripts. i'm sure xbmc has other bugs out there that can cause small memory corruptions that don't result in an immediate crash. sometimes something that you ran before can impact stuff that you run much later...

philled: i use the stock mplayer.dll so i can't help you out there. that was one of the reasons i got a pvr-250 card because it encodes to mpeg2 in hardware and xbmc has no problem playing the files back.

luigi: henk says your guide problem is fixed with my latest patches in the xbmcmythtv cvs repository. try the latest code.

as for your skin problem, make sure you don't have any skin files from an older version of xbmcmythtv on your xbox. there used to be a full copy of skin files for each xbmc skin a while back. i then changed the skin files to allow you to include files within skin files. however, the skin module looks in the skin specific directory before it looks in the shared skin directory... so if you have old skin files, it will pick those up instead and the behavior is undefined (i.e. i haven't tested that in a long time now).

just out of curiosity, which xbmc skin are you using? the reason i ask is that i haven't tested the pm and pm2 skins in a while. also, it looks like they are being phased out of xbmc as well...

jpf
2005-04-21, 16:07
stilger/jpf: i used to get the unable to exit a screen problem occasionally with older versions of xbmc but with the latest builds things seem to be much more stable. if i could reproduce the problem on my side, i might be able to track it down... but i haven't had the problem in a while now. as for exceptions or error dialogs (e.g. the int[] error you mentioned), grab the relevant xbmc log file and post it so i can have a look. i need a good stack trace to debug stuff remotely... and even then it can be hard unless it is an obvious bug in the code. it could be weird race conditions with threaded events or a bug in the code that only happens in certain conditions.

if you are going to post a problem, it helps if you tell me which build of xbmc you are using (e.g. cvs checkout date), which version of xbmcmythtv, which myth tv backend version, and any steps you went through before hitting the problem. also, it is important to let me know if the problem occurs if you immediately run the xbmcmythtv scripts after a reboot or if you ran other stuff before you ran the xbmcmythtv scripts. i'm sure xbmc has other bugs out there that can cause small memory corruptions that don't result in an immediate crash. sometimes something that you ran before can impact stuff that you run much later...

philled: i use the stock mplayer.dll so i can't help you out there. that was one of the reasons i got a pvr-250 card because it encodes to mpeg2 in hardware and xbmc has no problem playing the files back.

luigi: henk says your guide problem is fixed with my latest patches in the xbmcmythtv cvs repository. try the latest code.

as for your skin problem, make sure you don't have any skin files from an older version of xbmcmythtv on your xbox. there used to be a full copy of skin files for each xbmc skin a while back. i then changed the skin files to allow you to include files within skin files. however, the skin module looks in the skin specific directory before it looks in the shared skin directory... so if you have old skin files, it will pick those up instead and the behavior is undefined (i.e. i haven't tested that in a long time now).

just out of curiosity, which xbmc skin are you using? the reason i ask is that i haven't tested the pm and pm2 skins in a while. also, it looks like they are being phased out of xbmc as well...
ok, just got another crash.

this is cvs xbmcmythtv (very recent) and xbmc-2005-03-26 cvs.

21-04-2005 12:58:05 notice start led control
21-04-2005 12:58:05 notice dim lcd on playback
21-04-2005 12:58:07 info activating window id: 10000
21-04-2005 12:58:10 info activating window id: 13013
21-04-2005 12:58:12 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:14 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:14 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:16 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:18 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:18 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:19 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:38 info traceback (most recent call last):
21-04-2005 12:58:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:38 info self.playselected( control )
21-04-2005 12:58:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:38 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:38 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:39 info traceback (most recent call last):
21-04-2005 12:58:39 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:39 info self.playselected( control )
21-04-2005 12:58:39 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:39 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:39 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:41 info traceback (most recent call last):
21-04-2005 12:58:41 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:41 info self.playselected( control )
21-04-2005 12:58:41 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:41 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:41 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:42 info traceback (most recent call last):
21-04-2005 12:58:42 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:42 info self.playselected( control )
21-04-2005 12:58:42 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:42 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:42 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:42 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:43 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:46 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:47 error unable to locate window with id -10000. check skin files

jpf
2005-04-21, 17:21
stilger/jpf: i used to get the unable to exit a screen problem occasionally with older versions of xbmc but with the latest builds things seem to be much more stable. if i could reproduce the problem on my side, i might be able to track it down... but i haven't had the problem in a while now. as for exceptions or error dialogs (e.g. the int[] error you mentioned), grab the relevant xbmc log file and post it so i can have a look. i need a good stack trace to debug stuff remotely... and even then it can be hard unless it is an obvious bug in the code. it could be weird race conditions with threaded events or a bug in the code that only happens in certain conditions.

if you are going to post a problem, it helps if you tell me which build of xbmc you are using (e.g. cvs checkout date), which version of xbmcmythtv, which myth tv backend version, and any steps you went through before hitting the problem. also, it is important to let me know if the problem occurs if you immediately run the xbmcmythtv scripts after a reboot or if you ran other stuff before you ran the xbmcmythtv scripts. i'm sure xbmc has other bugs out there that can cause small memory corruptions that don't result in an immediate crash. sometimes something that you ran before can impact stuff that you run much later...

philled: i use the stock mplayer.dll so i can't help you out there. that was one of the reasons i got a pvr-250 card because it encodes to mpeg2 in hardware and xbmc has no problem playing the files back.

luigi: henk says your guide problem is fixed with my latest patches in the xbmcmythtv cvs repository. try the latest code.

as for your skin problem, make sure you don't have any skin files from an older version of xbmcmythtv on your xbox. there used to be a full copy of skin files for each xbmc skin a while back. i then changed the skin files to allow you to include files within skin files. however, the skin module looks in the skin specific directory before it looks in the shared skin directory... so if you have old skin files, it will pick those up instead and the behavior is undefined (i.e. i haven't tested that in a long time now).

just out of curiosity, which xbmc skin are you using? the reason i ask is that i haven't tested the pm and pm2 skins in a while. also, it looks like they are being phased out of xbmc as well...
ok, just got another crash.

this is cvs xbmcmythtv (very recent) and xbmc-2005-03-26 cvs.

21-04-2005 12:58:05 notice start led control
21-04-2005 12:58:05 notice dim lcd on playback
21-04-2005 12:58:07 info activating window id: 10000
21-04-2005 12:58:10 info activating window id: 13013
21-04-2005 12:58:12 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:14 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:14 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:16 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:18 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:18 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:19 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:38 info traceback (most recent call last):
21-04-2005 12:58:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:38 info self.playselected( control )
21-04-2005 12:58:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:38 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:38 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:39 info traceback (most recent call last):
21-04-2005 12:58:39 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:39 info self.playselected( control )
21-04-2005 12:58:39 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:39 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:39 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:41 info traceback (most recent call last):
21-04-2005 12:58:41 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:41 info self.playselected( control )
21-04-2005 12:58:41 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:41 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:41 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:42 info traceback (most recent call last):
21-04-2005 12:58:42 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:42 info self.playselected( control )
21-04-2005 12:58:42 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:42 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:42 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:42 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:43 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:46 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:47 error unable to locate window with id -10000. check skin files
here's another error.

21-04-2005 14:18:28 info activating window id: 10000
21-04-2005 14:18:28 info traceback (most recent call last):
21-04-2005 14:18:28 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvmain.py", line 82, in ?
21-04-2005 14:18:28 info del win
21-04-2005 14:18:28 info nameerror: name 'win' is not defined

madtw
2005-04-21, 17:40
first comment is that you probably should try a newer version of xbmc. there have been a bunch of changes (including bug fixes) to the xbmc python module in early april.

as for the error log you posted, the player errors probably happened after you tried to exit the live tv screen? when the live tv window is closed, the code first destroys the player object that was created for live tv playback... then the window should've closed. if it didn't then the player object would no longer exist and you would get a bunch of errors any time you tried to do anything that used the player object. i can change the way the code works so that it will recreate the player object if it doesn't exist or not delete the player object stored in the window (and let python clean it up when the window is destroyed) but if everything is working as it should, the player object should never be accessed after an attempted window close.

that last error is a bit puzzling... win had to exist for the domodal() call so why does it no longer exist. i remember seeing that error before (last year)... the fix at the time was to comment out the line.

jpf
2005-04-21, 18:47
first comment is that you probably should try a newer version of xbmc. there have been a bunch of changes (including bug fixes) to the xbmc python module in early april.

as for the error log you posted, the player errors probably happened after you tried to exit the live tv screen? when the live tv window is closed, the code first destroys the player object that was created for live tv playback... then the window should've closed. if it didn't then the player object would no longer exist and you would get a bunch of errors any time you tried to do anything that used the player object. i can change the way the code works so that it will recreate the player object if it doesn't exist or not delete the player object stored in the window (and let python clean it up when the window is destroyed) but if everything is working as it should, the player object should never be accessed after an attempted window close.

that last error is a bit puzzling... win had to exist for the domodal() call so why does it no longer exist. i remember seeing that error before (last year)... the fix at the time was to comment out the line.
hi,

ok well basically the newer versions of xbmc have horrible bugs, the mplayer window shows a black screen sometimes amongst other random problems.

when i can't exit the screens, basically i can still use all the menus in the screen i'm stuck in. the main screen that freezes is the recordedshowdetails screen, but the livetv screen does that periodically as well. i also was having problems with connections freezing, and when i killed the mythbackend then i magically got control of the menus again, so i changed the socket to a timeoutsocket, put a default of 20 seconds in there, i haven't had a freeze like that since.

also, why was the "back" button disabled? i reenabled it here:
# stop user from quitting selecting parent dir in main window
if action == mythtvgui.action_parent_dir:
actionconsumed = none
maybe the back button will work even if the "menu" button doesn't, but maybe there is something i'm not aware of.

here is the change i made to def connect()
def connect( self ):
s = timeoutsocket.socket( socket.af_inet, socket.sock_stream )
timeoutsocket.setdefaultsockettimeout(20);

with regards to the last error, i've seen it a few times. i am still able to exit onto the main menu and then everything seems fine.

why is the program referencing a window id of -10000? that happens every time i can't exit the menu and am trying to by pressing the "menu" key.

it would probably be good to add code to recreate any connection that fails (connection reset by peer is an error i see sometimes), as well as recreate the player object if it does not exist.

jpf
2005-04-21, 19:05
first comment is that you probably should try a newer version of xbmc. there have been a bunch of changes (including bug fixes) to the xbmc python module in early april.

as for the error log you posted, the player errors probably happened after you tried to exit the live tv screen? when the live tv window is closed, the code first destroys the player object that was created for live tv playback... then the window should've closed. if it didn't then the player object would no longer exist and you would get a bunch of errors any time you tried to do anything that used the player object. i can change the way the code works so that it will recreate the player object if it doesn't exist or not delete the player object stored in the window (and let python clean it up when the window is destroyed) but if everything is working as it should, the player object should never be accessed after an attempted window close.

that last error is a bit puzzling... win had to exist for the domodal() call so why does it no longer exist. i remember seeing that error before (last year)... the fix at the time was to comment out the line.
hi,

ok well basically the newer versions of xbmc have horrible bugs, the mplayer window shows a black screen sometimes amongst other random problems.

when i can't exit the screens, basically i can still use all the menus in the screen i'm stuck in. the main screen that freezes is the recordedshowdetails screen, but the livetv screen does that periodically as well. i also was having problems with connections freezing, and when i killed the mythbackend then i magically got control of the menus again, so i changed the socket to a timeoutsocket, put a default of 20 seconds in there, i haven't had a freeze like that since.

also, why was the "back" button disabled? i reenabled it here:
# stop user from quitting selecting parent dir in main window
if action == mythtvgui.action_parent_dir:
actionconsumed = none
maybe the back button will work even if the "menu" button doesn't, but maybe there is something i'm not aware of.

here is the change i made to def connect()
def connect( self ):
s = timeoutsocket.socket( socket.af_inet, socket.sock_stream )
timeoutsocket.setdefaultsockettimeout(20);

with regards to the last error, i've seen it a few times. i am still able to exit onto the main menu and then everything seems fine.

why is the program referencing a window id of -10000? that happens every time i can't exit the menu and am trying to by pressing the "menu" key.

it would probably be good to add code to recreate any connection that fails (connection reset by peer is an error i see sometimes), as well as recreate the player object if it does not exist.
could you point me towards a xbmc-cvs build that actually works? and to a location. the primary -my mom- mirror only has a build since 2005-04-01

jpf
2005-04-21, 20:22
first comment is that you probably should try a newer version of xbmc. there have been a bunch of changes (including bug fixes) to the xbmc python module in early april.

as for the error log you posted, the player errors probably happened after you tried to exit the live tv screen? when the live tv window is closed, the code first destroys the player object that was created for live tv playback... then the window should've closed. if it didn't then the player object would no longer exist and you would get a bunch of errors any time you tried to do anything that used the player object. i can change the way the code works so that it will recreate the player object if it doesn't exist or not delete the player object stored in the window (and let python clean it up when the window is destroyed) but if everything is working as it should, the player object should never be accessed after an attempted window close.

that last error is a bit puzzling... win had to exist for the domodal() call so why does it no longer exist. i remember seeing that error before (last year)... the fix at the time was to comment out the line.
hi,

ok well basically the newer versions of xbmc have horrible bugs, the mplayer window shows a black screen sometimes amongst other random problems.

when i can't exit the screens, basically i can still use all the menus in the screen i'm stuck in. the main screen that freezes is the recordedshowdetails screen, but the livetv screen does that periodically as well. i also was having problems with connections freezing, and when i killed the mythbackend then i magically got control of the menus again, so i changed the socket to a timeoutsocket, put a default of 20 seconds in there, i haven't had a freeze like that since.

also, why was the "back" button disabled? i reenabled it here:
# stop user from quitting selecting parent dir in main window
if action == mythtvgui.action_parent_dir:
actionconsumed = none
maybe the back button will work even if the "menu" button doesn't, but maybe there is something i'm not aware of.

here is the change i made to def connect()
def connect( self ):
s = timeoutsocket.socket( socket.af_inet, socket.sock_stream )
timeoutsocket.setdefaultsockettimeout(20);

with regards to the last error, i've seen it a few times. i am still able to exit onto the main menu and then everything seems fine.

why is the program referencing a window id of -10000? that happens every time i can't exit the menu and am trying to by pressing the "menu" key.

it would probably be good to add code to recreate any connection that fails (connection reset by peer is an error i see sometimes), as well as recreate the player object if it does not exist.
could you point me towards a xbmc-cvs build that actually works? and to a location. the primary -my mom- mirror only has a build since 2005-04-01
i've upgraded to cvs 2005-04-10

now i'm getting this:

21-04-2005 17:17:57 info traceback (most recent call last):

21-04-2005 17:17:57 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvmain.py", line 60, in oncontrol

21-04-2005 17:17:57 info mythtvguide.showwindow()

21-04-2005 17:17:57 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 30, in showwindow

21-04-2005 17:17:57 info win.loadguide()

21-04-2005 17:17:57 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 467, in loadguide

21-04-2005 17:17:57 info self.channels[self.endchan].chanid() )

21-04-2005 17:17:57 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtv.py", line 728, in getprogramlistings

21-04-2005 17:17:57 info for row in rowiter:

21-04-2005 17:17:57 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 707, in next

21-04-2005 17:17:57 info return self.fetchrowasdict

21-04-2005 17:17:57 info value = self.getstringandseekpos

21-04-2005 17:17:57 info length = self.getfieldlength

21-04-2005 17:17:57 info head = ord( self.msg[self.position] )

21-04-2005 17:17:57 info indexerror: string index out of range

21-04-2005 17:18:00 debug loadlibrarya('unicodedata.pyd')

21-04-2005 17:18:00 debug initializing fs_seg..

21-04-2005 17:18:00 debug fs segment @ 0xa322e0

21-04-2005 17:18:00 debug executing entrypoint at: 0x1f425bb - dll: unicodedata.pyd

21-04-2005 17:18:00 debug loadlibrary('unicodedata.pyd') returning: 0xa56610

21-04-2005 17:18:00 debug kernel32!getprocaddress(0xa56610, 'initunicodedata') => 0x1f424b0

21-04-2005 17:18:01 info traceback (most recent call last):

21-04-2005 17:18:01 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtv.py", line 1385, in refresh

21-04-2005 17:18:01 info self.dom = minidom.parsestring( statushtml )

21-04-2005 17:18:01 info file "q:\python\lib\_xmlplus\dom\minidom.py", line 1929, in parsestring

21-04-2005 17:18:01 info return expatbuilder.parsestring(string)

21-04-2005 17:18:01 info file "q:\python\lib\_xmlplus\dom\expatbuilder.py", line 940, in parsestring

21-04-2005 17:18:01 info return builder.parsestring(string)

21-04-2005 17:18:01 info file "q:\python\lib\_xmlplus\dom\expatbuilder.py", line 223, in parsestring

21-04-2005 17:18:01 info parser.parse(string, true)

21-04-2005 17:18:01 info expaterror: not well-formed (invalid token): line 17, column 7

21-04-2005 17:18:01 info activating window id: 13003

21-04-2005 17:18:02 info activating window id: 13002

21-04-2005 17:18:03 info traceback (most recent call last):

21-04-2005 17:18:03 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvmain.py", line 60, in oncontrol

21-04-2005 17:18:03 info mythtvguide.showwindow()

21-04-2005 17:18:03 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 30, in showwindow

21-04-2005 17:18:03 info win.loadguide()

21-04-2005 17:18:03 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 457, in loadguide

21-04-2005 17:18:03 info self.channels = db.getchannellist()

21-04-2005 17:18:03 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtv.py", line 627, in getchannellist

21-04-2005 17:18:03 info rowiter = self.conn.dictrowiterator()

21-04-2005 17:18:03 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 516, in dictrowiterator

21-04-2005 17:18:03 info iter.parse()

21-04-2005 17:18:03 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 684, in parse

21-04-2005 17:18:03 info self.getcolumnnames

21-04-2005 17:18:03 info self.columns.append(

21-04-2005 17:18:03 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 654, in getfieldlength()

21-04-2005 17:18:03 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 622, in data[ "program.starttime" ]

21-04-2005 17:19:37 info keyerror: 'program.starttime'

21-04-2005 17:19:38 info traceback (most recent call last):

21-04-2005 17:19:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvmain.py", line 60, in oncontrol

21-04-2005 17:19:38 info mythtvguide.showwindow()

21-04-2005 17:19:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 30, in showwindow

21-04-2005 17:19:38 info win.loadguide()

21-04-2005 17:19:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 457, in loadguide

21-04-2005 17:19:38 info self.channels = db.getchannellist()

21-04-2005 17:19:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtv.py", line 629, in getchannellist

21-04-2005 17:19:38 info for row in rowiter:

21-04-2005 17:19:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 707, in next

21-04-2005 17:19:38 info return self.fetchrowasdict

21-04-2005 17:19:38 info value = self.getstringandseekpos

21-04-2005 17:19:38 info length = self.getfieldlength

21-04-2005 17:19:38 info head = ord( self.msg[self.position] )

21-04-2005 17:19:38 info indexerror: string index out of range

21-04-2005 17:19:40 info traceback (most recent call last):

21-04-2005 17:19:40 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvmain.py", line 60, in oncontrol

21-04-2005 17:19:40 info mythtvguide.showwindow()

21-04-2005 17:19:40 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 30, in showwindow

21-04-2005 17:19:40 info win.loadguide()

21-04-2005 17:19:40 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 457, in loadguide

21-04-2005 17:19:40 info self.channels = db.getchannellist()

21-04-2005 17:19:40 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtv.py", line 627, in getchannellist

21-04-2005 17:19:40 info rowiter = self.conn.dictrowiterator()

21-04-2005 17:19:40 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 516, in dictrowiterator

21-04-2005 17:19:40 info iter.parse()

21-04-2005 17:19:40 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 684, in parse

21-04-2005 17:19:40 info self.getcolumnnames

21-04-2005 17:19:40 info self.columns.append(

21-04-2005 17:19:40 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 654, in getfieldlength()

21-04-2005 17:19:40 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 622, in data[ "program.starttime" ]

21-04-2005 17:19:41 info keyerror: 'program.starttime'

21-04-2005 17:19:43 info traceback (most recent call last):

21-04-2005 17:19:43 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvmain.py", line 60, in oncontrol

21-04-2005 17:19:43 info mythtvguide.showwindow()

21-04-2005 17:19:43 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 30, in showwindow

21-04-2005 17:19:43 info win.loadguide()

21-04-2005 17:19:43 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvguide.py", line 457, in loadguide

21-04-2005 17:19:43 info self.channels = db.getchannellist()

21-04-2005 17:19:43 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtv.py", line 629, in getchannellist

21-04-2005 17:19:43 info for row in rowiter:

21-04-2005 17:19:43 info file "e:\apps\xbmc\scripts\xbmcmythtv\mysql.py", line 707, in next

21-04-2005 17:19:43 info return self.fetchrowasdict

21-04-2005 17:19:43 info value = self.getstringandseekpos

21-04-2005 17:19:43 info length = self.getfieldlength

21-04-2005 17:19:43 info head = ord( self.msg[self.position] )

21-04-2005 17:19:43 info indexerror: string index out of range

henk
2005-04-22, 00:00
luigi: henk says your guide problem is fixed with my latest patches in the xbmcmythtv cvs repository.
the guide is fixed now but probably broke livetv :sniffle:

21-04-2005 22:45:35 info traceback (most recent call last):
21-04-2005 22:45:35 debug udpclient rx: 16856 <- 'kai_client_arena_ping;(a)(i)crow;30;2;1;03;'
21-04-2005 22:45:35 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 56, in oncontrol
21-04-2005 22:45:35 info mythtvlivetv.showwindow();
21-04-2005 22:45:35 info file "q:\scripts\xbmcmythtv\mythtvlivetv.py", line 56, in showwindow
21-04-2005 22:45:35 info win.loadprograms()
21-04-2005 22:45:35 info file "q:\scripts\xbmcmythtv\mythtvlivetv.py", line 140, in loadprograms
21-04-2005 22:45:35 info channellistcontrol.additem(
21-04-2005 22:45:35 info file\ "q:\scripts\xbmcmythtv\mythtvprogram.py", line 104, in formattedchannel
21-04-2005 22:45:35 info value += " " + self.callsign()
21-04-2005 22:45:35 info typeerror: unsupported operand type(s) for +=: 'nonetype' and 'str'

madtw
2005-04-22, 08:23
henk: try the latest cvs... :)

jpf: i intentionally made it so that the back & menu buttons work for subscreens but the menu button only works for the main screen. it is mainly so that you don't ditch out of the script unintentionally... i use the back button when closing subscreens and then hit the menu button when i truly want to quit the script from the main screen. to each his own i guess...

the timeout on the socket is a good idea.. i originally had the timeout coded when i was testing in linux but python in xbmc didn't like the code. in the end i ended up ripping it out. now that you've figured out the magic incantantation, i can put the socket timeout code back in...

when i couldn't exit the screens a while ago, i tried using other actions besides the back and menu buttons but it did not work. the more i read about your debugging, the more i think this might be a threading issue... one thread is blocked on a socket and the other thread requests the window be closed. since there are still pending events on the window, it isn't entirely freed up but new events cannot be created because the window id is no longer valid? the -10000 window id is something xbmc assigns to new python windows... i haven't hard coded any ids into the scripts.

if you take a look at mythtvguide.py, you can see how i restricted threaded events from modifying the screen at the same time. you could try adding in similar code into the screens that are causing problems to see if it helps... start at line 489.

as for recreating connections... with some quick calls to test if a connection is still valid, it should be possible to add in recreating a dead connection into the getinstance calls that retrieve a connection/database object. at the moment, i try to hang on to connections for as short a time as possible but there is no retry. this has been working well for me so far but i must not be getting any timeouts on my connections.

i'm not sure what the problem is with your last mysql error... i haven't touched that module in a long time. what version of mysql are you using? i'm running version 4.0.23... if you're running a newer version it could be that something has changed breaking mysql.py.

henk
2005-04-22, 09:33
henk: try the latest cvs... :)
the error was on the latest cvs ???

henk
2005-04-22, 17:05
henk: try the latest cvs... :)
the error was on the latest cvs ???
ok, now it's :fixed:

jpf
2005-04-22, 22:10
henk: try the latest cvs... :)

jpf: i intentionally made it so that the back & menu buttons work for subscreens but the menu button only works for the main screen. it is mainly so that you don't ditch out of the script unintentionally... i use the back button when closing subscreens and then hit the menu button when i truly want to quit the script from the main screen. to each his own i guess...

the timeout on the socket is a good idea.. i originally had the timeout coded when i was testing in linux but python in xbmc didn't like the code. in the end i ended up ripping it out. now that you've figured out the magic incantantation, i can put the socket timeout code back in...

when i couldn't exit the screens a while ago, i tried using other actions besides the back and menu buttons but it did not work. the more i read about your debugging, the more i think this might be a threading issue... one thread is blocked on a socket and the other thread requests the window be closed. since there are still pending events on the window, it isn't entirely freed up but new events cannot be created because the window id is no longer valid? the -10000 window id is something xbmc assigns to new python windows... i haven't hard coded any ids into the scripts.

if you take a look at mythtvguide.py, you can see how i restricted threaded events from modifying the screen at the same time. you could try adding in similar code into the screens that are causing problems to see if it helps... start at line 489.

as for recreating connections... with some quick calls to test if a connection is still valid, it should be possible to add in recreating a dead connection into the getinstance calls that retrieve a connection/database object. at the moment, i try to hang on to connections for as short a time as possible but there is no retry. this has been working well for me so far but i must not be getting any timeouts on my connections.

i'm not sure what the problem is with your last mysql error... i haven't touched that module in a long time. what version of mysql are you using? i'm running version 4.0.23... if you're running a newer version it could be that something has changed breaking mysql.py.
hi,

ok well, the thing is that the screens don't freeze. i just can't exit them. for example in the recorded movies screen, i often get stuck in the preview window. i can play the movie from there, i can delete and copy etc. i just can't exit it. can we put an emergency exit key in there? is there some special way that the program needs to be killed completely?

scottymac
2005-04-23, 02:32
we all seem to be constantly "chasing the tail" of others' projects here. why don't we all get the same version of xbmc, stable version 0.16 or 0.17 of myth and same version of xbmcmyth and get it working 100%. then move on to the next version/release whenever there is a need (feature enhancement/new stable release etc.).. we seem to be always constantly trying to hit a moving target.

i have tried upgrading on and off for the last 3-4 months but there is always some incompatibility issues with at least one of the packages..
any thoughts ?

madtw
2005-04-23, 06:58
ok well, the thing is that the screens don't freeze. i just can't exit them. for example in the recorded movies screen, i often get stuck in the preview window. i can play the movie from there, i can delete and copy etc. i just can't exit it. can we put an emergency exit key in there? is there some special way that the program needs to be killed completely?
yeah, i know exactly what you're talking about. i haven't experienced it in a few months now. when i had the problem, i tried putting in emergency exit buttons, etc. to get around it. nothing worked... it seemed like python lost all concept of the window (as far as closing it goes) but the events in the window would still fire (e.g. pushing buttons, etc.).

jpf
2005-04-23, 14:26
ok well, the thing is that the screens don't freeze. i just can't exit them. for example in the recorded movies screen, i often get stuck in the preview window. i can play the movie from there, i can delete and copy etc. i just can't exit it. can we put an emergency exit key in there? is there some special way that the program needs to be killed completely?
yeah, i know exactly what you're talking about. i haven't experienced it in a few months now. when i had the problem, i tried putting in emergency exit buttons, etc. to get around it. nothing worked... it seemed like python lost all concept of the window (as far as closing it goes) but the events in the window would still fire (e.g. pushing buttons, etc.).
what we need to figure out is how my setup differs from yours. do you try various cvs versions of xbmc? i have tried many versions and always have the same problem.

you are obviously always using the latest cvs so there shouldn't be a code difference there.

i use international characters though, i wonder if that could have an effect?

jpf
2005-04-23, 16:32
ok well, the thing is that the screens don't freeze. i just can't exit them. for example in the recorded movies screen, i often get stuck in the preview window. i can play the movie from there, i can delete and copy etc. i just can't exit it. can we put an emergency exit key in there? is there some special way that the program needs to be killed completely?
yeah, i know exactly what you're talking about. i haven't experienced it in a few months now. when i had the problem, i tried putting in emergency exit buttons, etc. to get around it. nothing worked... it seemed like python lost all concept of the window (as far as closing it goes) but the events in the window would still fire (e.g. pushing buttons, etc.).
what we need to figure out is how my setup differs from yours. do you try various cvs versions of xbmc? i have tried many versions and always have the same problem.

you are obviously always using the latest cvs so there shouldn't be a code difference there.

i use international characters though, i wonder if that could have an effect?
one thing i noticed is that the status screen doesn't ever work, some error about not being able to parse, i see the expat parser errors in the log.

Loto_Bak
2005-04-24, 06:44
just a fyi for everyone,

mythtv .18, latest xbmc cvs is working 100%

lan video cache set to 0 using
mpeg-ps video recording profile.

i do get slight video/audio studder every once and a while but its very minor

the parsing of the status screen works perfectly with this combination.

lintweaker
2005-04-24, 22:17
mythtv 0.18 is working beautifully with the latest xbmcmythtv from cvs. i am using it with an "older" version of xmbc. newer versions have some anoying bugs.

the only thing is that in the program guide shows with long names are overlapping. no biggy ...

excellent stuff.
:kickass:

jpf
2005-04-25, 02:24
mythtv 0.18 is working beautifully with the latest xbmcmythtv from cvs. i am using it with an "older" version of xmbc. newer versions have some anoying bugs.

the only thing is that in the program guide shows with long names are overlapping. no biggy ...

excellent stuff.
:kickass:
which version are you using?

Loto_Bak
2005-04-25, 08:17
jpf,

try using the latest xbmcmythtv and the newest build you can find. i ocassionally get stuck in a window as well, but its not a huge deal to use the shutdown menu to restart xbmc. it does not happen often

josurr
2005-04-25, 11:28
can anybody help a newbie?

i need to know how to get the latest cvs build for xbmcmythtv (and how to build it if necessary)...

i know how to install and run it in xbmc... just need to know how to obtain latest build

cheers,

josurr

Loto_Bak
2005-04-25, 20:29
for simplicity you can use the web cvs client at sf.net here
http://cvs.sourceforge.net/viewcvs.py/xbmcmythtv/xbmcmythtv/

otherwise you will need to download and install a cvs client (cvstortise or wincvs). there should be more details on that at www.sf.net

jpf
2005-04-27, 03:33
jpf,

try using the latest xbmcmythtv and the newest build you can find. i ocassionally get stuck in a window as well, but its not a huge deal to use the shutdown menu to restart xbmc. it does not happen often
how can you shutdown only xmbc without restarting the xbox manually?

Loto_Bak
2005-04-29, 20:49
use the shutdown menu. press r2 (aka right joystick click button) and select restart from the menu

jpf
2005-04-30, 20:29
use the shutdown menu. press r2 (aka right joystick click button) and select restart from the menu
that won't work if i'm stuck in mythtv will it?

najt
2005-05-01, 00:16
i get an error with the latest xbmc build and the latest xbmcmythtv cvs. the error occurs when starting mythtvmain.py and says "argument 5 should be string: not none".

i did not occur with a xbmc build from the start of april. i also tried build 04-27 and 04-25 and get the error. i'll try older builds.

najt
2005-05-01, 00:38
30-04-2005 23:35:22 info -->python initialized<--
30-04-2005 23:35:22 info
30-04-2005 23:35:22 debug loadlibrarya('_sre.pyd')
30-04-2005 23:35:22 debug executing entrypoint at: 0xf8a3cb - dll: _sre.pyd
30-04-2005 23:35:22 debug loadlibrary('_sre.pyd') returning: 0xa80fb0
30-04-2005 23:35:22 debug kernel32!getprocaddress(0xa80fb0, 'init_sre') => 0xf8a120
30-04-2005 23:35:22 debug loadlibrarya('_ssl.pyd')
30-04-2005 23:35:22 debug executing entrypoint at: 0xfde951 - dll: _ssl.pyd
30-04-2005 23:35:22 debug loadlibrary('_ssl.pyd') returning: 0x9b6cc0
30-04-2005 23:35:22 debug kernel32!getprocaddress(0x9b6cc0, 'init_ssl') => 0xf91aa0
30-04-2005 23:35:23 debug loadlibrarya('pyexpat.pyd')
30-04-2005 23:35:23 debug executing entrypoint at: 0x1029c01 - dll: pyexpat.pyd
30-04-2005 23:35:23 debug loadlibrary('pyexpat.pyd') returning: 0x991390
30-04-2005 23:35:23 debug kernel32!getprocaddress(0x991390, 'initpyexpat') => 0x1014540
30-04-2005 23:35:23 info traceback (most recent call last):
30-04-2005 23:35:23 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 80, in ?
30-04-2005 23:35:23 info win.loadskin( "home.xml" )
30-04-2005 23:35:23 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 247, in loadskin
30-04-2005 23:35:23 info self.addcontrols(dom.getelementsbytagname("control"))
30-04-2005 23:35:23 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 296, in addcontrols
30-04-2005 23:35:23 info me.create()
30-04-2005 23:35:23 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 90, in create
30-04-2005 23:35:23 info c = xbmcgui.controlimage(x,y,w,h,tx)
30-04-2005 23:35:23 info typeerror: argument 5 must be string, not none

najt
2005-05-01, 00:58
looks like the skin format has been changed in 04-17... great.

jpf
2005-05-01, 16:52
i noticed one thing... when you get stuck in a screen and can't exit, the screen you enter goes black for maybe 500ms first,

every time you enter a screen that flashes black for a moment first gets stuck. but i can still go forward from that screen, for example if the recordedshows screen does it, then i can enter specific recordings and then select play etc, and then go back to the main recording menu. so one would think it's something to do with the screen initialisation.

Loto_Bak
2005-05-03, 02:03
of course it works in the script, otherwise i wouldnt have mentioned it.
just try it.

madtw, i am unsure how the mythbackend handles frontends, but as problems/lockups occur in the script/xbmc the backend is not updated and can continue to tie up a tuner after the crash in xbmc. would it be possible to add a function to stop all playing items from xbmc in your script?

CapnBry
2005-05-03, 05:03
using the latest xbmcmythtv from cvs and xbmc 2005-05-02 cvs build, i get this error trying to launch mythtvmain.py:
02-05-2005 21:38:54 info traceback (most recent call last):
02-05-2005 21:38:54 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 7, in ?
02-05-2005 21:38:54 info
02-05-2005 21:38:54 info from mythtvgui import dialog
02-05-2005 21:38:54 info importerror
02-05-2005 21:38:54 info :
02-05-2005 21:38:54 info cannot import name dialog
02-05-2005 21:38:54 info i've also got this in my log as well, but only once02-05-2005 21:38:31 info traceback (most recent call last):
02-05-2005 21:38:31 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 7, in ?
02-05-2005 21:38:31 info
02-05-2005 21:38:31 info from mythtvgui import dialog
02-05-2005 21:38:31 info file "q:\scripts\xbmcmythtv\mythtvgui.py", line 9, in ?
02-05-2005 21:38:31 info
02-05-2005 21:38:31 info from singleton import delinstance, getinstance
02-05-2005 21:38:31 info file "q:\scripts\xbmcmythtv\singleton.py", line 10, in ?
02-05-2005 21:38:31 info
02-05-2005 21:38:31 info import mythtvutil
02-05-2005 21:38:31 info file "q:\scripts\xbmcmythtv\mythtvutil.py", line 10, in ?
02-05-2005 21:38:31 info
02-05-2005 21:38:31 info from xml.dom import minidom, node
02-05-2005 21:38:31 info file "q:\python\python23.zlib\xml\.py", line 28, in ?
02-05-2005 21:38:31 info systemerror
02-05-2005 21:38:31 info :
02-05-2005 21:38:31 info null result without error in pyobject_calland here's another interesting one (considering there's no line 144 in main.py)02-05-2005 21:27:47 info q:\scripts\xbmcmythtv\mythtvmain.py:144: deprecationwarning: integer argument expected, got floatany ideas what the heck is going on here? i've wiped my whole xbmc directory, and 08face from both caches. doesn't seem to make a difference.

madtw
2005-05-03, 08:08
capnbry: do you have python installed correctly? most of the time when i have seen import errors from people it is because they do not have python installed at all... so the imports fail. can you run other python scripts without problems? i haven't updated my cvs build in a couple of weeks so it could be that something changed in python recently as well...

loto_bak: i'll have to think about how to stop tuners after a crash in xbmc... it should be possible. although i might not be able to tell the difference between a different frontend using a tuner, the backend using a tuner, and tuners that were used before the crash. this would mean that i might end up stopping a show that is being recorded, etc... but i guess you can use it at your own risk.

CapnBry
2005-05-03, 13:50
oh yeah, i forgot to mention that. yes, other python scripts work fine (at least the launch browser, gamespotplus, and an older version of gamespot). i can't guarantee that i have python set up 100% on the xbox though, since all i do is pull cvs and use the build.bat.

i'll try pulling older revisions from cvs and seeing if i can find a version that works. if i can do that, then i'll narrow down what makes it stop working and let you know.

edit: hmm got it working on another box here that had an old xbmc on it. i'll report back when i find the magic!

jpf
2005-05-03, 21:19
getting stuck in windows - the solution

in /keymap.xml find the <global> section.
then remap one of the buttons to exit to the main menu whenever you want.

if you get stuck in a screen , just press the "stop" button on your remote, it will get you back to the main menu. this doesn't affect any program that uses the stop button legitimately.

the key line is: <execute>xbmc.activatewindow(0)</execute>

<action>
<description>stop</description>
<id>13</id>
<remote>stop</remote>
<remotecode></remotecode>
<keyboard>x</keyboard>
<execute>xbmc.activatewindow(0)</execute>
</action>

josurr
2005-05-05, 01:45
theres a new forum for mythtv on xbox (has a section for xbmcmythtv python script too!)

mythtv-xbox.org (http://www.mythtv-xbox.org)

its got a few users (it was just setup like last week)

see you there!

josurr

sgtstadanko
2005-05-08, 21:54
unable to load recorded show

just moved my backend to another machine and now i can't pull up a recorded show. livetv works fine, so i dont think it is a smb path issue (rinbuffer is in same dir as recorded shows). when i try and pull up a recorded show, i first get "unable to retrieve screenshot", then on the show detail page, it complains that it cannot find the show. all other regular (linux) mythfrontends work and i am able to browse the samba shares from the xbmc filemanager and all other win32 / linux boxes. it worked fine before i moved to the new mythbackend server. i have also tried grabbing the latest cvs, same results. here are some log snippets:

08-05-2005 12:54:28 info activating window id: 13002
08-05-2005 12:54:35 info activating window id: 13003
08-05-2005 12:54:40 info traceback (most recent call last):
08-05-2005 12:54:40 info file "q:\scripts\xbmcmythtv\mythtvrecordedshowdetails.p y", line 286, in oncontrol
08-05-2005 12:54:40 info self.play()
08-05-2005 12:54:40 info file "q:\scripts\xbmcmythtv\mythtvrecordedshowdetails.p y", line 313, in play
08-05-2005 12:54:40 info raise exception, msg
08-05-2005 12:54:40 info exception: unable to find show 'velvet goldmine' on 'myth'.

mythbackend log:
2005-05-08 12:58:36.542
2005-05-08 12:58:32.962 mainserver::handleannounce filetransfer
2005-05-08 12:58:32.965 adding: xbox as a remote file transfer
2005-05-08 12:58:32.969 could not open /mnt/store/tv/1197_20050415140000_20050415160000.n
uv.png. 0 retries remaining.
2005-05-08 12:58:34.604 unknown socket

mainserver::handleannounce playback
2005-05-08 12:58:36.544 adding: xbox as a client (events: 0)
2005-05-08 12:58:36.556 mainserver::handleannounce filetransfer
2005-05-08 12:58:36.558 adding: xbox as a remote file transfer
2005-05-08 12:58:36.561 could not open /mnt/store/tv/1197_20050415140000_20050415160000.n
uv. 4 retries remaining.
2005-05-08 12:58:37.064 could not open /mnt/store/tv/1197_20050415140000_20050415160000.n
uv. 3 retries remaining.
2005-05-08 12:58:37.568 could not open /mnt/store/tv/1197_20050415140000_20050415160000.n
uv. 2 retries remaining.
2005-05-08 12:58:38.072 could not open /mnt/store/tv/1197_20050415140000_20050415160000.n
uv. 1 retries remaining.
2005-05-08 12:58:38.577 could not open /mnt/store/tv/1197_20050415140000_20050415160000.n
uv. 0 retries remaining.


the actual file name on the server is 1197_20050415190000_20050415210000.nuv . for some reason it looks like xbmcmythtv is querying for a file with a 5hr difference in start time:
xbmcmythtv- 1197_20050415140000_20050415160000.nuv
actual file - 1197_20050415190000_20050415210000.nuv

here is a mysql query run on the backend:

mysql> select * from recorded where title = 'velvet goldmine';

| 1197 | 2005-04-15 19:00:00 | 2005-04-15 21:00:00 | velvet goldmine | | a reporter learns about a british glam rocker's (jonathan rhys-myers) life, his marriage and his relationship with a wild u.s. performer (ewan mcgregor). | drama | myth | null | 0 | null | 1 | 1 | default | 250 | | mv0587620000 | 20050415220116 | 4635361280 | 0.75 | 0 | 0000-00-00 | 0 | 0 | 0 |




any ideas....seems like i am missing something annoyingly simple ;(

update: nevermind. i apparantley am retarded. my tz on the new backend was set to utc....surpise a 6 hr diff. doh! oh an btw...using the xbms streaming is muuuch quicker. thanks.

jack46
2005-05-09, 23:00
hi,

when i have 2 hours, i'll definitely take the time to read all 32+ pages from this thread...

in the meantime though, as of may 2005, could someone please tell me how the mythtv/xbox combo compares to a setup like mine where i have a windows xp mce pc w/ media center extender for xbox ?

can i have multiple xbox clients connected to the mythtv box ?

is there anything that ms's setup does that can't be done with the mythtv/xbox combo ?

thanks...

Livin
2005-05-10, 03:05
i'd also like to see a feature comparison. i've not been following this thread but am interested in trying to determine which way i should go.

jack46
2005-05-10, 16:32
i have a question that is surely more related to mythtv than to the xbox front end of it, but i'm sure some of you can answer it...

does the xbox/mythtv combo support multiple satellite (or cable) set-top boxes ?

i'm just wondering if mythtv supports the control of satellite boxes through ir emitters ?

my current set up (with xp mce and extender for xbox) is this :

- remote control sends signal to xbox to "select a channel" for example
- xbox sends control signal through ethernet to media center pc
- media center pc creates ir signal, and sends it through the ir emitter (which is connected on a usb port) to the satellite stb
- stb receives ir signal, and changes channel
- new channel feed enters tuner card
- feed is streamed back to xbox

is that supported with mythtv / xbox front-end ?

jack46
2005-05-10, 17:05
i'm just wondering if mythtv supports the control of satellite boxes through ir emitters ?

more specifically, will mythtv work with microsoft's ir blaster ?

DrWeird
2005-05-11, 03:47
can anyone tell me exactly how to add a mythtv button to the main menu of xbmc? i tried adding a button to the <homebuttons> section but saw nothing on reboot.

thanks,
rob

najt
2005-05-11, 03:56
can anyone tell me exactly how to add a mythtv button to the main menu of xbmc? i tried adding a button to the <homebuttons> section but saw nothing on reboot.

thanks,
rob
you need to edit home.xml in your skins\skinname\tv_format directory.

jack46
2005-05-11, 05:15
i have a question about live tv. what happens if i pause live tv, and then fast forward up to (and passed ?) the point where i'm back at live tv ? does the player crash ? do i have to select the channel again ?

Th3_H0unD
2005-05-11, 17:32
i'm trying mythtv out here and i'm having some problems with my channels. anyone have the "linux" transponder files for dn?


thanks in advance

th3_h0und

DrWeird
2005-05-11, 23:56
can anyone tell me exactly how to add a mythtv button to the main menu of xbmc? i tried adding a button to the <homebuttons> section but saw nothing on reboot.

thanks,
rob
you need to edit home.xml in your skins\skinname\tv_format directory.
but what do i do for pmiii? i tried the home.xml and <homebuttons> and never saw anything.

najt
2005-05-12, 00:08
can anyone tell me exactly how to add a mythtv button to the main menu of xbmc? i tried adding a button to the <homebuttons> section but saw nothing on reboot.

thanks,
rob
you need to edit home.xml in your skins\skinname\tv_format directory.
but what do i do for pmiii? i tried the home.xml and <homebuttons> and never saw anything.
replace "my weather" with this


<control>
<description>my tv normal push button</description>
<type>button</type>
<id>7</id>
<posx>76</posx>
<posy>380</posy>
<width>35</width>
<height>34</height>
<label>my tv</label>
<font>special13</font>
<execute>e:\xbmc\scripts\xbmcmythtv\mythtvmain. py</execute>
<onleft>98</onleft>
<onright>99</onright>
<onup>3</onup>
<ondown>9</ondown>
<texturefocus>home-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>45</textoffsetx>
</control>

DrWeird
2005-05-12, 04:37
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.

davidred
2005-05-12, 06:05
hi guys,

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


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

najt
2005-05-12, 06:51
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

DrWeird
2005-05-12, 15:53
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, 16:01
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 :)

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

davidred
2005-05-13, 02:06
hi guys,

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


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.

???

philled
2005-05-15, 07:26
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, 14:18
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, 23:32
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, 23:38
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, 15:33
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, 19:28
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 ;)

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, 23:28
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, 01:06
easier said than done :sniffle:

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, 01:35
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, 10:41
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:


<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, 20:05
...
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:

<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:

<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, 10:09
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:


# 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.

waxling
2005-05-22, 15:17
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:

<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:

<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.

unfortunately this method does not appear to work with recent xbmc builds (looks like your trying to add a new button, wouldn't that require work to add an extra button to the skin also?)

the method mentioned by juski works, which edits / replaces an existing button (i ditched the my pictures button), however what happens if you want to keep all the buttons on the home screen? is there a "preferred" method to add a script to one of the windows/home? (couldn't find one).

using pgmiii / xbmc cvs from 2/5/2005 + cvs from 21/5/2005

juski
2005-05-22, 16:48
seeing as there's little or no information about programming with xbmc available, i'd guess that continuing to do things the way we are now is the best way.

the 'api' document for xbmc is laughable. they list some of the commands used but nothing about syntax or passable parameters. anything 'outsiders' know about the content of the xml files is stuff they've managed to glean themselves. open-source... it may be... documented well enough for you to add or change features yourself.. nope.

us1111
2005-05-22, 23:14
hmmm.. i don't get it. i try to play a mp4 nuv transcoded by mythtv from within xbmcmythtv. when i select the play option, nothing happens. this is what i get in the logfile


play:smb://server01/mythtv/1_20050522213100_20050522213500.nuv cachesize:2048
22-05-2005 22:03:09 info flipping bi-directional subtitles disabled
22-05-2005 22:03:09 debug msg:enable mplayer osd
22-05-2005 22:03:09 debug msg:mplayer dev-cvs-050410-13:35 (c) 2000-2004 mplayer team
22-05-2005 22:03:09 debug msg:cpu: intel celeron 2/pentium iii coppermine,geyserville
22-05-2005 22:03:09 debug msg:(family: 6, stepping: 10)
22-05-2005 22:03:09 debug msg:detected cache-line size is 32 bytes
22-05-2005 22:03:09 debug msg:cpuflags: mmx: 1 mmx2: 1 3dnow: 0 3dnow2: 0 sse: 0 sse2: 0
22-05-2005 22:03:09 debug msg:compiled for x86 cpu with extensions:
22-05-2005 22:03:09 debug msg: mmx
22-05-2005 22:03:09 debug msg: mmx2
22-05-2005 22:03:09 debug msg: sse
22-05-2005 22:03:09 debug msg:
22-05-2005 22:03:09 debug msg:
22-05-2005 22:03:09 debug msg:78 audio & 187 video codecs
22-05-2005 22:03:09 debug msg:mplayer_open_file(smb://server01/mythtv/1_20050522213100_20050522213500.nuv)
22-05-2005 22:03:09 info stating file smb://server01/mythtv/1_20050522213100_20050522213500.nuv.conf
22-05-2005 22:03:09 info stating file q:\system\players\mplayer\1_20050522213100_2005052 2213500.nuv.conf
22-05-2005 22:03:09 debug msg:playing smb://server01/mythtv/1_20050522213100_20050522213500.nuv.
22-05-2005 22:03:09 debug msg:auto open z:\subtitle
22-05-2005 22:03:09 debug msg:protocol:smb
22-05-2005 22:03:09 debug msg:use standard file for protocol:smb
22-05-2005 22:03:09 debug msg:
cache fill: 0.00% (0 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 0.00% (0 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 0.00% (0 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 3.13% (65536 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 3.13% (65536 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 6.25% (131072 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 6.25% (131072 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 9.38% (196608 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 9.38% (196608 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 12.50% (262144 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 15.63% (327680 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 15.63% (327680 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 18.75% (393216 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 18.75% (393216 bytes)
22-05-2005 22:03:09 error cmplayer::openfile() smb://server01/mythtv/1_20050522213100_20050522213500.nuv failed

i installed all the latest codex and my xmbc is the latest from xmc.org (15-05-2005).

i really would like this thing to work, because i think it's a brilliant idea to use the xbox as an multimedia platform and combined with myth, its even better!!

by the way, i downloaded the lates cvs version (toady) of xbmcmythtv..

kruuth
2005-05-23, 14:35
greetings all. i have just started using mythtv for xbmc so i'm a little jittery. all my ports and addresses seem to be ok, and i followed the instructions over at najit's site. however, whenever i go to test, i get this "socket not connected" when it tries to hook into the sql database. can someone tell me how to fix this?

juski
2005-05-24, 10:38
if that is happenning i would guess that all is not okay.

is the mysql server configured to allow external hosts to access it?

see the file my.cnf in /etc/mysql/

possibly also mysqlaccess.conf in /etc/mysql/

you probably just need to change a line or 2 in one of those files.