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 - ryanolf - 2012-10-26

Recording in progress end time update bug has been reported here: http://trac.xbmc.org/ticket/13446


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

My backend is working again after it broke due to permissions issues that have been resolved. I am on Ubuntu 12.04.1 - mythtv v0.25+fixes, 10/23 xbmc, latest plugin built from source.

I have noticed that when changing channels now, after 1-3 changes, it will start playing the video and then freeze up after about 3 seconds and stay there forever. I can press stop and it will stop just fine and then I can start it up and it will play okay. The backend is working properly as this point as well since I can navigate to the mpg files directly and watching them streaming live.

Is this a known issue? If not, I can try to reproduce with a debug log.


RE: New MythTV add-on using libcmyth - BootDisc - 2012-10-26

I got the latest master, but I am gonna drop some notes for anyone else trying to use on Windows with MythTV 0.26 Backend. Just incase this helps someone. Maybe I'm just not very smart, but this took me a while to get working. Wink

I grabbed the master branch: from https://github.com/fetzerch/xbmc-pvr-addons/zipball/master (note, this link is dynamic)
In there, you will find the following bat file which will download the deps,
project\BuildDependencies\DownloadBuildDeps.bat
Run that.
Then fire up VS2010, and follow the rest of the directions, I configured for release. (F7)
You only need to copy the pvr.mythtv.cmyth\addon\ to the <xbmc-install>\addons\pvr.mythtv.cmyth\ directory in your install location.
Next, I grabbed a nightly build of mythtv, this is important since it looks like the API spec changed very recently, and I did not realize these changes were so important. If the old API trys to interface with the new one, it will just crash. You will get an error in the XBMC.log (in user data folder) saying it can't load the addon.

No real review right now for any bugs, etc, but this was progress for me.
I'll probably give building for a Mac a try over the weekend.


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

(2012-10-26, 03:54)pgjensen Wrote: My backend is working again after it broke due to permissions issues that have been resolved. I am on Ubuntu 12.04.1 - mythtv v0.25+fixes, 10/23 xbmc, latest plugin built from source.

I have noticed that when changing channels now, after 1-3 changes, it will start playing the video and then freeze up after about 3 seconds and stay there forever. I can press stop and it will stop just fine and then I can start it up and it will play okay. The backend is working properly as this point as well since I can navigate to the mpg files directly and watching them streaming live.

Is this a known issue? If not, I can try to reproduce with a debug log.
Welcome, i have the same issue since i updated my myth0.25 few weeks ago, and i try to debug it. I don't known yet if it comes from backend or addon. Please can you provide debug log to compare with mine: xbmc.log and /var/log/mythtv/mythbackend.log.
I cannot reproduce the issue but on few channel i have it sometimes and i catched log.
Thanks.



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

Quote:Welcome, i have the same issue since i updated my myth0.25 few weeks ago, and i try to debug it. I don't known yet if it comes from backend or addon. Please can you provide debug log to compare with mine: xbmc.log and /var/log/mythtv/mythbackend.log.
I cannot reproduce the issue but on few channel i have it sometimes and i catched log.
Thanks.

Gone most of the weekend, but will fire it up remotely and see if I can get it to hang on changing channels with a debug log and post that.


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

Now I can't tune at all, and the backend is working, status even shows i'm watching the channel i tuned to via xbmc.
http://pastebin.com/MgUt3zMW

I restarted xbmc and was able to tune in. Then I changed a channel and it froze after 5s again.
http://pastebin.com/8JJpvZSs

Hope this helps!


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

(2012-10-18, 01:57)tdavis Wrote:
(2012-10-17, 08:40)cfetzer Wrote:
(2012-10-17, 06:04)tdavis Wrote: so, what's the chance of getting this commited?

https://github.com/tsp/xbmc/commit/36d9deb2ab8cafa2a1151fceed686034ae7d9702

It makes the EPG startup times much faster.. I've hidden many channels, instead of deleted them..

Thanks! We based everything on tsp's master repository. This commit was only present in his Eden-PVR branch.
There are a few more commits that might be interessting. I will have a closer look and let you know when I pushed the change to the repo.

I noticed that's not for the addon, but the PVR portion itself.. so I'm not sure if it will get incorporated into Frodo..

Lars has fixed the EPG loading of hidden channels in xbmc/master. (https://github.com/xbmc/xbmc/commit/7bc9741b885c4f06712577d4da15cd12fd51ce11)
Let me know if it works for you.


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

(2012-10-19, 09:02)rsennewald Wrote: So i'm curious if anyone else has encountered this bug. I set a channel to be hidden on Myth backend, but on the XBMC front end it is not hidden from the EPG or listings. I have to manually go through and hide any channels that I don't want to see in XBMC separately. Shouldn't this be pulled from MythTV when loading the EPG? I've tried wiping the EPG database and resynching it, but it still doesn't care what channels are hiddein in mythtv. I want to hide every channel besides 701-799 (which I've done successfully in myth backend).

