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 - ross232 - 2012-10-15

(2012-10-15, 08:04)cfetzer Wrote:
(2012-10-15, 03:33)ross232 Wrote: Is anyone else experiencing an issue where seek / ff above 4x causes playback to stop? At 8x I get a few seconds before it drops, and at 16x it drops almost immediately.

I'm not at home at the moment so can't provide logs right now but will do so later tonight if they show anything useful.

This is a known issue in xbmc's ffmpeg.
You can try to either apply the patches here: https://github.com/xbmc/xbmc/pull/1509 or to setup mythtranscode to automatically transcode all recordings from MPEG TS to MPEG PS (http://www.mythtv.org/wiki/Mythtranscode).

Hmmm... interesting. Thanks for that Smile

I'd be curious to look into how MythTV handles it... they must have worked around it previously?
None of the patches given appear to be recommended at this point in time either.





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

(2012-10-15, 03:39)GregoryK Wrote:
(2012-10-13, 05:02)janbar Wrote:
(2012-10-13, 04:17)GregoryK Wrote: Hello:

I was able to build the add-on on OS X Mountain Lion, and install the add-on into a fresh install of the September snapshot of Frodo. But I get a repeatable crash if I configure the add-on (e.g. add my backend IP and myth db login) and then "enable".

Restarting XBMC after the crash will cause an immediate crash again, until the add-on info is entirely removed from both /addons and /userdata

Here's the CrashReporter log in case it helps: http://pastebin.com/6Vrwtjpg

/gkk

Hi, get the last XBMC nightly build (12 october 2012) and get the last version of addon from git. It will be better. Br

Hello again, and thanks for your help. Unfortunately, now I can't build the plugin with the latest git and the 12 Oct 2012 nightly. I get errors on the ./bootstrap (pastebin here) and then on the ./configure (pastebin here)

If you have any suggestions, I would be grateful. Would really like to test PVR with my mythtv backend. Thanks for the help!

/GregoryK

Yes, since version 0.4.0, i must provide a new tutorial to build addon. It will be more simple.

@somebody who knows xbmc wiki
Can we add a new page on the xbmc pvr wiki to explain how to build from source ? Others pvr addon have only one page. But we need more than one I think.


RE: New MythTV add-on using libcmyth - allen00se - 2012-10-15

(2012-10-14, 01:54)janbar Wrote: Be patient, I'm almost done to develop support for the 0.26...

That would be great, my backend on 0.25+fixes is crashing all the time and unusable, 0.26 works much better. Thanks for the effort.
Krys


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

(2012-10-15, 10:30)janbar Wrote:
(2012-10-15, 03:39)GregoryK Wrote:
(2012-10-13, 05:02)janbar Wrote: Hi, get the last XBMC nightly build (12 october 2012) and get the last version of addon from git. It will be better. Br

Hello again, and thanks for your help. Unfortunately, now I can't build the plugin with the latest git and the 12 Oct 2012 nightly. I get errors on the ./bootstrap (pastebin here) and then on the ./configure (pastebin here)

If you have any suggestions, I would be grateful. Would really like to test PVR with my mythtv backend. Thanks for the help!

/GregoryK

Yes, since version 0.4.0, i must provide a new tutorial to build addon. It will be more simple.

@somebody who knows xbmc wiki
Can we add a new page on the xbmc pvr wiki to explain how to build from source ? Others pvr addon have only one page. But we need more than one I think.

I am starting to add a wiki page to explain how to build the pvr addons. It is not closed yet, but i close it this night :-). Link is http://wiki.xbmc.org/index.php?title=PVR/MythTV/BuildFromSource#Build_MythTV_addon_on_OSX



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

(2012-10-15, 09:12)ross232 Wrote:
(2012-10-15, 08:04)cfetzer Wrote:
(2012-10-15, 03:33)ross232 Wrote: Is anyone else experiencing an issue where seek / ff above 4x causes playback to stop? At 8x I get a few seconds before it drops, and at 16x it drops almost immediately.

I'm not at home at the moment so can't provide logs right now but will do so later tonight if they show anything useful.

This is a known issue in xbmc's ffmpeg.
You can try to either apply the patches here: https://github.com/xbmc/xbmc/pull/1509 or to setup mythtranscode to automatically transcode all recordings from MPEG TS to MPEG PS (http://www.mythtv.org/wiki/Mythtranscode).

Hmmm... interesting. Thanks for that Smile

I'd be curious to look into how MythTV handles it... they must have worked around it previously?
None of the patches given appear to be recommended at this point in time either.

No, MythTV doesn't have this issue. They're using byte offset based seeking while xbmc uses time offset based. And this is nothing you can easily change.
The mythtranscode option works quite good. It's lossless and also saves some disk space. Nevertheless I hope this gets fixed soon.


