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 - richardambridge - 2013-01-30

Congratulations to the MythTV Add-on team on the release of Frodo. Some excellent effort.
It is great to have a small PC in the lounge connected to my mythtv and to be able to watch my recordings easily.

Every now and then I think, maybe I should buy a Humax or Freeview+ box or something, but then XBMC and MythTV show how much better life can be.

Congratulations again.


RE: New MythTV add-on using libcmyth - Bedlore - 2013-01-30

Here here! I've been a long devote myth-frontend user with Plex for movies. For the last month I've been trialing Frodo RC as a myth/movie etc combined. I've been really happy with the stability and progress, I've been holding my family off from forcing me to change back with promises that 'ad skipping' is coming Smile

Thanks for the #1st class work.


RE: New MythTV add-on using libcmyth - fetzerch - 2013-01-30

(2013-01-10, 01:54)grouser53 Wrote:
(2013-01-08, 21:33)cfetzer Wrote: Have you seen the seek problem also in previous versions? There were a couple of commits in xbmc recently that claim to have fixed some problems in seeking pvr streams.
Can you try to use tomorrow's nightly build?

I loaded the nightly build 20130109 and the issue persists. I realize that you don't think this is addon related, but the xbmc player (omxplayer in raspbmc) seek works correctly when the mythtv recordings directory is mounted via nfs to the pi. I read somewhere (maybe in this forum) that some conversion needs done between time and frame seeking in the addon. Could that be contributory? I've noticed that the skip commercial functionality of mythtv also doesn't work correctly on these recordings. It usually skips too far. These recordings were encoded by a Hauppauge 1600 from an analog cable feed. The times listed in mythtv for the longer recordings also appear incorrect with 1 hour recordings showing around 52 minutes. Perhaps if you or janbar could take a look at the log http://www.mediafire.com/download.php?20idnuhryfyroee there might be some hints. Thank you for your attention to this and your and janbar's work on the addon.

(2013-01-27, 15:57)richardk Wrote:
(2013-01-27, 12:06)cfetzer Wrote: We have still not released our changes (from the development repo into the official one). That's why you still see the issues in all platforms.
It only works if you build directly from the dev repository...

Ok, that makes sense. Since the version number had changed to 1.6.7, I assumed that I was getting the latest addon build.

I'd be happy to test the new version on Raspberry Pi if you can point me to instructions for building it for that platform, or a pre-built image.

Here's how you can build a custom openelec version that compiles the addon from our development sources.
The openelec build system wants to download all source packages from a web server, that's why it's a bit tricky to build.
Also be aware that the first build takes several hours since it build the complete distro.

Code:
git clone git://github.com/OpenELEC/OpenELEC.tv.git
cd OpenELEC.tv

Modify the script 'tools/mkpkg/mkpkg_xbmc-pvr-addons' and
replace the url with git://github.com/fetzerch/xbmc-pvr-addons.git
Then run this script. It will create a source tarball that you have to
upload to a (local) http server.

Edit packages/mediacenter/xbmc-pvr-addons/meta:
Edit the PKG_VERSION, PKG_SITE and PKG_URL with the data of the
uploaded source tarball.

Code:
PROJECT=RPi ARCH=arm make release

References:
http://wiki.openelec.tv/index.php?title=Compile_from_source
http://wiki.openelec.tv/index.php?title=Building_and_Installing_OpenELEC_for_Raspberry_Pi

Hope this helps!
(2013-01-30, 10:54)richardambridge Wrote: Congratulations to the MythTV Add-on team on the release of Frodo. Some excellent effort.
It is great to have a small PC in the lounge connected to my mythtv and to be able to watch my recordings easily.

Every now and then I think, maybe I should buy a Humax or Freeview+ box or something, but then XBMC and MythTV show how much better life can be.

Congratulations again.

(2013-01-30, 11:32)Bedlore Wrote: Here here! I've been a long devote myth-frontend user with Plex for movies. For the last month I've been trialing Frodo RC as a myth/movie etc combined. I've been really happy with the stability and progress, I've been holding my family off from forcing me to change back with promises that 'ad skipping' is coming Smile

Thanks for the #1st class work.

Thanks a lot guys and also a big thanks to janbar for all his work!
Its really nice to have the addon added to the official xbmc repos.
Now we're doing our best to get an update out with the current bugfixes and improvements.
With the pvr repos in place it should be possible to roll it out soon.