I just stumbled over this unanswered post. Maybe the answer is still helpfull for you or somebody else.
Right now changes to an existing channel on mythtv backend (like. visibility, channel icon, channel name, ...) are not propagated into xbmc automatically.
To get those changes you have to reset the pvr database. Resetting only the epg database does not help. (Settings -> LiveTV -> General -> Reset PVR database)

I will clarify if this is simply a bug or the desired behavior. You might have settings in the xbmc channel manager that would get overriden when reloading from the backend. (like scrapper, custom icon, ...)


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

I updated to lastest git on both PVR and XBMC (Frodo 12, Alpha 7, cc97875)..

It actually works pretty good now!

The hidden channels on the backend no longer get downloaded, which speeds things up ALOT.

Thanks!



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

(2012-10-27, 05:11)tdavis Wrote: I updated to lastest git on both PVR and XBMC (Frodo 12, Alpha 7, cc97875)..

It actually works pretty good now!

The hidden channels on the backend no longer get downloaded, which speeds things up ALOT.

Thanks!

and of course, no sooner I post that, I see more PVR activity.. Time to pull and recompile.




RE: New MythTV add-on using libcmyth - shadow - 2012-10-27

I have been using this plugin and enjoy it a lot except one huge problem, about 19 times out of 20 when I finish watching a show by either it ending on its own or by me hitting the stop button it freezes up XBMC luckily it restarts the service fast but is still annoying. Do other people have this problem?

I am using a release from xbmcfreak that is updated to the latest nightly from wsnipex's PPA. I also have the newest git of this plugin.

Here is a debug log of the seg fault. http://pastebin.com/TtF5S3jP


RE: New MythTV add-on using libcmyth - Ayla - 2012-10-27

janbar,

I'm also experiencing that video frames slow down (seems like slowmotion) and audio disappears, it happens every 1-2 hours.

I have to stop and restart playback, and everything works fine again.

Is this what others are experiencing too?


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

(2012-10-26, 21:36)cfetzer Wrote:
(2012-10-19, 09:02)rsennewald Wrote: So i'm curious if anyone else has encountered this bug. I set a channel to be hidden on Myth backend, but on the XBMC front end it is not hidden from the EPG or listings. I have to manually go through and hide any channels that I don't want to see in XBMC separately. Shouldn't this be pulled from MythTV when loading the EPG? I've tried wiping the EPG database and resynching it, but it still doesn't care what channels are hiddein in mythtv. I want to hide every channel besides 701-799 (which I've done successfully in myth backend).

I just stumbled over this unanswered post. Maybe the answer is still helpfull for you or somebody else.
Right now changes to an existing channel on mythtv backend (like. visibility, channel icon, channel name, ...) are not propagated into xbmc automatically.
To get those changes you have to reset the pvr database. Resetting only the epg database does not help. (Settings -> LiveTV -> General -> Reset PVR database)

I will clarify if this is simply a bug or the desired behavior. You might have settings in the xbmc channel manager that would get overriden when reloading from the backend. (like scrapper, custom icon, ...)

Should be already fixed now in xbmc: https://github.com/xbmc/xbmc/commit/f679b31e72c2a30241597c5b2c1b903f19c3fbb8


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

Good news everybody: starting now, the mythtv addon is part of the official xbmc addon repository: http://github.com/opdenkamp/xbmc-pvr-addons/
Currently in version 0.5 (not yet with 0.26 support). We will release the version 0.6 (with bugfixes and 0.26 support) as soon as we get the remaining problems sorted out.

The development repository will not change, so if you want or need the latest software, keep using my repo.

Note for linux and osx users:
Due to the fact that the addon has a dependency to libmysqlclient, team xbmc cannot provide binary builds of the addon for linux and osx.
Because it's not trivial to tell if and which version of the lib and dependend libs are installed.
To build the addon from this repository, you need to run ./configure --enable-addons-with-dependencies.
Still its a huge advantage, because distro maintainers can easily provide binary builds of all official addons. (like ubuntu, openelec, ...).

Cheers,
Christian


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

(2012-10-26, 16:32)pgjensen Wrote: Now I can't tune at all, and the backend is working, status even shows i'm watching the channel i tuned to via xbmc.
http://pastebin.com/MgUt3zMW

I restarted xbmc and was able to tune in. Then I changed a channel and it froze after 5s again.
http://pastebin.com/8JJpvZSs

Hope this helps!

Thanks, i read them.
But for me it is only rarely. I suspect a bug in mythtv because backend send 0 blocks when we request it. Also It is only when tune is bad and file could be containing lot of errors.

So try to use amplifier or something like.

Nota: Mythfrontend does not use remote transfer (via myth protocol) and read directly the file. So it is not affected by this bug.