Kodi Community Forum
[RELEASE] MythBox for XBMC - a MythTV Front-end Python Script for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] MythBox for XBMC - a MythTV Front-end Python Script for XBMC (/showthread.php?tid=43115)



- divingmule - 2010-08-03

I really would like to try the RC2, but I'm using the nightlies and SVN. So, I guess, this is another request for add-on support.Nod


- avus m3 - 2010-08-03

Redneck Wrote:I really would like to try the RC2, but I'm using the nightlies and SVN. So, I guess, this is another request for add-on support.Nod

We need to setup a good donation system to motivate developers. If this was solidly working in XBMC with comskip and compression I would gladly pay money for that. Then my htpc would be complete with "1 program to manage them all".


- divingmule - 2010-08-04

I tried to set this up and have the same results as tmbomber. Here is a log if anyone has any ideas.
http://pastebin.org/447610


- moreati - 2010-08-05

I'm Using MythBox head (rev e2d04332dab1), against MythTV 0.23 on Ubuntu 10.04. Live tv and recordings are working, but subtitles (aka closed captions) are on and I can't figure out how to stop them. The same channels and recordings play without subtitles through mythfrontend and normal XBMC myth://... mode. Any ideas how I can remove/hide them in MythBox?

EDIT: My mistake the myth:// shows the subtitles too. Now to figure out how to disable that..


- draggy - 2010-08-07

I'm running xbmc camelot on a x86 lucid box, with a svn (hg) version of this awesome plugin. I've installed ffmpeg, and mounted my recordings directory. I have a mythbackend on another local computer, version 0.23. I've tested the backend with another frontend, and confirmed that I can watch tv, etc.

In mythbox, I've setup the hostname of the backend, and the un/pw of the database, and it tests correctly.
But when navigating the menus, and even just trying to setup the config, the GUI is excruciatingly slow.

It takes at least 2 minutes from the time that I press the enter key to the time that the text entry popup comes up when trying to enter a hostname in the config. navigating the menu that's up currently is nice and fast, but changing the view either back to another menu, or opening up a popup takes forever.

I stuck with it, hoping that it will get better, and setup mythbox. I went back to the main menu after testing the connection and tried to watch tv. It pulls up the guide, but when I try to watch a channel, it eventually just times out.

I decided to give this a go on a windows 7 machine. I will admit it is much faster then the linux version, but I still couldn't watch tv, it just timed out.

Can anyone tell me why this is so extremely slow on linux and why it's timing out when I try to watch tv?


- analogue - 2010-08-09

draggy Wrote:I'm running xbmc camelot on a x86 lucid box, with a svn (hg) version of this awesome plugin. I've installed ffmpeg, and mounted my recordings directory. I have a mythbackend on another local computer, version 0.23. I've tested the backend with another frontend, and confirmed that I can watch tv, etc.

In mythbox, I've setup the hostname of the backend, and the un/pw of the database, and it tests correctly.
But when navigating the menus, and even just trying to setup the config, the GUI is excruciatingly slow.

It takes at least 2 minutes from the time that I press the enter key to the time that the text entry popup comes up when trying to enter a hostname in the config. navigating the menu that's up currently is nice and fast, but changing the view either back to another menu, or opening up a popup takes forever.

I stuck with it, hoping that it will get better, and setup mythbox. I went back to the main menu after testing the connection and tried to watch tv. It pulls up the guide, but when I try to watch a channel, it eventually just times out.

I decided to give this a go on a windows 7 machine. I will admit it is much faster then the linux version, but I still couldn't watch tv, it just timed out.

Can anyone tell me why this is so extremely slow on linux and why it's timing out when I try to watch tv?
I've got a suspicion it has something to do with the video card. Doesn't seem to be a problem on NVidia systems. Any chance you have an ATI or Intel video GPU?


- analogue - 2010-08-09

Redneck Wrote:I tried to set this up and have the same results as tmbomber. Here is a log if anyone has any ideas.
http://pastebin.org/447610
AttributeError: 'module' object has no attribute 'Language'

is a known issue w/ trunk. Working on it...


- draggy - 2010-08-09

analogue Wrote:I've got a suspicion it has something to do with the video card. Doesn't seem to be a problem on NVidia systems. Any chance you have an ATI or Intel video GPU?

I have a 9400GT, which I use for vdapu, and a Athlon 3000+ 1.8GHz, which is plenty fast for all of XBMC's interfaces and other plugins.


- analogue - 2010-08-10

analogue Wrote:AttributeError: 'module' object has no attribute 'Language'

is a known issue w/ trunk. Working on it...

Now works with Dharma

http://code.google.com/p/mythbox/source/detail?r=75efa280922aa9195a8787fdb6313b4757413644


