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

(2012-10-10, 23:41)janbar Wrote:
(2012-09-30, 00:46)janbar Wrote: @pgjensen

Right, sometime playback stop. I saw logs and some errors in stream are reported by mythbackend. Then It skip frames and ring buffer is empty for a short period. Probably we need to add a delay when buffer is empty before return and finally stop playback because no stream... I take note.
When tune is not very good, lot of frames are skipped. With a fast channel switch the "timeshift" is short and when buffer cannot to be filled the playback stop.

(2012-10-10, 19:49)cfetzer Wrote: @jskube - The GetPreviewIconPath message doesn't mean that the file is downloaded, it means the addon requests the path to the cached image. The images should be downloaded only once.
However we're now suspending the image download during playback. When you stopped the playback, the remaining images should be loaded and displayed. I'll disable the message soon if we know that the cache is working.

For osx builds we need to create the xcode project and replace all .at() calls by propper find + [] calls since those are cpp11.
Hi, cfetzer
All seem good for the addon. It is very stable and timeout work great when network pipe with the backend is congested. Program beak works without issues (since 1 days non-stop).
I just made build for OSX and it works greats without any change (for the moment). But now i must to update packaging for user like update Makefile and adding link for dependencies boost libs and mysqlcient lib.
Nota: for OSX leopard 10.6.8 - Also i build it without use Xcode project.
I am trying to simplify the process using "make" style like others pvr add-ons. But using Xcode project is also a way.



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

@all Mac (brave) users

See below the tutorial to build addon and test it with your Mac:


1 - First install "port" for your Mac:
=============================

1.1 - Install Xcode for your Mac: Go to http://connect.apple.com/

Snow leopard: Xcode 3.2.6
Lion: Xcode 4.3
Mountain Lion: Xcode 4.4

1.2 - Install "port": Go to http://http://www.macports.org/install.php

Prefer Mac OS X Package (.pkg) installer specific for your Mac ( Mountain Lion, Lion, Snow Leopard)

At this stage use Terminal console.
**********************************

2 - Configure port using Terminal console:
===================================

sudo port selfupdate

(sudo need your favorite password)

3 - Add new port needed to build addon:
==================================

sudo port install boost

sudo port install mysql5-devel

4 - Create links from ports
======================

4.1 Headers file

sudo ln -s /opt/local/include/mysql5/mysql /usr/include/mysql

sudo ln -s /opt/local/include/boost /usr/include/boost

4.2 Libtool

cd /opt/local ; for file in lib/libboost*.a; do sudo ln -s /opt/local/$file /usr/$file; done

sudo ln -s /opt/local/lib/libmysqlclient.a /usr/local/lib/libmysqlclient.a


5 - BUILD / INSTALL ADDON (please wait cfetzer pull request of my last commits about OSX)
=============================================================================

5.1 git clone

cd ; mkdir src ; cd src

git clone git://github.com/fetzerch/xbmc-pvr-addons.git xbmc-pvr-addons

5.2 Build

cd xbmc-pvr-addons

./bootstrap
./configure
make
make zip

Get "addons/pvr.mythtv.cmyth-darwin-unknown.zip" and upload it with "XBMC add addon from zip file".

5.3 To rebuild it after git pull or others change:

cd xbmc-pvr-addons

make distclean

Then restart 5.2

Br.



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

(2012-10-11, 14:54)janbar Wrote: @all Mac (brave) users

See below the tutorial to build addon and test it with your Mac:


1 - First install "port" for your Mac:
=============================

1.1 - Install Xcode for your Mac: Go to http://connect.apple.com/

Snow leopard: Xcode 3.2.6
Lion: Xcode 4.3
Mountain Lion: Xcode 4.4

1.2 - Install "port": Go to http://http://www.macports.org/install.php

Prefer Mac OS X Package (.pkg) installer specific for your Mac ( Mountain Lion, Lion, Snow Leopard)

At this stage use Terminal console.
**********************************

2 - Configure port using Terminal console:
===================================

sudo port selfupdate

(sudo need your favorite password)

3 - Add new port needed to build addon:
==================================

sudo port install boost

sudo port install mysql5-devel

4 - Create links from ports
======================

4.1 Headers file

sudo ln -s /opt/local/include/mysql5/mysql /usr/include/mysql

sudo ln -s /opt/local/include/boost /usr/include/boost

4.2 Libtool

cd /opt/local ; for file in lib/libboost*.a; do sudo ln -s /opt/local/$file /usr/$file; done

sudo ln -s /opt/local/lib/libmysqlclient.a /usr/local/lib/libmysqlclient.a


5 - BUILD / INSTALL ADDON (please wait cfetzer pull request of my last commits about OSX)
=============================================================================

5.1 git clone

cd ; mkdir src ; cd src

git clone git://github.com/fetzerch/xbmc-pvr-addons.git xbmc-pvr-addons

5.2 Build

cd xbmc-pvr-addons

./bootstrap
./configure
make
make zip

Get "addons/pvr.mythtv.cmyth-darwin-unknown.zip" and upload it with "XBMC add addon from zip file".

5.3 To rebuild it after git pull or others change:

cd xbmc-pvr-addons

make distclean

Then restart 5.2

Br.

Is it possible to get instructions like this for all distros, put out on the PVR wiki? It would make things easier for anyone who would like to use/test these changes



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

(2012-10-11, 14:54)janbar Wrote: @all Mac (brave) users

See below the tutorial to build addon and test it with your Mac:

Thanks a lot for the instructions janbar! Smile

Should we just use the compiled addon with the latest official Frodo nightlies from xbmc.org?


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

