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

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

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


- philled - 2005-04-16

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.nuv.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:protocolConfusedmb
16-04-2005 14:59:04 debug msg:use standard file for protocolConfusedmb
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

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

(sigtom @ april 16 2005,07:22 Wrote: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 Sad

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

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

(sigtom @ april 16 2005,07:59 Wrote: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

(madtw @ april 16 2005,02:02 Wrote: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

how can i change that?


- androo - 2005-04-18

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

(henk @ april 17 2005,05:42 Wrote:about the guide problem i don't understand. here (amsterdam/netherlands) we still have non-numeric channel numbers...

amsterdam freq page

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


- madtw - 2005-04-18

(androo @ april 17 2005,16:46 Wrote: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

(madtw @ april 18 2005,03:35 Wrote: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. Smile
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.py", 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.py", 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

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

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

(henk @ april 18 2005,12:28 Wrote: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

(frooby @ april 18 2005,21:28 Wrote: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

androo,

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