XBMC Community Forum
New MythTV add-on using libcmyth - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: PVR Development (/forumdisplay.php?fid=136)
+--- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694)



- Blacksheep70 - 2011-11-21 17:42

Hi,

I've been using the MythTV addon in XBMC for a while now without any great issues.

But since a week or some days more I got the popup message that a PVR client needs to be enabled (whenever the PVR client is already enabled). Hitting enter (for OK) and ESC to exit from the PVR client settings "solve" the problem... But would be much more nice if the popup only appears if the settings really not set Wink

Any hints? Is there a timeout I need to adjust? I guess that any service is not ready yet.

FYI: The system boots very fast and per autostart directly into XBMC.

Regards
Blacksheep


- Jimmer - 2011-11-21 18:43

Hi just a quick note on building from rev 184512d

Builds fine on my maverick box, but under Hardy on my ATV1, I get:

Code:
make[1]: Leaving directory `/home/atv/src/xbmc_tsp/addons/skin.confluence/media'
/usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
/home/user/Python-2.6.7/./Modules/posixmodule.c:7261: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_tempnam':
/home/user/Python-2.6.7/./Modules/posixmodule.c:7216: warning: the use of `tempnam' is dangerous, better use `mkstemp'
xbmc/interfaces/python/xbmcmodule/xbmcmodule.a(controlbutton.o): In function `ControlButton_GetLabel2':
/home/atv/src/xbmc_tsp/xbmc/interfaces/python/xbmcmodule/controlbutton.cpp:306: undefined reference to `PyUnicodeUCS4_DecodeUTF8'
xbmc/interfaces/python/xbmcmodule/xbmcmodule.a(controlbutton.o): In function `ControlButton_GetLabel':
/home/atv/src/xbmc_tsp/xbmc/interfaces/python/xbmcmodule/controlbutton.cpp:288: undefined reference to `PyUnicodeUCS4_DecodeUTF8'
xbmc/interfaces/python/xbmcmodule/xbmcmodule.a(PythonAddon.o): In function `Addon_GetLocalizedString':
/home/atv/src/xbmc_tsp/xbmc/interfaces/python/xbmcmodule/PythonAddon.cpp:181: undefined reference to `PyUnicodeUCS4_DecodeUTF8'
xbmc/interfaces/python/xbmcmodule/xbmcmodule.a(pyutil.o): In function `PyXBMCGetUnicodeString':
/home/atv/src/xbmc_tsp/xbmc/interfaces/python/xbmcmodule/pyutil.cpp:52: undefined reference to `PyUnicodeUCS4_AsUTF8String'
xbmc/interfaces/python/xbmcmodule/xbmcmodule.a(xbmcmodule.o): In function `XBMC_GetLocalizedString':
/home/atv/src/xbmc_tsp/xbmc/interfaces/python/xbmcmodule/xbmcmodule.cpp:364: undefined reference to `PyUnicodeUCS4_DecodeUTF8'
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1

previously I have not had any problems compiling your branch on this box and my build environment has not changed since the last time I compiled, so I hesitate to speculate what could have gone wrong with my python2.6 installation.

I tried symlinking my python installation into the /usr/local tree in case it was expecting to find it there now, but I still get the same errors. My configure looks like this:

Code:
PYTHON_VERSION=2.6 ./configure --with-jpeg8 --with-airtunes --enable-external-python --disable-pulse LIBS=-lutil

I'm using python 2.6.2+ from:

Code:
http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main

I know Crystalbuntu uses 2.6.7, so perhaps I should try using their build of python instead......

Jim


- Jimmer - 2011-11-21 19:31

Just to reply to myself:

I installed Sam's build of Python2.6.7, and xbmc compiled successfully. Now, I'm not sure if 2.6.2 is now too old, or whether my install became borked somehow and a fresh install would have fixed matters anyway?

Hope this helps someone else who has a compilation problem....

Jim


- tsp42 - 2011-11-21 22:12

deadite66 Wrote:mythtv recordings are listed but no longer play after updating.
Should be fixed now thanks


- deadite66 - 2011-11-22 01:51

tsp42 Wrote:Should be fixed now thanks

yes it is, thanks.


- fiveisalive - 2011-11-22 08:07

Recompiled master, but now playback of live TV is jittery. 1080p live TV "jumps" every few seconds, it seems to be accompanied by messages such as this in xbmc.log

Code:
AddOnLog: MythTV cmyth PVR Client: EVENT ID: CMYTH_EVENT_UPDATE_FILE_SIZE, EVENT databuf: 2021 2011-11-22T01:04:45 54891300

