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

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



- fiveisalive - 2011-11-27 07:07

ericminou Wrote:Since updating to the latest git version it seems the entire thing is falling apart. I am debugging the root cause (it might to do with the Amq3 skin), but I frankly wish I stayed on the previous build.

My guess is that a lot of the bugginess is related to code churn in ffmpeg in upstream master (in terms of video playback) and/or in dushmaniac's branch (in terms of EPG weirdness) rather than specifically in tsp's branch. In fact I see quite a number of video problems at my end, in playback rather than in the PVR UI. What issues are you having precisely?


- vskatusa - 2011-11-27 08:28

Is this the windows build?

Do i execute this exe file after I have installed XBMC in windows or is this exe a FULL install of XBMC with libcmyth?

Sorry for the stupid question.....


- deadite66 - 2011-11-27 22:07

it did have a run of crashes the last few days but appears to be behaving itself today.


- tsp42 - 2011-11-27 22:25

Hmm I managed to track one of the deadlocks when playing LiveTV back to the xbmc pvr code so at least in this case ffmpeg wasn't the fault. Will continue bug hunting and hope that Dushmaniac soon updated the PVR code again.

vskatusa: It is the right file. It contains the xbmc installer so you don't have to install xbmc first. It is however a bit outdated. I think I will wait for the xbmc PVR to be a bit more stable before updating the exe (it is quite terrible right now).

EDIT: I've updated the repo with the fix but I suspect that there are more hiding.


- ericminou - 2011-11-28 04:41

There seem to be weird random issues all over the place. I highly doubt it has anything to do with your changes tsp42. It just doesnt feel very solid. For one, I come to a black screen several times a day and have to manually kill the xbmc process. THat only happens with the Anq3 skin. Then again this is pre-beta code so to be expected.

Thank you for everything tsp42!!


- ursli - 2011-11-28 20:59

fiveisalive Wrote:Ditto (see above). Perhaps some of this might be related to changes in video handling/ffmpeg either dushmaniac's, or (more likely) in the master xbmc itself. Was there a major ffmpeg version jump?

I'm having the same xbmc freezes too with the latest (21st of November) opdenkamp pvr build for windows running the mediaportal backend, can't say I had any freezing before that. I guess you're on the right track with ffmpeg, got the same error message as you in my logs.

Maybe this doesn't belong in this thread?


- ericminou - 2011-11-28 22:17

I am ready to revert to the previous version that seemed to be very stable... Nothing worst than having your wife call you at work because the tv doesnt work (black screen).

"git revert HEAD" does the trick?


- tsp42 - 2011-11-28 23:48

I've added a new commit to my repo that should reduce the deadlock risk.

ursli: It is good to hear that it is not only my branch that causes the freezing so I don't think your post is off-topic.

ericminou: try "git revert 1b3c216cef6faa0038a485d7d3c20b1a0c6edfb9"
It should undo the merge with the latest xbmc PVR and mainline xbmc code


- ericminou - 2011-11-29 00:16

Thank you tsp. Hopefully I can get back to a happy wife :-)


- tsp42 - 2011-11-29 22:29

Have anyone tried to disable LiveTV in the latest build to see if the crashes/freezes disappear. I suspect that the background EPG update might be involved and it will run as long as LiveTV is enabled.


- tgm4883 - 2011-11-29 23:12

tsp42 Wrote:Have anyone tried to disable LiveTV in the latest build to see if the crashes/freezes disappear. I suspect that the background EPG update might be involved and it will run as long as LiveTV is enabled.

I've not, I've been working on getting it building in a PPA using the XBMC packaging scripts.


- ericminou - 2011-11-30 06:58

Frankly, I got your latest bits and the system has been up for over 24 hours without a reboot or crash! We havent watched much of live TV, but we did watch quiet bit of other video contents.


- drake3 - 2011-11-30 22:51

Hi All,

I am getting ready to upgrade my primary mythdora machine - it is so old, but I have kept it around because it has been so stable.

Anyway, I want to use XBMC as my frontends. I already have it running on ATV2, Zotac ID-11 and a Revo 1600. I have been testing an ESXi VM running Mythbuntu 10.10 with a HDHomerun. My cable is Time Warner.

I was reading in this thread that some are going to use the HDHomerun Prime. I thought the Prime was limited to serving only the copy-allowed flagged programs to MythTV? But, what I read looks like .24 with fixes will allow you to record what you are able to see with the CableCard - is this correct?

I was just about to buy a prime when I thought it was safer to buy the HD-PVR and rent another cablebox just for the mythtv server so I could record all the channels I pay for.

Thanks for your help!


- amducious - 2011-12-03 18:06

Help for a newb. I'm lost big time. What do I need to do toget Mythtv 0.24 working in windows 32 bit. I have my back end set up and it works perfectly with my mythbuntu front end but I would love to get rid of that box and just use xbmc. I dont care if its working 100% I just want to test it out.


- snowdogging - 2011-12-03 23:38

Tsp, thanks for your work on this. I am having some issues connecting to the latest master build of mythbackend with xbmc. I can connect just fine with mythfronted so I think it may be an xbmc problem.

Here is my xbmc.log


Code:
16:30:36 T:139684901971712   DEBUG: PVR - Create - creating PVR add-on instance 'MythTV cmyth PVR Client'
16:30:36 T:139684901971712   DEBUG: ADDON: Dll Initializing - MythTV cmyth PVR Client
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: Loading cmyth library
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: Creating MythTV cmyth PVR-Client
16:30:36 T:139684901971712   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'host'
16:30:36 T:139684901971712   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'port'
16:30:36 T:139684901971712   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'extradebug'
16:30:36 T:139684901971712   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_user'
16:30:36 T:139684901971712   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_password'
16:30:36 T:139684901971712   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_name'
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect_ctrl: connecting control connection
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_connect_addr: connecting to 127.0.0.1:6543 fd = 32
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_create {
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_create }
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_send_message
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_send_message: sending message '20      MYTH_PROTO_VERSION 8'
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_rcv_length
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_rcv_length: buffer is '13      ' ret = 13
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_rcv_string: string received 'REJECT'
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_rcv_string: string received '70'
16:30:36 T:139684901971712   ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 8, got version 70
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy {
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy: shutdown and close connection fd = 32
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy }
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_connect_addr: connecting to 127.0.0.1:6543 fd = 32
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_create {
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_create }
16:30:36 T:139684901971712   ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: failed to connect with any version
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy {
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy: shutdown and close connection fd = 32
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy }
16:30:36 T:139684901971712   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect_ctrl: done connecting control connection ret = (nil)
16:30:36 T:139684901971712   DEBUG: CAddonCallbacksAddon - QueueNotification - MythTV cmyth PVR Client - Error Message : 'Connect: Failed to connect to MythTV backend 127.0.0.1:6543'
16:30:36 T:139684901971712   ERROR: ADDON: Dll MythTV cmyth PVR Client - Client returned bad status (1) from Create and is not usable
16:30:36 T:139684901971712    INFO: Called Add-on status handler for '1' of clientName:MythTV cmyth PVR Client, clientID:pvr.mythtv.cmyth (same Thread=no)
16:30:36 T:139684943410944   DEBUG: Thread CAddonStatusHandler:pvr.mythtv.cmyth start, auto delete: 1
16:30:36 T:139684943410944   DEBUG: Thread CAddonStatusHandler:pvr.mythtv.cmyth 139684943410944 terminating (autodelete)