nashve / mythbox

Automatically exported from code.google.com/p/mythbox
GNU General Public License v2.0
0 stars 1 forks source link

MythTV 0.24 support #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using mythbox (latest svn, and earlier) with MythTV 0.24

What is the expected output? What do you see instead?
It should connect

What version of the product are you using? On what operating system?
mythbox RC2 and svn - MythTV 0.24

Please provide any additional information below.
The new MythTV version (0.24) has added some token stuff to the connection 
mechanism, and is therefore not working with mythbox anymore.

Original issue reported on code.google.com by kri...@gmail.com on 16 Nov 2010 at 8:49

GoogleCodeExporter commented 8 years ago
Can't really say it's a defect, since it's not mentioned as supported on the 
front page of the project - more of a wish, really :)

Original comment by kri...@gmail.com on 16 Nov 2010 at 8:50

GoogleCodeExporter commented 8 years ago
Can we pleeeze have .24 support!

Original comment by bedl...@gmail.com on 17 Nov 2010 at 11:06

GoogleCodeExporter commented 8 years ago
I tried RC3 and had no luck connecting to a MythTV 0.24 backend. Looking at the 
logs, I think the connection happened, and MythBox gave up when MythBackend 
reported its protocol as 63. I tried modifying conn.py to connect regardless 
the protocol mismatch, but unfortunately don't really know Python. Ah well, I'm 
sure the next version will support it, but if anyone can offer up a hack to 
allow MythBox to connect to 0.24 even with limited functionality, I'd be happy.

Original comment by yehezkiy...@gmail.com on 24 Nov 2010 at 8:01

GoogleCodeExporter commented 8 years ago
From the mythdroid (android remote project), I found that for protocol 63, you 
have to send a protocol token as well as the version, to get connected. The 
token for protocol 63 is, as far as I can see: 3875641D

So in conn.py, you can maybe add the token in negotiateProtocol:

    @timed            
    def negotiateProtocol(self, s, clientVersion):
        """ 
        @return: version of the MythTV protocol the server supports
        @rtype: int 
        @raise ProtocolException: when clientVersion is less than serverVersion
        """
        reply = self._sendRequest(s, ['MYTH_PROTO_VERSION %s' % clientVersion])

Change to:
 reply = self._sendRequest(s, ['MYTH_PROTO_VERSION %s 3875641D' % clientVersion])

I'm unfortunately not at home, so can't test it atm.

Original comment by kri...@gmail.com on 24 Nov 2010 at 8:32

GoogleCodeExporter commented 8 years ago
For what it's worth, that didn't work for me. 

Hopefully support for the new protocol will make its way into RC4. 

Original comment by yehezkiy...@gmail.com on 25 Nov 2010 at 4:49

GoogleCodeExporter commented 8 years ago
I can tell you 0.24 support is in the works, but is probably a couple weeks 
away. Support for dharma w/ 0.23 is shaping up and getting Mythbox in the 
official addon repo is right around the corner.

Original comment by semir.pa...@gmail.com on 25 Nov 2010 at 3:32

GoogleCodeExporter commented 8 years ago
Good to know, thanks :)

Original comment by kri...@gmail.com on 25 Nov 2010 at 3:33

GoogleCodeExporter commented 8 years ago
I can confirm that the latest dev code of mythbox in the mercurial repo works 
well with mythtv 0.24 - great work and many thanks!

I'm running mythtv 0.24 +fixes on ubuntu 10.10 maverick, and xbmc dharma rc1. I 
installed the mythbox add-on via xbmc then dropped to a shell, and copied the 
latest source code over the top of the add-on, and restarted xbmc.

The only thing which seems not to work is generating thumbnails. Playback and 
browsing features are working well. Once again many thanks!

Original comment by oliv...@gmail.com on 12 Dec 2010 at 10:31

GoogleCodeExporter commented 8 years ago
I just pushed a fix for the broken thumbnail generation. give it a try..

Original comment by semir.pa...@gmail.com on 12 Dec 2010 at 3:57

GoogleCodeExporter commented 8 years ago
Good work! Recordings are working for me, but live TV just doesn't respond when 
I try to watch any channel. mythbackend log reports:
2010-12-12 20:23:54.646 MainServer::HandleVersion - Client speaks protocol 
version 8 but we speak 63!
2010-12-12 20:23:54.647 MainServer, Warning: Unknown socket closing 
MythSocket(0xffffffffb6196690)
2010-12-12 20:23:54.647 MainServer::HandleVersion - Client did not pass 
protocol token. Refusing connection!
2010-12-12 20:23:54.648 MainServer, Warning: Unknown socket closing 
MythSocket(0xffffffffb6159940)

