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

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



RE: New MythTV add-on using libcmyth - janbar - 2012-12-07

(2012-12-04, 02:43)pgjensen Wrote: Over the past couple of weeks, I have noticed that when I come back from sleep in XBMC, if I try to load a channel it's 50/50 on whether it will work. It just sits there and spins and I have to close XBMC and restart it and it then works perfectly again. Is anyone else experiencing this issue? I don't have debug logs yet.

XBMC beta 2
v0.6.5 mythtv plugin (built yesterday)

HI, never see that. My mediacenter is up all the time and xbmc sleep during the day before i start to watch TV after the work. I need your log (extralog) to investigate the thing. Thanks


RE: New MythTV add-on using libcmyth - janbar - 2012-12-07

@all,

There is a bug in the packaging. The "make zip" not update correctly the zip file. It keep the previous compiled binary file of the addon. To resolve it: before refresh your copy with git pull, type "make clean" then "git pull". Or after "./configure --enable-addons-with-dependencies" type "make clean" to cleanup all old files from a previous compilation.

br


RE: New MythTV add-on using libcmyth - schmoko - 2012-12-08

(2012-12-06, 20:52)Ayla Wrote:
(2012-12-04, 02:43)pgjensen Wrote: Over the past couple of weeks, I have noticed that when I come back from sleep in XBMC, if I try to load a channel it's 50/50 on whether it will work. It just sits there and spins and I have to close XBMC and restart it and it then works perfectly again. Is anyone else experiencing this issue? I don't have debug logs yet.

XBMC beta 2
v0.6.5 mythtv plugin (built yesterday)

I'm seeing this too, it just spins and spins, and sometimes it locks up XBMC completely.

Restarting (force quiting) XBMC makes it work again.

I am also seeing this issue since jeron/fetzerch took over cMyth. Add-on is fine when being used continuously, but after sleep/resume cycle (S3 Standby), cMyth fails to playback any streams. The connection to Myth is still valid, as pending EPG updates occur on resume.

I've found the best workaround is to go to Settings-> Live TV and uncheck "Enable LiveTV" and then recheck it. The EPG data will reload and playback will work without issue (until the next sleep).

I'll try to provide logs next time I have a chance. I do no see this issue with any other PVR add-on.



RE: New MythTV add-on using libcmyth - Gulliver - 2012-12-09

Hello,

With MythTV 0.25, xbmc built today and pvr-addon built today from Christian's GIT, It seems in adding a new timer, it doesn't take account the "start record in advance of x minutes" which can be set in "System" > "Live-TV".

In these parameters screen, we can set up a "start record in advance of x min" and a "stop in late of x minutes". This last parameter is taken in account, but not the "start ..." parameter.

I don't know if this is an issue of the addon or xbmc .....

Here, what I can see in xbmc.log:

DEBUG: ------ Window Deinit (DialogPVRTimerSettings.xml) ------
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: AddTimer - title: timer-test, start: 1355320800, end: 1355324400, chanID: 139762530780138
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_recordingrule_create
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_timestamp_create
10:51:50 T:139763641153408 DEBUG: Previous line repeats 5 times.

For a timer from 15:00 to 16:00 and with 15 min of "start in advance" and 20 min of "stop in late".

At present time, mythweb tells me it will record from 15:00 until 16:20, and not from 14:45 until 16:20.

But, another time, it's possibly not a pvr-addon issue ...
Thanks.




RE: New MythTV add-on using libcmyth - janbar - 2012-12-09

(2012-12-09, 12:11)Gulliver Wrote: Hello,

With MythTV 0.25, xbmc built today and pvr-addon built today from Christian's GIT, It seems in adding a new timer, it doesn't take account the "start record in advance of x minutes" which can be set in "System" > "Live-TV".

In these parameters screen, we can set up a "start record in advance of x min" and a "stop in late of x minutes". This last parameter is taken in account, but not the "start ..." parameter.

I don't know if this is an issue of the addon or xbmc .....

Here, what I can see in xbmc.log:

DEBUG: ------ Window Deinit (DialogPVRTimerSettings.xml) ------
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: AddTimer - title: timer-test, start: 1355320800, end: 1355324400, chanID: 139762530780138
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_recordingrule_create
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_timestamp_create
10:51:50 T:139763641153408 DEBUG: Previous line repeats 5 times.

