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 - vskatusa - 2012-03-31 03:00

Mythbox + EDEN + Windows 7
=======================

I get this message very often and use the ESC key to get over it...I never got this message in the previous version of XBMC....Can any developer help me in getting rid of this error?

Error: onllit
cannot import name decodelonglong


RE: New MythTV add-on using libcmyth - Sooty - 2012-03-31 07:52

Can someone clarify for me.

Is the windows build on the first page a specific frontend xbmc pvr build for mythtv? If so Is it possible to get a mythtv backend for windows?

All the installing mythtv links on the first page refer to Linux and the mythtv website only refers to Linux too.

Is it possible to have both backend and front end on one windows machine?

If so can someone point me in the direction of how to install mytv backend on windows?.

Thanks in advance,


RE: New MythTV add-on using libcmyth - vskatusa - 2012-03-31 17:30

I installed the PVR binary for windows on the FIRST page of this post...I do not see the LIVE TV option...is there a plugin I must install? How do I configure my mythtv backend with this PVR build for windows? Any help would be much appreciated


RE: New MythTV add-on using libcmyth - vskatusa - 2012-03-31 19:30

Changed to confluence (AEON NOX did not show LIVE TV) skin and now see LIVE TV....configured the PVR CMYTH plugin but get error.

Here is the paste bin

This is windows 7 ....

I know my configuration is accurate because I copied the configuration parameters from working mythbox plugin


RE: New MythTV add-on using libcmyth - callummc - 2012-04-01 13:46

Does this plugin use Eden and support MythTV 0.24.2?


RE: New MythTV add-on using libcmyth - Powderking - 2012-04-01 19:54

Here's a page about MythTV and Windows:
http://www.mythtv.org/wiki/MythTV_on_Windows

@callummc: Yes to both.


RE: New MythTV add-on using libcmyth - callummc - 2012-04-02 05:11

@Powderking - Awesome! Thanks for the reply.


RE: New MythTV add-on using libcmyth - callummc - 2012-04-02 05:22

If I understand it correctly - the 0.25 release of MythTV is due to be finalised within the next 24 hours or so. Is there going to be significant updates to this plugin after that?

I understand they implement a new API and it occurred to me that it might break with historical MythTV versions if the intention is to target 0.25.

Or is there intentions to support multiple versions with this plugin?


RE: New MythTV add-on using libcmyth - fiveisalive - 2012-04-03 16:46

(2012-04-02 05:22)callummc Wrote:  If I understand it correctly - the 0.25 release of MythTV is due to be finalised within the next 24 hours or so. Is there going to be significant updates to this plugin after that?

I understand they implement a new API and it occurred to me that it might break with historical MythTV versions if the intention is to target 0.25.

Or is there intentions to support multiple versions with this plugin?

I'm not sure what will happen when 0.25 is released, but I know that this add-on works with my old installation of version 0.23-fixes, as well as version 0.24 (from many others on this thread), so it currently works across at least two major revisions.


RE: New MythTV add-on using libcmyth - dodoadoodoo - 2012-04-03 19:38

We quite often use "chase play" (start a recording, wait a while, begin watching while still recording) in our house. This basically works well, with the exception that the recording length is not updated while watching, it is firmly set to whatever the length was when you started watching. Not a big a deal unless you want to skip forward, at which point it becomes very annoying. Anyway, I took a look at the code, and it seems that the backend periodically informs the frontend of updated recording sizes via the CMYTH_EVENT_UPDATE_FILE_SIZE. So, I added some code in MythEventHandler::ImpMythEventHandler::Action() to store this information, and adapted PVRClientMythTV::LengthRecordedStream() to check if the EventHandler has any uptodate info. This works well, except for the little detail that LengthRecordedStream really should return the length of the stream (as seconds I presume) and not the size in bytes as provided by the backend event.

Now to my questions:
1. Am I going about this the right way?
2. Have I understood the expected units correctly?
3. If yes and yes, then how do I convert the file size to duration? I guess dividing the size with the average bitrate would do the trick, but how would I find the average bitrate?
4. Is there a simpler way to do this?

/D