And then indeed, 'commercial skipping' is one of the next big todos and as you might have seen,
the work is already in progress.

Cheers,
Christian


RE: New MythTV add-on using libcmyth - richardk - 2013-01-30

(2013-01-30, 21:28)cfetzer Wrote: Here's how you can build a custom openelec version that compiles the addon from our development sources.
The openelec build system wants to download all source packages from a web server, that's why it's a bit tricky to build.
Also be aware that the first build takes several hours since it build the complete distro.

Code:
git clone git://github.com/OpenELEC/OpenELEC.tv.git
cd OpenELEC.tv

Modify the script 'tools/mkpkg/mkpkg_xbmc-pvr-addons' and
replace the url with git://github.com/fetzerch/xbmc-pvr-addons.git
Then run this script. It will create a source tarball that you have to
upload to a (local) http server.

Edit packages/mediacenter/xbmc-pvr-addons/meta:
Edit the PKG_VERSION, PKG_SITE and PKG_URL with the data of the
uploaded source tarball.

Code:
PROJECT=RPi ARCH=arm make release

References:
http://wiki.openelec.tv/index.php?title=Compile_from_source
http://wiki.openelec.tv/index.php?title=Building_and_Installing_OpenELEC_for_Raspberry_Pi

Hope this helps!
(2013-01-30, 10:54)richardambridge Wrote: Congratulations to the MythTV Add-on team on the release of Frodo. Some excellent effort.
It is great to have a small PC in the lounge connected to my mythtv and to be able to watch my recordings easily.

Every now and then I think, maybe I should buy a Humax or Freeview+ box or something, but then XBMC and MythTV show how much better life can be.

Congratulations again.

(2013-01-30, 11:32)Bedlore Wrote: Here here! I've been a long devote myth-frontend user with Plex for movies. For the last month I've been trialing Frodo RC as a myth/movie etc combined. I've been really happy with the stability and progress, I've been holding my family off from forcing me to change back with promises that 'ad skipping' is coming Smile

Thanks for the #1st class work.

Thanks a lot guys and also a big thanks to janbar for all his work!
Its really nice to have the addon added to the official xbmc repos.
Now we're doing our best to get an update out with the current bugfixes and improvements.
With the pvr repos in place it should be possible to roll it out soon.

And then indeed, 'commercial skipping' is one of the next big todos and as you might have seen,
the work is already in progress.

Cheers,
Christian

Thanks, Christian! I would never have figured that out on my own. It's compiling now, but will probably take at least six hours on my Ubuntu system (which is not very new).

If this works, I'll probably compile for ION also.

I'll report back.


RE: New MythTV add-on using libcmyth - apnar - 2013-01-31

(2013-01-30, 21:28)cfetzer Wrote: Here's how you can build a custom openelec version that compiles the addon from our development sources.
The openelec build system wants to download all source packages from a web server, that's why it's a bit tricky to build.
Also be aware that the first build takes several hours since it build the complete distro.

Code:
git clone git://github.com/OpenELEC/OpenELEC.tv.git
cd OpenELEC.tv

Modify the script 'tools/mkpkg/mkpkg_xbmc-pvr-addons' and
replace the url with git://github.com/fetzerch/xbmc-pvr-addons.git
Then run this script. It will create a source tarball that you have to
upload to a (local) http server.

Edit packages/mediacenter/xbmc-pvr-addons/meta:
Edit the PKG_VERSION, PKG_SITE and PKG_URL with the data of the
uploaded source tarball.

Code:
PROJECT=RPi ARCH=arm make release

References:
http://wiki.openelec.tv/index.php?title=Compile_from_source
http://wiki.openelec.tv/index.php?title=Building_and_Installing_OpenELEC_for_Raspberry_Pi

Hope this helps!

There are a few ways to skin the cat for this one. I thought I'd share a small shell script I use to inject the latest cmyth into OpenELEC source. It's not as clean as the method suggested above, but there is no need for an http server and it can be easily run as a single script:


Code:
#!/bin/bash

# change path to where you keep your git clone
cd /tank/xbmc/openelec-git/OpenELEC.tv

source ./packages/mediacenter/xbmc-pvr-addons/meta

if [ ! -d ./sources/$PKG_NAME/ ]; then
    mkdir -p ./sources/$PKG_NAME/
fi