For a timer from 15:00 to 16:00 and with 15 min of "start in advance" and 20 min of "stop in late".

At present time, mythweb tells me it will record from 15:00 until 16:20, and not from 14:45 until 16:20.

But, another time, it's possibly not a pvr-addon issue ...
Thanks.
We had debug direct timer to resolve issue #45. I check that. Thanks for feedback.

(2012-12-08, 21:07)schmoko Wrote:
(2012-12-06, 20:52)Ayla Wrote:
(2012-12-04, 02:43)pgjensen Wrote: Over the past couple of weeks, I have noticed that when I come back from sleep in XBMC, if I try to load a channel it's 50/50 on whether it will work. It just sits there and spins and I have to close XBMC and restart it and it then works perfectly again. Is anyone else experiencing this issue? I don't have debug logs yet.

XBMC beta 2
v0.6.5 mythtv plugin (built yesterday)

I'm seeing this too, it just spins and spins, and sometimes it locks up XBMC completely.

Restarting (force quiting) XBMC makes it work again.

I am also seeing this issue since jeron/fetzerch took over cMyth. Add-on is fine when being used continuously, but after sleep/resume cycle (S3 Standby), cMyth fails to playback any streams. The connection to Myth is still valid, as pending EPG updates occur on resume.

I've found the best workaround is to go to Settings-> Live TV and uncheck "Enable LiveTV" and then recheck it. The EPG data will reload and playback will work without issue (until the next sleep).

I'll try to provide logs next time I have a chance. I do no see this issue with any other PVR add-on.
I will try with a S3 suspend.



RE: New MythTV add-on using libcmyth - speed32219 - 2012-12-09

(2012-12-07, 03:00)janbar Wrote: @all,

There is a bug in the packaging. The "make zip" not update correctly the zip file. It keep the previous compiled binary file of the addon. To resolve it: before refresh your copy with git pull, type "make clean" then "git pull". Or after "./configure --enable-addons-with-dependencies" type "make clean" to cleanup all old files from a previous compilation.

br

Thank you, Thank you, Thank you. I thought it might be issues with the version of xbmc I was running so installed the latest version and still no Joy. Now it is working correctly.


RE: New MythTV add-on using libcmyth - janbar - 2012-12-09

(2012-12-09, 15:23)janbar Wrote:
(2012-12-09, 12:11)Gulliver Wrote: Hello,

With MythTV 0.25, xbmc built today and pvr-addon built today from Christian's GIT, It seems in adding a new timer, it doesn't take account the "start record in advance of x minutes" which can be set in "System" > "Live-TV".

In these parameters screen, we can set up a "start record in advance of x min" and a "stop in late of x minutes". This last parameter is taken in account, but not the "start ..." parameter.

I don't know if this is an issue of the addon or xbmc .....

Here, what I can see in xbmc.log:

DEBUG: ------ Window Deinit (DialogPVRTimerSettings.xml) ------
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: AddTimer - title: timer-test, start: 1355320800, end: 1355324400, chanID: 139762530780138
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_recordingrule_create
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_timestamp_create
10:51:50 T:139763641153408 DEBUG: Previous line repeats 5 times.

For a timer from 15:00 to 16:00 and with 15 min of "start in advance" and 20 min of "stop in late".

At present time, mythweb tells me it will record from 15:00 until 16:20, and not from 14:45 until 16:20.

But, another time, it's possibly not a pvr-addon issue ...
Thanks.
We had debug direct timer to resolve issue #45. I check that. Thanks for feedback.

(2012-12-08, 21:07)schmoko Wrote:
(2012-12-06, 20:52)Ayla Wrote: I'm seeing this too, it just spins and spins, and sometimes it locks up XBMC completely.

Restarting (force quiting) XBMC makes it work again.

I am also seeing this issue since jeron/fetzerch took over cMyth. Add-on is fine when being used continuously, but after sleep/resume cycle (S3 Standby), cMyth fails to playback any streams. The connection to Myth is still valid, as pending EPG updates occur on resume.

I've found the best workaround is to go to Settings-> Live TV and uncheck "Enable LiveTV" and then recheck it. The EPG data will reload and playback will work without issue (until the next sleep).

