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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: PVR Development (/forumdisplay.php?fid=136)
+--- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694)



RE: New MythTV add-on using libcmyth - Paradox - 2012-05-17 17:02

I'm trying what tdavis did above..


RE: New MythTV add-on using libcmyth - FrogBoy - 2012-05-18 00:38

(2012-05-13 00:09)tdavis Wrote:  I did this:

Code:
mkdir xbmc
cd xbmc
git clone --branch myth-0.25 https://github.com/dteirney/xbmc.git dt
cd dt
git diff 00e6c1c > ../xbmc-myth-0.25.patch
cd ..
git clone https://github.com/tsp/xbmc.git tsp
cd tsp/
patch -p1 < ../xbmc-myth-0.25.patch

And then patch lib/cmyth/libcmyth/connection.c with

Code:
--- tsp2/lib/cmyth/libcmyth/connection.c        2012-05-12 15:08:00.476169895 -0700
+++ tsp/lib/cmyth/libcmyth/connection.c 2012-05-11 11:03:48.980341238 -0700
@@ -754,6 +754,11 @@
                          __FUNCTION__, host, port, buflen);
                goto shut;
        }
+        /*
+        * Explicitly set the conn version to the control version as cmyth_connect() doesn't and some of
+        * the cmyth_rcv_* functions expect it to be the same as the protocol version used by mythbackend.
+        */
+       conn->conn_version = control->conn_version;

        ann_size += strlen(path) + strlen(my_hostname) + strlen(sgToGetFrom) + 6;
        announcement = malloc(ann_size);

and compiled it up.

Everything works - LiveTV, Recordings, EPG.

Thanks, I did exactly this and the connection to Myth 0.25 seems to be working. I am having stability issues with my build of XBMC generally but the Myth connection seems to work.

One thing I did notice is that channel switching when watching live TV seems very slow (10-15 seconds), is this expected?


RE: New MythTV add-on using libcmyth - tsp42 - 2012-05-18 01:23

The code for MythTV 0.25 is now added from dteirney's site so you don't have to apply the patch.

FrogBoy: Yes the channel switching is very slow right now. I had to change the code to avoid a deadlock when changing the channels after I enabled time shifting.

fiveisalive: The patch against the ffmpeg code adds support for multichannel aac. You don't need the patch if you use an external ffmpeg library.


RE: New MythTV add-on using libcmyth - Paradox - 2012-05-18 02:04

Applied the patch as well and the channel switching is slow. So we can just clone https://github.com/dteirney/xbmc.git build/install this now?

General question...Can timeshifting be turned off?

TSP, you're a legend. Do you use an IDE for your development? If so, which one?


RE: New MythTV add-on using libcmyth - cfetzer - 2012-05-18 10:28

Can anyone confirm that the multiplex tuner selction is fixed with mythtv 0.25?

https://github.com/tsp/xbmc/issues/9


RE: New MythTV add-on using libcmyth - bilbonvidia - 2012-05-18 12:46

(2012-05-18 01:23)tsp42 Wrote:  The code for MythTV 0.25 is now added from dteirney's site so you don't have to apply the patch.

FrogBoy: Yes the channel switching is very slow right now. I had to change the code to avoid a deadlock when changing the channels after I enabled time shifting.

hi tsp42, regarding the code change re-deadlock, is this since I had my channel change issue or was it implemented already before eden-pvr? If I am on new the new code, did you see anything obvious in that gdb dump?

Also, is this now compatible with mythtv 0.25?


Thank you


RE: New MythTV add-on using libcmyth - kburkart - 2012-05-18 15:46

Ok, got myth25 working following the above instructions. Had the system freeze up on me once, but overall things look great. The next question I have is does anybody have this working as a server running PXE boot to diskless headends? If so could you point me to how this is setup.

thanks,
Kevin


RE: New MythTV add-on using libcmyth - fiveisalive - 2012-05-18 16:15

(2012-05-18 01:23)tsp42 Wrote:  The code for MythTV 0.25 is now added from dteirney's site so you don't have to apply the patch.
It looks like there is now a new branch "Eden-Pvr" (in addition to "Eden-pvr", note lowercase), so it seems the branch has been duplicated, was this intentional, or was a new branch created inadvertantly? See: https://github.com/tsp/xbmc/branches
Quote:fiveisalive: The patch against the ffmpeg code adds support for multichannel aac. You don't need the patch if you use an external ffmpeg library.

Thanks, good to know. Which files can I then exclude from the patch? From trial and error, I noted it was not sufficient to exclude only files in lib/ffmpegm U also had to exclude files in codecs/DVDplayer in order for the compile to work. I'm guessing because there was some kind of API change.


RE: New MythTV add-on using libcmyth - tdavis - 2012-05-18 18:00

(2012-05-18 15:46)kburkart Wrote:  Ok, got myth25 working following the above instructions. Had the system freeze up on me once, but overall things look great. The next question I have is does anybody have this working as a server running PXE boot to diskless headends? If so could you point me to how this is setup.

thanks,
Kevin

The closes I can come is to use OpenElec.tv but - that does not have the 0.25 fixes, or this plugin built in. I haven't tried to build OpenElec lately - they are also headed to a 2.0 release.

I PXE boot MiniMyth 0.25 and OpenElec.. that way, I can pick and choose what I want to use. Got to keep the WAF up there, she's crazy enough about her Kylin TV (Chinese palace dramas.. She just loves them!)


RE: New MythTV add-on using libcmyth - sos_xbmc - 2012-05-19 03:43

I just joined the forum to say that this cmyth interface works great (although only had a couple of hours to play around so far - and I'm brand new to using xbmc)! I'd previously tried and failed to get the mythbox plugin working with myth 0.24, and with 0.25 nothing worked (until now).

I just compiled this brach from the git source this morning (on Arch linux). Seamless integration and detection of my 0.25 myth backend. Picked up the EPG data and channels correctly and watched my first TV in xbmc. Nice.

Main advantages over mythfrontend: slick interface, weather works.
Main disadvantage: a bit more cumbersome to navigate the menus for pictures, video and TV. Also slower to tune to the TV stream.

I'll keep playing with it and feedback any issues - and am looking forward to ongoing development Smile