RE: New MythTV add-on using libcmyth - ross232 - 2012-10-15

(2012-10-15, 08:04)cfetzer Wrote: No, MythTV doesn't have this issue. They're using byte offset based seeking while xbmc uses time offset based. And this is nothing you can easily change.
The mythtranscode option works quite good. It's lossless and also saves some disk space. Nevertheless I hope this gets fixed soon.

Thanks again for your help, I appreciate it. If I do transcode the recordings- do they still appear in the 'recordings' section of XBMC?


RE: New MythTV add-on using libcmyth - Aubrien - 2012-10-16

(2012-10-13, 03:56)Aubrien Wrote: Janbar,
I been unable to post until now much about the performance of the buffer feature and others on an analog tuner. It is tuning most of the time and survives some program breaks but not all. It is having really long tuning times that will sometimes take so long that it times out entirely. I expect 10s counting the ch change script but can get anywhere from 10s to 80s (timeout and drop to menu). I think its related to the buffer code as any time that it should be buffering it seems to be doing it, but it is really slow. I have a log with addon debugging turned on but as was last time, it it too large for pastebin. I sent it to you via email in the forum. Thanks

Janbar,
Did you ever get a chance to look at this? The addon still isn't working reliably for the HD PVR.


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

@mac users

I post the tutorial at http://wiki.xbmc.org/index.php?title=PVR/MythTV/BuildFromSource
br
(2012-10-16, 00:53)Aubrien Wrote:
(2012-10-13, 03:56)Aubrien Wrote: Janbar,
I been unable to post until now much about the performance of the buffer feature and others on an analog tuner. It is tuning most of the time and survives some program breaks but not all. It is having really long tuning times that will sometimes take so long that it times out entirely. I expect 10s counting the ch change script but can get anywhere from 10s to 80s (timeout and drop to menu). I think its related to the buffer code as any time that it should be buffering it seems to be doing it, but it is really slow. I have a log with addon debugging turned on but as was last time, it it too large for pastebin. I sent it to you via email in the forum. Thanks

Janbar,
Did you ever get a chance to look at this? The addon still isn't working reliably for the HD PVR.

Hi aubrien,
Sorry I was a little bit overload with MythTV 0.26. But now i closed it. I send you my status about log soon. br


RE: New MythTV add-on using libcmyth - Aubrien - 2012-10-16

Thanks Janbar,
The 0.26 support is exciting though too!


RE: New MythTV add-on using libcmyth - flitter2009 - 2012-10-16

(2012-10-16, 03:28)janbar Wrote: @mac users

I post the tutorial at http://wiki.xbmc.org/index.php?title=PVR/MythTV/BuildFromSource
br

Fantastic tutorial, I managed to build the add-on with literally 5 copy/pastes!


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

(2012-10-16, 03:28)janbar Wrote: @mac users

I post the tutorial at http://wiki.xbmc.org/index.php?title=PVR/MythTV/BuildFromSource

janbar: On OS X 10.8.2, with Xcode and MacPorts installed, I had to do: "sudo port install automake autoconf libtool" (otherwise I couldn't run "./bootstrap", it gave this error: "./bootstrap: line 3: autoreconf: command not found").

After installing automake, autoconf and libtool, your guide worked perfectly Smile

Thanks again!
/Martin


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

janbar:

The addon compiles, but when starting XBMC (latest Frodo nightly), the plugin won't load and there's an error regarding mysql in the log:

Code:
15:54:36 T:4540108800   ERROR: Unable to load /Users/martin/Library/Application Support/XBMC/addons/pvr.mythtv.cmyth/XBMC_MythTV_cmyth.pvr, reason: dlopen(/Users/martin/Library/Application Support/XBMC/addons/pvr.mythtv.cmyth/XBMC_MythTV_cmyth.pvr, 1): Library not loaded: libmysql.16.dylib
                                              Referenced from: /Users/martin/Library/Application Support/XBMC/addons/pvr.mythtv.cmyth/XBMC_MythTV_cmyth.pvr
                                              Reason: image not found

Any ideas?

I compiled following your new tutorial.


RE: New MythTV add-on using libcmyth - kburkart - 2012-10-16

what nightly should I use for the xbmc build?

I assume grabbing cfetzers has most of the latest of what I need




RE: New MythTV add-on using libcmyth - GregoryK - 2012-10-16

janbar:

Excellent tutorial, I was able to build the addon again and install it on the October 15 XBMC nightly! I will test tonight with my backend.

Just as a FYI, if, like me, you prefer using Homebrew over Macports, installing the brew versions of the tools and the boost headers worked for me.

Thanks again for all the support!

/GregoryK


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

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..