I'll try to provide logs next time I have a chance. I do no see this issue with any other PVR add-on.
I will try with a S3 suspend.
Yes you are right. The background thread (event) don't restart after S3 suspend. So no feedback from backend. I look what i can do...
EDIT: I raise an issue and try to resolve it Wink
The issue is #59


simultaneous streaming with ceton thru mythtv - zoydberg - 2012-12-10

im using a ceton quad cablecard tuner and mythtv .25, im trying to get streaming to simultaneous machines thru xbmc working. i feel like this maybe worked with tsp's original codebase.

https://www.google.com/search?q=site%3Axbmc.org+%2Bceton+%2Bsimultaneous
http://forum.xbmc.org/showthread.php?tid=119865&page=18 - in a seperate addon they seem to have simultaneous streaming working
http://forum.xbmc.org/showthread.php?tid=43115&page=51 - it may have been working in mythbox at some point, or still is

the keyword simultaneous bares no results in this thread or in the pvr development sub forum

debug logs- in both instances i had live tv playing on 1 machine and tried to play several channels on another machine, "error opening" can be found a few times near the bottom of both logs

http://xbmclogs.com/show.php?id=19883 - from windows 7 laptop with fairly recent myth addon from cmyth, i was playing live tv fine on my main linux htpc, while trying to simultaneously play live tv on my laptop, wasn't able to

http://xbmclogs.com/show.php?id=19887 - from main htpc, ubuntu 12.04 lts, built latest xbmc and pvr addons from github, had live tv playing fine on win 7 laptop, while simultaneously trying to play live tv on linux htpc, wasn't able to

cfetzer and janbar, this addon and my experience are continually getting better, thanks again to both of you.


FIXED - I just needed to add the ceton correctly per the instructions to get it work. user error.


RE: New MythTV add-on using libcmyth - janbar - 2012-12-10

(2012-12-09, 17:07)janbar Wrote:
(2012-12-09, 15:23)janbar Wrote:
(2012-12-09, 12:11)Gulliver Wrote: Hello,

With MythTV 0.25, xbmc built today and pvr-addon built today from Christian's GIT, It seems in adding a new timer, it doesn't take account the "start record in advance of x minutes" which can be set in "System" > "Live-TV".

In these parameters screen, we can set up a "start record in advance of x min" and a "stop in late of x minutes". This last parameter is taken in account, but not the "start ..." parameter.

I don't know if this is an issue of the addon or xbmc .....

Here, what I can see in xbmc.log:

DEBUG: ------ Window Deinit (DialogPVRTimerSettings.xml) ------
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: AddTimer - title: timer-test, start: 1355320800, end: 1355324400, chanID: 139762530780138
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_recordingrule_create
10:51:50 T:139763641153408 DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_timestamp_create
10:51:50 T:139763641153408 DEBUG: Previous line repeats 5 times.

For a timer from 15:00 to 16:00 and with 15 min of "start in advance" and 20 min of "stop in late".

At present time, mythweb tells me it will record from 15:00 until 16:20, and not from 14:45 until 16:20.

But, another time, it's possibly not a pvr-addon issue ...
Thanks.
We had debug direct timer to resolve issue #45. I check that. Thanks for feedback.

(2012-12-08, 21:07)schmoko Wrote: I am also seeing this issue since jeron/fetzerch took over cMyth. Add-on is fine when being used continuously, but after sleep/resume cycle (S3 Standby), cMyth fails to playback any streams. The connection to Myth is still valid, as pending EPG updates occur on resume.

I've found the best workaround is to go to Settings-> Live TV and uncheck "Enable LiveTV" and then recheck it. The EPG data will reload and playback will work without issue (until the next sleep).

I'll try to provide logs next time I have a chance. I do no see this issue with any other PVR add-on.
I will try with a S3 suspend.
Yes you are right. The background thread (event) don't restart after S3 suspend. So no feedback from backend. I look what i can do...
EDIT: I raise an issue and try to resolve it Wink
The issue is #59
I resolved a part of this issue. Here now it's running (tested on OSX). But I DO NOT RECOMMEND TO USE SUSPEND MODE (S3) because MythTV backend log errors when it try to contact suspended addon. To fully resolve the issue XBMC should signal client is suspending to the addon. Like that we can close connection before suspend and avoid backend hang.
br



RE: New MythTV add-on using libcmyth - fields_g - 2012-12-10