- analogue - 2010-08-10

draggy Wrote:I have a 9400GT, which I use for vdapu, and a Athlon 3000+ 1.8GHz, which is plenty fast for all of XBMC's interfaces and other plugins.

Well there goes that theory....

Post your xorg.conf. Have you tried turning compositing off to see if it makes a difference?


- draggy - 2010-08-10

I would think it was the gpu, but the menu itself isn't slow at all. Navigating is just as fast as any of XBMC's GUIs, What takes so long is the loading of said menu or GUI item. Once it's loaded, I can navigate the current menu perfectly.

However, it's not just the menu. If I set a setting, it takes a good while before the setting will change on the config screen. If I change localhost to an ip or hostname, it takes a good minute or 2 before it even reflects my change on the settings screen.


- divingmule - 2010-08-10

Working nicely on Windows7 Dharma r32477.
Commercial skipping would always fail on my Tonight Show recordings with "myth://" Mythbox is skipping right on time.
Thanks analogue


- draggy - 2010-08-14

So...I was mistaken, I was running karmic, not lucid. So I've updated to lucid, and now the script is fast! I have no idea why, it's the same config and same gfx driver (installed from the repo this time), but it works!....sort of....

Still can't watch live tv, all I get in the debug log is:
Code:
DEBUG | mythbox.inject | conn.py | MainThread | Line 117 | --> injected conn <mythbox.mythtv.conn.Connection object at 0xa927dc4> into <thread._local object at 0xa607290>
DEBUG | mythbox.inject | conn.py | MainThread | Line 93 | threading.local() already allocated
DEBUG | mythbox.inject | conn.py | MainThread | Line 108 | Skipping acquire resource
DEBUG | mythbox.wire | conn.py | MainThread | Line 1160 | write -> 23      GET_FREE_RECORDER_COUNT
DEBUG | mythbox.wire | conn.py | MainThread | Line 1117 | retMsg: [8] 1
DEBUG | mythbox.wire | conn.py | MainThread | Line 1122 |  i=0 n=1
DEBUG | mythbox.wire | conn.py | MainThread | Line 1126 | total read = 1
DEBUG | mythbox.wire | conn.py | MainThread | Line 1128 | read  <- 2
DEBUG | mythbox.perf | util.py | MainThread | Line 324 | TIMER: getNumFreeTuners took 0.17 seconds
DEBUG | mythbox.inject | db.py | MainThread | Line 102 | threading.local() already allocated
DEBUG | mythbox.inject | db.py | MainThread | Line 132 | Going to acquire resource
DEBUG | mythbox.inject | db.py | MainThread | Line 138 | --> injected db <mythbox.mythtv.db.MythDatabase object at 0xa44c6ec> into <thread._local object at 0xa607290>
DEBUG | mythbox.perf | util.py | MainThread | Line 324 | TIMER: getTuners took 0.00 seconds
DEBUG | mythbox.inject | db.py | MainThread | Line 147 | --> removed db <mythbox.mythtv.db.MythDatabase object at 0xa44c6ec> from <thread._local object at 0xa607290>
DEBUG | mythbox.inject | conn.py | MainThread | Line 93 | threading.local() already allocated
DEBUG | mythbox.inject | conn.py | MainThread | Line 108 | Skipping acquire resource
DEBUG | mythbox.core | conn.py | MainThread | Line 457 | backend is a slave..creating new connection
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 379 | key=680x1000
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 381 | idkey = 33154
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 383 | bannerPath = http://www.thetvdb.com/banners/posters/71998-1.jpg
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 381 | idkey = 122371
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 383 | bannerPath = http://www.thetvdb.com/banners/posters/71998-2.jpg
DEBUG | mythbox.cache | filecache.py | Thread-15 | Line 87 | Cache MISS for fileurl: http://www.thetvdb.com/banners/posters/71998-1.jpg   filepath: /home/xbmc/.xbmc/userdata/script_data/MythBox/httpCache/3c9cf29965632e60247c04f0d8444229
DEBUG | mythbox.cache | filecache.py | Thread-1 | Line 87 | Cache MISS for fileurl: http://www.thetvdb.com/banners/posters/71998-2.jpg   filepath: /home/xbmc/.xbmc/userdata/script_data/MythBox/httpCache/29dc5ddba32b7315242c104cfe26d65b
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 379 | key=680x1000
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 381 | idkey = 38053
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 383 | bannerPath = http://www.thetvdb.com/banners/posters/70571-1.jpg
DEBUG | mythbox.cache | filecache.py | Thread-15 | Line 87 | Cache MISS for fileurl: http://www.thetvdb.com/banners/posters/70571-1.jpg   filepath: /home/xbmc/.xbmc/userdata/script_data/MythBox/httpCache/b8d1c615c92ad7ad321e5b13d79e1125
ERROR | mythbox.ui | livetv.py | MainThread | Line 326 | timed out

