[dev] CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: [dev] CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) (/showthread.php?tid=119865)
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
- europorsche914 - 2012-02-06 03:37
hey mcheng I realize you got a lot on your plate but I noticed an issue in the xbmc plugin, when changing from an sd channel to an hd channel or for that matter any channel that did not have the same resolution as the previous channel, what occurs is that the video will be improperly scaled and be totally unwatchable. I think the issue apparently comes down to vlc not being able to handle a stream that changes resolution mid-stream. I have a work around but it is a crude one, it is 2 lines of code that tell the plugin to stop playing if it is playing before changing the channel and then start playing again, The drawback is it shows the program menu in between every channel change but it works perfectly otherwise. Below is the code I used in bold its should go on line 330 of the Overlay.py, maybe youll have an idea to make it work a little nicer lol.
- europorsche914 - 2012-02-06 23:56
Found some issues running the plugin in a fresh install of ubuntu 11.10 and xbmc dharma..
The first error prevented the script from running at all and involved adding some code to Overlay.py (and removing json from the import line located below my code). When importing json library we need to add compatibility to different versions of Python by using this code (in bold)
The second issue is that the epg locks up completely and doesnt allow any keyboard input causing me to force quit xbmc... error log says there is an attribute error on line 408 of EPGWindow.py
Im gonna continue looking into issue 2 to see if I can solve it.
These errors in this post seem to be only occuring on Dharma on now both windows and ubuntu but on my other windows box running eden does not have these issues...
- mcheng89 - 2012-02-07 02:50
europorsche914 Wrote:Found some issues running the plugin in a fresh install of ubuntu 11.10 and xbmc dharma..
I actually didnt know much about python before starting the plugin. I leaned most of what I know after going through most of the original PseudoTV plugin, so I appreciate the help. Ill put in your changes for the next release.
As for progress, I got stuck a bit with a crash in the program, but it looks like it was related to the upnp library terminating threads if I use their stop function. That should be fixed now...
- europorsche914 - 2012-02-07 04:01
Yea I have primarily a c++ background and basically no python but after going through your code and some research thats what I realized would be a quick solution to make it work.
The self.player.stop() method works in eden (during channel changes it still shows the main menu when going directly to the channel but when selecting by the epg it shows a black screen)
I just upgraded my ubuntu xbmc to eden beta 2 and no longer is the import simplejson as json method needed but doesnt hurt to have that simple library check. Also the nonresponsive epg issue is resolved in eden beta 2. Not sure what the issue is other than some researching determined it maybe an issue with python itself.
As for the upnp ceton control program crashing, I do have it crash everyonce in a rare while but could be caused by the ceton being unresponsive sometimes (ex: cannot find program XXXX but if you retune the channel via the ceton webpage it then finds it..) Thanks for your hard work Ill keep looking for solutions to issues as I come across them! -Justin
EDIT: Hey would you be interested in creating a free github repo so we can have a way to track changes/record problems? If you want me to set one up let me know!
- mcheng89 - 2012-02-08 03:54
europorsche914 Wrote:Yea I have primarily a c++ background and basically no python but after going through your code and some research thats what I realized would be a quick solution to make it work.
I just set one up: https://github.com/CetonTV
EDIT: EPG parsing is done
- Killervette - 2012-02-08 20:36
initial testing does work with the USB version of the Ceton tuner.
- Killervette - 2012-02-09 00:25
So I get an error contacting server in xbmc. I can issue commands through the web interface and it works fine. It does launch windows media player instead of Vic to play the stream when doing http commands. Can't get it going in xbmc though
- Killervette - 2012-02-09 03:46
I have the following in the cetontv settings in xbmc
127.0.0.1 for ip
8555 for control port
Is that right. It matches the config file
- mcheng89 - 2012-02-09 03:50
Killervette Wrote:I have the following in the cetontv settings in xbmc
Are you running xbmc on the same computer running the server?
- Killervette - 2012-02-09 03:53
mcheng89 Wrote:Are you running xbmc on the same computer running the server?
I can play the stream in vlc just fine. I just can't get it to show in xbmc