I got libcmyth pvr working on my frodo b2 windows machine. I was pretty excited to see frodo available for android, but cannot get the PVR function to work. On both android frodo b2 and b3, when I click System, Live TV, Enable, I see many addons, but not a cmyth addon. I also can't find a precompiled cmyth android addon build. Am I missing something?


RE: New MythTV add-on using libcmyth - pgjensen - 2012-12-10

(2012-12-10, 04:41)janbar Wrote: I resolved a part of this issue. Here now it's running (tested on OSX). But I DO NOT RECOMMEND TO USE SUSPEND MODE (S3) because MythTV backend log errors when it try to contact suspended addon. To fully resolve the issue XBMC should signal client is suspending to the addon. Like that we can close connection before suspend and avoid backend hang.
br

Is this in git? Or is there a version I can help test?


RE: New MythTV add-on using libcmyth - tdavis - 2012-12-10

(2012-11-30, 19:57)tdavis Wrote:
(2012-11-30, 13:41)cfetzer Wrote:
(2012-11-19, 20:38)tdavis Wrote: And if someone wanted to test them out - how does one get these patches?

I'd like to try them..

Sorry for the late response. It's unfortunately not that easy since you need to patch both xbmc and the addon.
If you want to try it, you need https://github.com/xbmc/xbmc/pull/1743 and https://github.com/fetzerch/xbmc-pvr-addons/pull/51.
When upgrading either of them you have to readd both changes or you will get crashes (because of the api change).

That's why I'd suggest to wait until after frodo...

Cheers,
Christian

I'm up for a challenge.. With the comm breaks, the WAF goes way way up. Smile It's the only piece really missing to stop using the MythTV frontend..

FYI - The xbmc PR still patches and works, but the addons PR does not. It has issues; I have not had time to find them and try to fix them; it appears to have to do with the fact that ArgusTV went KABOOM.



RE: New MythTV add-on using libcmyth - janbar - 2012-12-10

(2012-12-10, 18:09)pgjensen Wrote:
(2012-12-10, 04:41)janbar Wrote: I resolved a part of this issue. Here now it's running (tested on OSX). But I DO NOT RECOMMEND TO USE SUSPEND MODE (S3) because MythTV backend log errors when it try to contact suspended addon. To fully resolve the issue XBMC should signal client is suspending to the addon. Like that we can close connection before suspend and avoid backend hang.
br

Is this in git? Or is there a version I can help test?

Yes in my git on branch issue-59. Or get the pull request i done for fetzerch.
There is no warning if xbmc is on the same host than mythtv. Else mythtv could log errors during suspend period and recordings list could not be synchro on wake up.


RE: New MythTV add-on using libcmyth - fetzerch - 2012-12-10

(2012-12-10, 19:30)tdavis Wrote:
(2012-11-30, 19:57)tdavis Wrote:
(2012-11-30, 13:41)cfetzer Wrote: Sorry for the late response. It's unfortunately not that easy since you need to patch both xbmc and the addon.
If you want to try it, you need https://github.com/xbmc/xbmc/pull/1743 and https://github.com/fetzerch/xbmc-pvr-addons/pull/51.
When upgrading either of them you have to readd both changes or you will get crashes (because of the api change).

That's why I'd suggest to wait until after frodo...

Cheers,
Christian

I'm up for a challenge.. With the comm breaks, the WAF goes way way up. Smile It's the only piece really missing to stop using the MythTV frontend..

FYI - The xbmc PR still patches and works, but the addons PR does not. It has issues; I have not had time to find them and try to fix them; it appears to have to do with the fact that ArgusTV went KABOOM.

Thanks, I've rebased the addons PR.


RE: New MythTV add-on using libcmyth - tdavis - 2012-12-11

(2012-12-10, 21:55)cfetzer Wrote:
(2012-12-10, 19:30)tdavis Wrote:
(2012-11-30, 19:57)tdavis Wrote: I'm up for a challenge.. With the comm breaks, the WAF goes way way up. Smile It's the only piece really missing to stop using the MythTV frontend..

FYI - The xbmc PR still patches and works, but the addons PR does not. It has issues; I have not had time to find them and try to fix them; it appears to have to do with the fact that ArgusTV went KABOOM.

Thanks, I've rebased the addons PR.

Excellent, it compiled up and appeared to get the EDL list.. more testing to see how well it works.