confirmed that the backend was running and I could watch tv with a mythtv frontend on the same machine just minutes before. My settings also pass the test in mythbox


- analogue - 2010-08-22

draggy Wrote:So...I was mistaken, I was running karmic, not lucid. So I've updated to lucid, and now the script is fast! I have no idea why, it's the same config and same gfx driver (installed from the repo this time), but it works!....sort of....

Still can't watch live tv, all I get in the debug log is:
Code:
DEBUG | mythbox.inject | conn.py | MainThread | Line 117 | --> injected conn <mythbox.mythtv.conn.Connection object at 0xa927dc4> into <thread._local object at 0xa607290>
DEBUG | mythbox.inject | conn.py | MainThread | Line 93 | threading.local() already allocated
DEBUG | mythbox.inject | conn.py | MainThread | Line 108 | Skipping acquire resource
DEBUG | mythbox.wire | conn.py | MainThread | Line 1160 | write -> 23      GET_FREE_RECORDER_COUNT
DEBUG | mythbox.wire | conn.py | MainThread | Line 1117 | retMsg: [8] 1
DEBUG | mythbox.wire | conn.py | MainThread | Line 1122 |  i=0 n=1
DEBUG | mythbox.wire | conn.py | MainThread | Line 1126 | total read = 1
DEBUG | mythbox.wire | conn.py | MainThread | Line 1128 | read  <- 2
DEBUG | mythbox.perf | util.py | MainThread | Line 324 | TIMER: getNumFreeTuners took 0.17 seconds
DEBUG | mythbox.inject | db.py | MainThread | Line 102 | threading.local() already allocated
DEBUG | mythbox.inject | db.py | MainThread | Line 132 | Going to acquire resource
DEBUG | mythbox.inject | db.py | MainThread | Line 138 | --> injected db <mythbox.mythtv.db.MythDatabase object at 0xa44c6ec> into <thread._local object at 0xa607290>
DEBUG | mythbox.perf | util.py | MainThread | Line 324 | TIMER: getTuners took 0.00 seconds
DEBUG | mythbox.inject | db.py | MainThread | Line 147 | --> removed db <mythbox.mythtv.db.MythDatabase object at 0xa44c6ec> from <thread._local object at 0xa607290>
DEBUG | mythbox.inject | conn.py | MainThread | Line 93 | threading.local() already allocated
DEBUG | mythbox.inject | conn.py | MainThread | Line 108 | Skipping acquire resource
DEBUG | mythbox.core | conn.py | MainThread | Line 457 | backend is a slave..creating new connection
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 379 | key=680x1000
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 381 | idkey = 33154
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 383 | bannerPath = http://www.thetvdb.com/banners/posters/71998-1.jpg
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 381 | idkey = 122371
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 383 | bannerPath = http://www.thetvdb.com/banners/posters/71998-2.jpg
DEBUG | mythbox.cache | filecache.py | Thread-15 | Line 87 | Cache MISS for fileurl: http://www.thetvdb.com/banners/posters/71998-1.jpg   filepath: /home/xbmc/.xbmc/userdata/script_data/MythBox/httpCache/3c9cf29965632e60247c04f0d8444229
DEBUG | mythbox.cache | filecache.py | Thread-1 | Line 87 | Cache MISS for fileurl: http://www.thetvdb.com/banners/posters/71998-2.jpg   filepath: /home/xbmc/.xbmc/userdata/script_data/MythBox/httpCache/29dc5ddba32b7315242c104cfe26d65b
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 379 | key=680x1000
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 381 | idkey = 38053
DEBUG | mythbox.fanart | fanart.py | Thread-15 | Line 383 | bannerPath = http://www.thetvdb.com/banners/posters/70571-1.jpg
DEBUG | mythbox.cache | filecache.py | Thread-15 | Line 87 | Cache MISS for fileurl: http://www.thetvdb.com/banners/posters/70571-1.jpg   filepath: /home/xbmc/.xbmc/userdata/script_data/MythBox/httpCache/b8d1c615c92ad7ad321e5b13d79e1125
ERROR | mythbox.ui | livetv.py | MainThread | Line 326 | timed out

confirmed that the backend was running and I could watch tv with a mythtv frontend on the same machine just minutes before. My settings also pass the test in mythbox
Try trunk (assuming you're using RC1)


- linuxluemmel - 2010-08-23

Is Mythbox running allready as addon ?
On my main-station I do run 9.11 until dharma comes out (13 tickets open ... )
Regards
hans

BTW : Could I allready checkout a svn version and translate the strings.xml to german ?