On playback of 1080p video I get the same issue with errors like this in the log, which roughly correspond to the time of the jumps.

Code:
CDVDPlayerAudio:: Discontinuity - was:100132524.675189, should be:100116068.143988, error:-16456.531200

Also in "Now" EPG view mode, the channels and programs are OK, but if I switch to the "Next" view, many of the channels are now missing. The "Timeline" view seems OK.

UPDATE: OK, so the playback/live TV issues seem to be related to my video settings (I had VAAPI enabled), and the EPG issue is sporadic.


- fiveisalive - 2011-11-22 08:20

Another bug report:

* clicking on an existing upcoming recording in the new timer view, brings up a dialog, but the channel is set to "0 dummy" even when it is shown correctly in the timer view.
* the EPG information in the "TV channels" view disappears after the first EPG update (it is still present in EPG views: Timeline, Next, Now)


- fiveisalive - 2011-11-22 08:40

Now getting stuck showing the progress bar 80% complete and:

Code:
PVR manager is starting up

in the log:

Code:
06:39:26 T:140494692960288   DEBUG: Connecting to sqlite:/home/myth/Documents/tsp/xbmc-installed/share/xbmc/portable_data/userdata/Database/:Addons15.db
06:39:26 T:140493965055744   DEBUG: AddOnLog: MythTV cmyth PVR Client: EVENT ID: CMYTH_EVENT_UPDATE_FILE_SIZE, EVENT databuf: 2041 2011-10-29T16:35:07 0
06:39:26 T:140493965055744   DEBUG: AddOnLog: MythTV cmyth PVR Client: EVENT ID: CMYTH_EVENT_UPDATE_FILE_SIZE, EVENT databuf: 2041 2011-10-29T16:35:53 0
06:39:26 T:140493985924864   DEBUG: CZeroconfAvahi::groupCallback: Service successfully established

I can now reliably reproduce this. Everything goes OK for the first import of the EPG. If I restart XBMC, it always gets stuck, requiring the xbmc process having to be killed. Restarting, I get the same problem. I have to remove Epg.db and TV.db from ~/.xbmc/userdata/Databases, then restart to get back to normal.


- fiveisalive - 2011-11-22 08:59

Live TV picture periodically freezing up (around the hourly schedule change) with the following in the log:

Code:
06:57:36 T:140281416513280   DEBUG: CDVDAudio::AddSilence - 0.500000 seconds
06:57:36 T:140281629452032 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
06:57:36 T:140281416513280 WARNING: Previous line repeats 5 times.
06:57:36 T:140281416513280   DEBUG: CDVDAudio::AddSilence - 0.500000 seconds
06:57:36 T:140281629452032 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
06:57:37 T:140281416513280 WARNING: Previous line repeats 7 times.
06:57:37 T:140281416513280   DEBUG: CDVDAudio::AddSilence - 0.500000 seconds
06:57:37 T:140281629452032 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
06:57:38 T:140281416513280 WARNING: Previous line repeats 7 times.
06:57:38 T:140281416513280   DEBUG: CDVDAudio::AddSilence - 0.500000 seconds
06:57:38 T:140281629452032 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
.

All in all, things seem a lot less stable than before the update. Sad


- Jimmer - 2011-11-22 18:44

tsp: I'm having an issue with commit 9d56dcea64f37641ceff34a5ff89a41b098aa988 where it's importing null channels. There are about twenty of them. All labelled channel 0 and containing no info. I've checked my mythconverg database and there are no null channels in the channel table there. I've also checked the resulting MyTV18.db sqlite3 local db and there are no null channels in there either, so I'm not sure where they are coming from. I also get loads of spamming in the log along the lines of:

Code:
16:31:37 T:2764041072   ERROR: EPG - Update - failed to update table ''
16:31:37 T:2764041072    INFO: EpgContainer - RemoveOldEntries - removing old EPG entries

I've tried to remove them from the channel manager interface in xbmc, but I get backend does not support this operation. I have also set these channels to ignore, but they still show up! Not sure what's happening here....

Also, the epg is still way out of whack. It's only slightly out of whack for info from the dvb stream (about an hour) and WAY out of whack (sometimes up to 8 hours) for channels that use a channel grabber for their epg (I use the radio times grabber since I am in the UK, but ironically it does not have epg data for radio stations (or for that matter adult-orientated channels) so I use over-the-air epg for these)

I also experience the freezes which only a hard kill from the commandline can solve.

Jim