Damn, this just makes me more frustrated since my backend server issues forced me to upgrade to 0.26. Anyone want to take a look at getting this to work with a .26 backend? I added the lines I was told to add in connection.c and now the addon will connect to my backend and grab channels and EPG, however when I try to watch liveTV it tries to tune all 4 of my tuners at once and then wont play any of them.


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

(2012-10-11, 15:35)Ayla Wrote:
(2012-10-11, 14:54)janbar Wrote: @all Mac (brave) users

See below the tutorial to build addon and test it with your Mac:

Thanks a lot for the instructions janbar! Smile

Should we just use the compiled addon with the latest official Frodo nightlies from xbmc.org?

Yes you can. It is not necessary to build XBMC. Download nigthly X64bits versions (10-10-2012, i try with it). And setup port to build X64bits also (or mixed binary 32bits and 64bits).

(2012-10-11, 16:33)allen00se Wrote: Damn, this just makes me more frustrated since my backend server issues forced me to upgrade to 0.26. Anyone want to take a look at getting this to work with a .26 backend? I added the lines I was told to add in connection.c and now the addon will connect to my backend and grab channels and EPG, however when I try to watch liveTV it tries to tune all 4 of my tuners at once and then wont play any of them.

Can you downgrade it ? use your database backup stored by myth before upgrade. For instance time is short to work on the new MythTV release and i can't promise you when we will working on it.


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

janbar,

Just to be sure; following your Mac instructions, do we have to run "make", before we run "make zip"?

Last time I tried to compile the addons, I only used "make zip", if I remember correctly.

Thanks,


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

(2012-10-11, 18:49)Ayla Wrote: janbar,

Just to be sure; following your Mac instructions, do we have to run "make", before we run "make zip"?

Last time I tried to compile the addons, I only used "make zip", if I remember correctly.

Thanks,

Yes , if you type "make zip" , that's build all until to generate zip file. So you can type only "make zip"



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

(2012-10-10, 22:44)robweber Wrote: As requested I created a wiki page under PVR/MythTV (http://wiki.xbmc.org/index.php?title=PVR/MythTV) for more information on the MythTV PVR integration process. I took the template as defined by the other addons that already had pages setup and modified it with Myth specific information.

I put in a placeholder for now where a screenshot of the addon settings area should go, with descriptions of the settings. If anyone can upload a pic (Confluence skin only to conform with the wiki) of the settings page that would be helpful.

done



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

Just to confirm, these instructions work on Mac OS X 10.8.2 Mountain Lion.

I successfully compiled the addons.

But, on OS X 10.8.x you have to port install "mysql55" (it has replaced mysql5-devel); and you need to change the paths in step 4. accordingly.

Thanks again janbar Smile

/Martin

(2012-10-11, 14:54)janbar Wrote: @all Mac (brave) users

See below the tutorial to build addon and test it with your Mac:


1 - First install "port" for your Mac:
=============================

1.1 - Install Xcode for your Mac: Go to http://connect.apple.com/

Snow leopard: Xcode 3.2.6
Lion: Xcode 4.3
Mountain Lion: Xcode 4.4

1.2 - Install "port": Go to http://http://www.macports.org/install.php

Prefer Mac OS X Package (.pkg) installer specific for your Mac ( Mountain Lion, Lion, Snow Leopard)

At this stage use Terminal console.
**********************************

2 - Configure port using Terminal console:
===================================

sudo port selfupdate

(sudo need your favorite password)

3 - Add new port needed to build addon:
==================================

sudo port install boost

sudo port install mysql5-devel

4 - Create links from ports
======================

4.1 Headers file

sudo ln -s /opt/local/include/mysql5/mysql /usr/include/mysql

sudo ln -s /opt/local/include/boost /usr/include/boost

4.2 Libtool

cd /opt/local ; for file in lib/libboost*.a; do sudo ln -s /opt/local/$file /usr/$file; done

sudo ln -s /opt/local/lib/libmysqlclient.a /usr/local/lib/libmysqlclient.a


5 - BUILD / INSTALL ADDON (please wait cfetzer pull request of my last commits about OSX)
=============================================================================

5.1 git clone

cd ; mkdir src ; cd src

git clone git://github.com/fetzerch/xbmc-pvr-addons.git xbmc-pvr-addons

5.2 Build

cd xbmc-pvr-addons

./bootstrap
./configure
make
make zip

Get "addons/pvr.mythtv.cmyth-darwin-unknown.zip" and upload it with "XBMC add addon from zip file".

5.3 To rebuild it after git pull or others change:

cd xbmc-pvr-addons

make distclean

Then restart 5.2

Br.




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

and if your looking to compile on Fedora 17 (XBMC-Frodo & PVR)

it's a no-go due to the need for a newer library (taglib needs to 1.8, and F17 only has 1.7)..



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

I noticed now I cannot rewind, fast forward, or pause my recordings. I haven't been able to do that with live tv for a while now but it has always worked for recorded television. Is this expected or have I broken something in my setup while playing around with stuff?


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

(2012-10-12, 01:04)tdavis Wrote: and if your looking to compile on Fedora 17 (XBMC-Frodo & PVR)

it's a no-go due to the need for a newer library (taglib needs to 1.8, and F17 only has 1.7)..

Hi, You can build it from source. Also source are include with XBMC. See docs/readme....


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

I am seeing the same issue as jskube: no fast forward or rewind on recorded TV. I'm on xbmc commit 7062904f939d0f99b8d946f6bcaf206bc18ee2a2 from Oct 10, and on cfetzer/xbmc-pvr-addons 1ef70179e34f07a6b3a8ba763c2c8f28c1adf3d6 from Oct 9.


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

confirmed no FF or Rewind.