wget --no-check-certificate https://github.com/fetzerch/xbmc-pvr-addons/archive/master.zip
unzip master.zip
mv xbmc-pvr-addons-master $PKG_NAME-$PKG_VERSION
tar -cJf $PKG_NAME-$PKG_VERSION.tar.xz $PKG_NAME-$PKG_VERSION
rm -r $PKG_NAME-$PKG_VERSION master.zip

mv $PKG_NAME-$PKG_VERSION.tar.xz ./sources/$PKG_NAME/
md5sum sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz > sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.md5
echo "http://sources.openelec.tv/devel/$PKG_NAME-$PKG_VERSION.tar.xz" > ./sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.url


rm -rf ./build.OpenELEC*/.stamps/xbmc-pvr-addons ./build.OpenELEC*/xbmc-pvr-addons-* ./build.OpenELEC*/image/.stamps/xbmc-pvr-addons



RE: New MythTV add-on using libcmyth - richardk - 2013-01-31

Thank you, apnar!! Your script worked great, and I was able to build OpenELEC with the new cmyth addon version! (I wasn't able to get the web server trick to work, so this was a lifesaver.)

I updated our Raspberry Pi, and the addon seems to be working perfectly. We'll try using it as our primary XBMC system today, and give it a good workout.

If anyone would like to try it (at your own risk, of course), I've shared it here:

http://www.mediafire.com/?ch12hu0dxee5oac

I'm building the same version for ION x86_64, but it will take about seven hours on my somewhat elderly Ubuntu system.

Thanks again also to fetzerch for the detailed responses here, and for all the great work on these addons! This will be something my wife and I will use every day.


RE: New MythTV add-on using libcmyth - mardibloke - 2013-01-31

Thanks for building and sharing


RE: New MythTV add-on using libcmyth - fetzerch - 2013-01-31

(2013-01-31, 06:01)apnar Wrote: There are a few ways to skin the cat for this one. I thought I'd share a small shell script I use to inject the latest cmyth into OpenELEC source. It's not as clean as the method suggested above, but there is no need for an http server and it can be easily run as a single script:

Code:
#!/bin/bash

# change path to where you keep your git clone
cd /tank/xbmc/openelec-git/OpenELEC.tv

source ./packages/mediacenter/xbmc-pvr-addons/meta

if [ ! -d ./sources/$PKG_NAME/ ]; then
    mkdir -p ./sources/$PKG_NAME/
fi

wget --no-check-certificate https://github.com/fetzerch/xbmc-pvr-addons/archive/master.zip
unzip master.zip
mv xbmc-pvr-addons-master $PKG_NAME-$PKG_VERSION
tar -cJf $PKG_NAME-$PKG_VERSION.tar.xz $PKG_NAME-$PKG_VERSION
rm -r $PKG_NAME-$PKG_VERSION master.zip

mv $PKG_NAME-$PKG_VERSION.tar.xz ./sources/$PKG_NAME/
md5sum sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz > sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.md5
echo "http://sources.openelec.tv/devel/$PKG_NAME-$PKG_VERSION.tar.xz" > ./sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.url


rm -rf ./build.OpenELEC*/.stamps/xbmc-pvr-addons ./build.OpenELEC*/xbmc-pvr-addons-* ./build.OpenELEC*/image/.stamps/xbmc-pvr-addons

Nice! I wasn't aware that you can build it like this. This is definitively something for our wiki (http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource).

Cheers,Christian


RE: New MythTV add-on using libcmyth - richardk - 2013-02-01

(2013-01-31, 16:10)richardk Wrote: Thank you, apnar!! Your script worked great, and I was able to build OpenELEC with the new cmyth addon version! (I wasn't able to get the web server trick to work, so this was a lifesaver.)

I updated our Raspberry Pi, and the addon seems to be working perfectly. We'll try using it as our primary XBMC system today, and give it a good workout.

If anyone would like to try it (at your own risk, of course), I've shared it here:

http://www.mediafire.com/?ch12hu0dxee5oac

I'm building the same version for ION x86_64, but it will take about seven hours on my somewhat elderly Ubuntu system.

Thanks again also to fetzerch for the detailed responses here, and for all the great work on these addons! This will be something my wife and I will use every day.

The ION x86_64 build is now complete, and appears to be working flawlessly. You can download it here:

http://www.mediafire.com/?3lb9z64626jircr

Again, use at your own risk.



RE: New MythTV add-on using libcmyth - apnar - 2013-02-02

(2013-01-31, 21:25)cfetzer Wrote: Nice! I wasn't aware that you can build it like this. This is definitively something for our wiki (http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource).

Good idea, I went ahead and dropped the script into that wiki page.

On another note, how are you guys handling version numbers? I have had some trouble in the past keeping track of which versions are in which builds or trees. It'd be nice if your repo was always a higher version number then those you bubble up (unless they are identical of course).




RE: New MythTV add-on using libcmyth - pyrodex - 2013-02-02

Now that Frodo is released when there are changes to the MythTV Addon do we have to wait for Frodo 12.1 or will someone publish the addon updates like other addons? Didn't know if PVR addons were treated differently and when they release schedule would be for them.


RE: New MythTV add-on using libcmyth - richardk - 2013-02-02

I'm seeing -- and another user has also reported -- one more anomaly that may be related to this add-on.

The longer my MythTV system is up, the more cpu time the mythbackend process uses when a remote XBMC system is playing a video. Eventually, the cpu load becomes so high that we get stuttering. A reboot of the MythTV box always fixes the problem, but only temporarily.

I performed a little experiment. I started up an ssh session to my MythTV box, and ran top so that I could monitor cpu usage for the mythbackend process.

On my frontend machine (Acer AspireRevo 1600 running Ubuntu) I started Mythfrontend and played an episode of a program recorded at 1080i. Checking the MythTV system, the mythbackend process' cpu load was hovering around 20%.

Next, I closed Mythfrontend and started XBMC on the same machine under Ubuntu. I used it to play the exact same episode. Now mythbackend was consuming about 50% cpu time consistently.

Clearly, there's something different about how XBMC interacts with the MythTV backend system. Since non-XBMC MythTV users don't seem to be reporting problems with excessive cpu load with Mythbackend, I wonder if XBMC or the cmyth plugin are somehow triggering the problem.


RE: New MythTV add-on using libcmyth - fetzerch - 2013-02-02

(2013-02-02, 04:29)apnar Wrote:
(2013-01-31, 21:25)cfetzer Wrote: Nice! I wasn't aware that you can build it like this. This is definitively something for our wiki (http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource).

Good idea, I went ahead and dropped the script into that wiki page.

On another note, how are you guys handling version numbers? I have had some trouble in the past keeping track of which versions are in which builds or trees. It'd be nice if your repo was always a higher version number then those you bubble up (unless they are identical of course).

Thanks, I guess that helps people a lot!
BTW: If anyone knows the raspbmc or android build system and how to build from a different addon repo: It would be nice to add this to the wiki too!

You're right, the version numbering is a bit messy Undecided After the next release, we will immediately bump the number. (Better would be to have something like 1.6.8_DEV to make it clear that it's an unreleased version. But i don't think that's possible.

(2013-02-02, 06:12)pyrodex Wrote: Now that Frodo is released when there are changes to the MythTV Addon do we have to wait for Frodo 12.1 or will someone publish the addon updates like other addons? Didn't know if PVR addons were treated differently and when they release schedule would be for them.

Should be possible hopefully.
Since the developement version is stable now and a huge improvement to the current version, it would be a very good time to release it.

Let's see: https://github.com/opdenkamp/xbmc-pvr-addons/pull/165


RE: New MythTV add-on using libcmyth - apnar - 2013-02-02

(2013-02-02, 17:20)cfetzer Wrote: You're right, the version numbering is a bit messy Undecided After the next release, we will immediately bump the number. (Better would be to have something like 1.6.8_DEV to make it clear that it's an unreleased version. But i don't think that's possible.

How about something sort of old school Linux style with odd numbers being development and even being release. I'd suggest the following....

-next commit to your repo bump version to 1.7.0
-over devel cycle bump up occasionally to 1.7.1, 1.7.2, 1.7.3, etc.
-prior to submitting pull request to opdenkamp bump to 1.8.0
-any changes to get pull approved can result in 1.8.1, 1.8.2 etc.
-after pull is approved, on next commit bump to 1.9.0 for next round of development


RE: New MythTV add-on using libcmyth - fetzerch - 2013-02-02

The 1.6 prefix has to match XBMC's pvr api version. But maybe we have odd numbers in development and even numbers for releases or so.