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


- choid99 - 2004-10-20

wondering if anyone can help me?

i have installed the latest cvs version of mythtv and mythweb to overcome a problem where mythweb was causing mythbackend to hang. however, now i've done so the wonderful xbmc_mythtv is out of sync in terms of protocol version. i was wondering what i need to do to update mythtv.py in order to get things working again. i added:

      elif mythprotocolversion == "14":   # 0.16
           recordsize = 38

in getrecordings but now i get the error:

"unable to find selected show" in mytvshow.py

when trying to view a show i've recorded. how do i calculate the recordsize? i just left it the same as version 13 but this could well be my problem

help much appreciated !!

Huh


- KaZeR - 2004-10-21

(choid99 @ oct. 20 2004,22:39 Wrote:hi,

i had this problem a while back. i narrowed it down to the fact that mplayer doesn't support the current .nuv files that are generated by the latest version of mythtv. i did spot a supposed patch for mplayer to fix this but i could not get it to work.

how did i get around this? what i did was spend my money on a hauppage pvr 350 tv card. with this card mythtv records .nuv files that are viewable in mplayer. how come? well, because the pvr 350 actually creates an mpeg file and mythtv just renames it as a .nuv. mplayer is clever enough to work out that the file is really a plain mpeg file and plays it.

hope this helps, took me ages to work all this out !!
Quote:how did i get around this? what i did was spend my money on a hauppage pvr 350 tv card.

thanks for your answer. some days ago i tough about buying a pvr250, mainly because my 5 years old bttv card has a bad shield and some channels looked snowy. but a friend of mine brought his bttv, and now quality is really good.. so i tought it wasn't worth anymore buying a pvr. i was quite happy with that Smile

does that mean that you guys are all using a pvr-x50 card?

have you some more info about the patch?

thanks for your reply Smile


- rpao - 2004-11-05

when i select a pre-recorded tv show, i get an empty dialog box titled
"error" with an ok button which dismisses the dialog.

i can watch the nuv file through xmbc's my video directly.

[the solution to my problem is at the bottom of this message.]

mythtv backend:
knoppmyth r4v5 (mythtv 0.16 + pvr-350) configured per the note section in
http://www.mysettopbox.tv/doc.html#frontend

mythtv frontend:
xmbc-1.1
mythtv@xbmc v0.14 is a python module for xbmc.
http://changeling.ixionstudios.com/xbmc/xbmc_mythtv-0.14.tar.bz2

mytv.xml contents:
Quote:<mytv>
<host>ca810e</host>
<database>mythconverg</database>
<port>3306</port>
<user>mythtv</user>
<password>mythtv</password>
<mythtvport>6543</mythtvport>
<mythtvstatusport>6544</mythtvstatusport>
<mythtvprotocol>13</mythtvprotocol>
<pathprefix>smb://mythtv:mythtv@%h/myth/tv</pathprefix>
<localcopypath>f:\videos\</localcopypath>
</mytv>

enable debug logging in xbmc:
Quote:<loglevel>0</loglevel>

xmbc.log contents:
Quote:05-11-2004 09:59:29 info -->python initialized<--
05-11-2004 09:59:29 info
05-11-2004 09:59:29 info creating recorded show listing
05-11-2004 09:59:29 info traceback (most recent call last):
05-11-2004 09:59:29 info file "q:\scripts\mytvshow.py", line 463, in ?
05-11-2004 09:59:29 info parentwin = gui.basewindow( 'parent' )
05-11-2004 09:59:29 info typeerror: an integer is required
05-11-2004 09:59:31 info creating recorded show listing
05-11-2004 09:59:33 info > loadrecordedshows
05-11-2004 09:59:33 info < loadrecordedshows
05-11-2004 09:59:33 info > setupshownavcontrols
05-11-2004 09:59:33 info < setupshownavcontrols
05-11-2004 09:59:37 info chanid=[1002] starttime=[2004-11-03t22:00:00] endtime=[2004-11-03t23:00:00]
05-11-2004 09:59:37 info chanid=[1002] starttime=[2004-11-04t21:00:00] endtime=[2004-11-04t22:00:00]
05-11-2004 09:59:37 info showpath=[smb://mythtv:[email protected]/myth/tv/1002_20041104210000_20041104220000.nuv]
05-11-2004 09:59:41 info traceback (most recent call last):
05-11-2004 09:59:41 info file "q:\scripts\mytvrecorded.py", line 260, in oncontrol
05-11-2004 09:59:41 info showdetails.init( self, self.rowinfo[rowindex] )
05-11-2004 09:59:41 info file "q:\scripts\mytvshow.py", line 149, in init
05-11-2004 09:59:41 info self.showpathinfo = getfileinfo( self.showpath )
05-11-2004 09:59:41 info file "q:\scripts\mytvshow.py", line 76, in getfileinfo
05-11-2004 09:59:41 info addrs = nmb.netbios().gethostbyname( host )
05-11-2004 09:59:41 info file "q:\python\lib\nmb.py", line 190, in gethostbyname
05-11-2004 09:59:41 info return self.nameserver, type, scope, timeout)
05-11-2004 09:59:41 info file "q:\python\lib\nmb.py", line 230, in __queryname
05-11-2004 09:59:41 info raise netbiostimeout
05-11-2004 09:59:41 info netbiostimeout
05-11-2004 09:59:47 info cleaning up
05-11-2004 09:59:51 notice stop all

solution: replace %h in mytv.xml <pathprefix> with the value set for <host>,
"ca810e" in my case.
i have an internal dns server and a wins samba server for my lan.
%h expanded to ca810e.paonet.org from dns while the netbios name is just ca810e.


- snotty6969 - 2004-11-13

Quote:.......
anyhow, i still have a little problem using it (but it doesn't seems to be xbmc myth related).

if i try to watch a recorded show, at best i have some weird sounds that is video sound with some extra noise. at worst, it doesn't do anything.

i got this if i try to launch a show from xbmc myth, but it does the same if i launch directly the file from the smb share from the video selection... i double checked, nuv files are associated with video (i run xbmc 1.1.0, latest available from avalaunch, mplayer 1.0pre5-3.3.3 of 2004/10/17)

any clue?

thanks in advance, and thanks one more time for this wonderfull feature.

hi all,
first of all thanks for the wonderfull work!
i'm wondering how i can solve the above mentioned trouble i'm also experiencing?
i'm having mythtv 0.16 (debian-unstable sources), xbmc 1.1.0. and xbmc-myth 0.14. i thought it were my capture cards. but i installed a mythtv-frontend on a seperate computer and the sound works fine.

does anybody have any idea on how to solve this? because i'm not going to purchase a pvr-x50-card Huh

thanks a lot & have fun.
p.s. i'm not sure what mpllayer has to do with it or how i can solve this using/patching mplayer? i know xbmc is using/helped by mplayer related stuff/code. to what extend i don't know.


- sigtom - 2004-11-14

if you arent going to add a card that does hardware mpeg-2 encoding, then you cant use this script in xbmc, as xbmc cant play the software encoded mpeg-4 or rtjpeg wrapped in the .nuv extension files, it can only play the .nuv files that are actually mpeg-2, which is what you get with a pvr-x50 card.


- snotty6969 - 2004-11-14

thank you very much for this information.
[edit]
* snotty6969 thought mpeg4 encoding would solve this like mpeg2 with pvr-x50...
[/edit]

i guess i'll have to wait untill the "make mplayer myth-file compatible" patch gets into xbmc?
to bad for me. love the script though.

thanks all!!


- sigtom - 2004-11-15

the mpeg 4 encoded .nuv files that myth makes isnt a regular mpeg-4 stream, its been modified by myth, so i dont ever see there being a patch for something like that, so your best bet is to install linux and then myth on the xbox, search mythtv.org for the xbox mythtv distro.


- elminster - 2004-11-15

to follow on from choids post has anyone found a fix to the python scripts when protocol 14 is being used?


- xerxes3rd - 2004-11-15

(sigtom @ nov. 15 2004,03:09 Wrote:the mpeg 4 encoded .nuv files that myth makes isnt a regular mpeg-4 stream, its been modified by myth, so i dont ever see there being a patch for something like that, so your best bet is to install linux and then myth on the xbox, search mythtv.org for the xbox mythtv distro.
while that is true, mythfrontend uses mplayer to play back the recorded streams, so it must be supported somehow in mplayer.


- ilovetechno - 2004-11-15

can anyone post some screenshots of the mythtv frontend for the xbox please?

i am thinking of installing mythtv for recording options in xmbc.


- Livin - 2004-11-30

is there a feature list with some screen shots for this script? i'm currently looking at finding a pvr solution to integrate.

thanks!


- tbdombrosky - 2004-12-01

it can't do live tv at the moment so you might want to consider that in your decision.


- windisch - 2004-12-05

i am having trouble watching a show with the script and accessing a show in the tv schedule. it says error, but no error message. i have everything configured. i'm just not sure where the path prefix smb share needs to point to. the readme file doesn't explain it, and i see no website for help. is there a website for this script? does the mythtv smb share need to point to the recordings folder? also the gui skin does not show the mytv button on xbmc. any help would be appreciated.

thanks


- nummer55 - 2004-12-08

will this work with for example the msi vox (usb2.0) tv tuner (philips chipset)? i only got a laptop and would love to be able to record shows via my laptop on my xbox. anyone knows?


- windisch - 2004-12-16

(windisch @ dec. 05 2004,04:13 Wrote:i am having trouble watching a show with the script and accessing a show in the tv schedule. it says error, but no error message. i have everything configured. i'm just not sure where the path prefix smb share needs to point to. the readme file doesn't explain it, and i see no website for help. is there a website for this script? does the mythtv smb share need to point to the recordings folder? also the gui skin does not show the mytv button on xbmc. any help would be appreciated.

thanks
noone has any idea? or knows where else i can look for help on this?