Anyone else having this issue?

Original comment by kri...@gmail.com on 12 Dec 2010 at 7:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
In some folder, do a hg clone https://mythbox.googlecode.com/hg/ mythbox
Copy the contents of this folder to the mythbox-addon folder:

cp -r mythbox/* ̃/.xbmc/addons/script.mythbox/

Original comment by kri...@gmail.com on 12 Dec 2010 at 7:32

GoogleCodeExporter commented 8 years ago
Thanks Krizze.  I figured it out.  I decided to take it for a spin and I am 
getting the same protocol error on Live TV (when I go into the guide and click 
on a show) and when I go to "Live TV" it hangs (mythbackend logs as ERROR: 
Localfilepath unable to find local path for nbc.jpg)  (My channel icons are in 
/var/lib/mythtv/channelicons.  I could symlink if I knew where it was looking). 

Analogue - Sorry If I'm messing up your commend board and you are getting 
unnecessary emails from me.   I think I got the hang of it now!   
Incredible add-on by the way. 

Original comment by mrhegst...@gmail.com on 12 Dec 2010 at 7:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am also having the same problem as krizze. Trying to watch livetv throws 
error. 
xbmc rc2 - windows 7
mythbox latest clone. 
Mythbuntu 10.10, mythtv .24

From xbmc log.
16:15:24 T:3544 M:956895232  NOTICE: DVDPlayer: Opening: 
myth://mythtv:XX@192.168.10.70:6543/channels/49_4.ts
16:15:24 T:3544 M:956895232 WARNING: CDVDMessageQueue(player)::Put 
MSGQ_NOT_INITIALIZED
16:15:24 T:840 M:956895232  NOTICE: Creating InputStream
16:15:24 T:840 M:956592128   ERROR: XFILE::CMythSession::GetControl - unable to 
connect to server on 192.168.10.70:6543
16:15:24 T:840 M:956563456   ERROR: CDVDPlayer::OpenInputStream - error opening 
[myth://mythtv:XX@192.168.10.70:6543/channels/49_4.ts]
16:15:24 T:840 M:956563456  NOTICE: CDVDPlayer::OnExit()
16:15:24 T:840 M:956563456  NOTICE: CDVDPlayer::OnExit() deleting input stream
16:15:24 T:3544 M:956571648   ERROR: Playlist Player: skipping unplayable item: 
0, path [myth://mythtv:XX@192.168.10.70:6543/channels/49_4.ts]
16:15:24 T:3544 M:956116992  NOTICE: CDVDPlayer::CloseFile()
16:15:24 T:3544 M:956116992 WARNING: CDVDMessageQueue(player)::Put 
MSGQ_NOT_INITIALIZED
16:15:24 T:3544 M:956116992  NOTICE: DVDPlayer: waiting for threads to exit
16:15:24 T:3544 M:956116992  NOTICE: DVDPlayer: finished waiting

From mythbackend log.
2010-12-12 16:12:19.278 MainServer::HandleVersion - Client speaks protocol 
version 8 but we speak 63!
2010-12-12 16:12:19.332 MainServer, Warning: Unknown socket closing 
MythSocket(0x7f80d0172d00)
2010-12-12 16:12:19.336 MainServer::HandleVersion - Client did not pass 
protocol token. Refusing connection!
2010-12-12 16:12:19.444 MainServer, Warning: Unknown socket closing 
MythSocket(0x7f80d01711e0)

Original comment by dale.rob...@gmail.com on 12 Dec 2010 at 10:47

GoogleCodeExporter commented 8 years ago
xbmc rc2 doesn't support talking to an 0.24 backend for livetv.  as soon as 
xbmc supports it, so will mythbox

Original comment by semir.pa...@gmail.com on 14 Dec 2010 at 1:29

GoogleCodeExporter commented 8 years ago

Original comment by semir.pa...@gmail.com on 14 Dec 2010 at 1:29

GoogleCodeExporter commented 8 years ago
Do you know who we can reach out to on the xbmc forums that normally works on 
that part of it?  BTW - why no "Donate" button? 

Original comment by mrhegst...@gmail.com on 15 Dec 2010 at 1:24

GoogleCodeExporter commented 8 years ago
dtierney (not sure on the spelling) seems to be the most active wrt mythtv 
support.  maybe i'll put up a donate button now :-)

Original comment by semir.pa...@gmail.com on 15 Dec 2010 at 2:05

GoogleCodeExporter commented 8 years ago
I found a patch that was added to SVN here: http://trac.xbmc.org/ticket/10535
Unfortunately it was added to the version 11 milestone, so I'm not sure if it 
will make it into version 10.

You were close, looks like his name is dteirney.

Original comment by windi...@gmail.com on 15 Dec 2010 at 3:34

GoogleCodeExporter commented 8 years ago
FYI, you could find more informations in this thread (last pages) : 
http://forum.xbmc.org/showthread.php?t=82015

Original comment by ddek...@gmail.com on 15 Dec 2010 at 8:15

GoogleCodeExporter commented 8 years ago
Fix will be released in 1.0.1 (except for LiveTV support) which will require 
the next version of XBMC.

Original comment by semir.pa...@gmail.com on 1 Jan 2011 at 8:57

GoogleCodeExporter commented 8 years ago
I just posted a patch to xbmc on their trac and noted it on the xbmc forum so 
livetv now also works with svn of xbmc for 0.24 mythbackend (fixes+trunk).. 
Enjoy :)  

Original comment by jm.macla...@gmail.com on 18 Jan 2011 at 12:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I compiled from SVN today 1/27/11. I am able to get the channel list, but when 
I hit enter and try to view that channel it just hangs with the green circle 
going around and "working" in the lower right.  It just stays like that 
forever. 
I looked at your ticket on trak and it looks like your still working on it.  
BTW I am using 2 PVR250's so I dont know if that has anything to do with it.   
It looks like you are testing with HDHomerun or DVB tuners.  
Let me know if there is anything I can do to help/test. 

Original comment by mrhegst...@gmail.com on 27 Jan 2011 at 10:27

GoogleCodeExporter commented 8 years ago
For anyone wanting to view that trac on xbmc it is here: 

http://trac.xbmc.org/ticket/11082

Original comment by mrhegst...@gmail.com on 2 Feb 2011 at 11:03

GoogleCodeExporter commented 8 years ago
Ok! dteirney has submitted a patch for this on the trac ticket.  Does this mean 
that we can expect to see Live TV support in mythbox for 2.4.1 backend?

Original comment by cal...@speechnetworks.com.au on 1 Jun 2011 at 11:15

GoogleCodeExporter commented 8 years ago
Oh - please!.. Please! :-)

Original comment by steve.sm...@gmail.com on 2 Jun 2011 at 11:11

GoogleCodeExporter commented 8 years ago
MythBox 1.0.3 already works with a 0.24 mythtv backend for live tv if you're 
running the trunk version of XBMC.  Most folks don't want to go through that 
hassle of compiling XBMC from scratch in which case you'll have to wait for the 
next official XBMC release. It really is up to you :-) 

Original comment by semir.pa...@gmail.com on 2 Jun 2011 at 9:13

GoogleCodeExporter commented 8 years ago
Hmm. I tried the latest unstable build (amd64) for XBMC, but not working with 
LiveTV... - is that the same as the "trunk" version? (sorry if it's a silly 
question)

Original comment by steve.sm...@gmail.com on 3 Jun 2011 at 4:31

GoogleCodeExporter commented 8 years ago
Sounds like you're getting your build from somewhere else (Ubuntu PPA?) rather 
than building it yourself. I have a continuous build of the default branch at 
this git URL which is trunk to me and it works fine (well, last time i tried a 
couple weeks ago). I'll fire up the virtual machine and see if that is still 
the case...

https://github.com/xbmc/xbmc.git

Original comment by semir.pa...@gmail.com on 3 Jun 2011 at 6:08

GoogleCodeExporter commented 8 years ago
Well, looks like XBMC trunk as of revision 
6eeb370aa917e8af8bf1f68f1a8a22ae781d0f67 has broken both 0.23 and 0.24 livetv. 
Not much I can do about that :-(

Original comment by semir.pa...@gmail.com on 3 Jun 2011 at 6:45

GoogleCodeExporter commented 8 years ago
Oh - ok.. At least I know it's not me being thick now! (I built myself too, 
just to be sure) - I'm just getting the sources from github. git clone 
git://github.com/xbmc/xbmc.git

Original comment by steve.sm...@gmail.com on 4 Jun 2011 at 10:11

GoogleCodeExporter commented 8 years ago
LiveTV should now work with .24 according to dteirney 
(http://forum.xbmc.org/showpost.php?p=814374&postcount=5). Haven't tried myself 
yet though.

Original comment by daniel.m...@gmail.com on 14 Jun 2011 at 5:48

GoogleCodeExporter commented 8 years ago
LivetV works fine with the latest svn build for xbmc and 1.0.4 mythbox.
I have one question if anyone knows the answer. Does anyone know how to move 
the mythbox xbmc plugin under the Video->Files menu ? thanks..

Original comment by mwa...@gmail.com on 30 Jun 2011 at 3:39