Kodi Community Forum
MythTV PVR client Addon Developers Wanted - Developers Only! - 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: MythTV PVR client Addon Developers Wanted - Developers Only! (/showthread.php?tid=82015)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


- therealrocket - 2011-01-12

I've just built it and I'm getting a segfault in the same place, PVRChannel.cpp (but last time this pointer wasn't null)

http://pastebin.com/akf264PP


- opdenkamp - 2011-01-12

hmm that would be in my code.

provide a full crashlog and state what source + git revision you are using.


An update - dteirney - 2011-01-16

I've got the existing mythsql work that tafypz started working against the backend now. However, I have run into a few issues with the data conversion between what the PVR interface expects and what MythTV can provide through the various interfaces.

Haven't had any luck with playing back a recording via MythXML over http either so I'm not confident that will be an option.

This week I aim to have my git repo updated with playback of Recordings and LiveTV working using the existing myth:// URLs until all the libcmyth code is moved to the PVR Addon. I'll keep testing MythXML for playback of recordings.

At this stage it looks like there will need to be some massaging of the API for the recording schedules as MythTV seems to take a different view of the world compared to VDR.


- tof06 - 2011-01-18

Hello,

I just compiled dteirney's pvr branch and notice a segfault when xbmc is trying to fetch recordings from mythtv.

After some debugging, I noticed that the "directory" field of PVR_RECORDINGINFO is never initialized.
Although this field is not required because myth backend doesn't support it, it should be initialized.
Initializing this field to NULL fixes the segfault.
The recordings from MythTV are now playing well.

Hope this helps.

Here's the simple diff :
Code:
diff --git a/xbmc/pvrclients/mythtv/MythXml.cpp b/xbmc/pvrclients/mythtv/MythXml.cpp
index f067046..39d6b1d 100644
--- a/xbmc/pvrclients/mythtv/MythXml.cpp
+++ b/xbmc/pvrclients/mythtv/MythXml.cpp
@@ -236,6 +236,7 @@ PVR_ERROR MythXml::requestRecordingsList(PVRHANDLE handle)
     tag.title = recording.title;
     tag.subtitle = recording.subtitle;
     tag.stream_url = urlPrefix + recording.stream_url;
+    tag.directory = NULL;

     PVR->TransferRecordingEntry(handle, &tag);
   }



- BenH - 2011-01-21

Sorry for the non developer comment, but with today's announcement of XBMC on Apple TV G2, you guys are now working on creating a US$99 Myth frontend.

Your work just became more valuable as I don't think you can run a mythfrontend proper for less than US$200.

All the best.

Ben


- dteirney - 2011-01-23

Small problem with playback through MythXML interface. Since the content is streamed it doesn't look like seeking will be possible which will be a show stopper. Looks like playback of recordings will also have to be done through the Myth Protocol.


- dubstar_04 - 2011-01-23

I have been trying to clone the mythtv pvr branch :

git clone git://github.com/dteirney/xbmc.git

its not pulling the pvr folders in.

so xbmc/xbmc/pvrclients doesnt exist!!


- dubstar_04 - 2011-01-28

I am trying to clone the git and still no pvr?

anyone else seeing this?


- jmarshall - 2011-01-28

You want the pvr branch: git checkout pvr

List branches with: git branch


- dubstar_04 - 2011-01-28

thats sorted it. thanks.

I have built the branch and applied:

tag.directory = NULL;

Prerecorded tv seemed to playback fine, i could skip back and forth no problem.

I am running 0.23+fixes

The channels imported but no guide data was available.

Thanks,

Dubstar_04


How to determine if channel is radio? - dteirney - 2011-01-31

I'm going to push quite a large number of changes to the MythTV PVR addon within the next week. Hopefully LiveTV, Schedules (view only) and Recorded shows will be working.

In the mean time, can someone who has radio stations as part of their backend channel listing try and determine if there is anyway to identify a channel as being radio. The channel listing is currently being obtained from the MythXML GetProgramGuide command.

For example:
http://davmyth:6544/Myth/GetProgramGuide?EndTime=2011-02-01T00:20:41&NumOfChannels=-1&StartTime=2011-02-01T00:20:41

This XML interface only returns the channel name, id, number and callsign. To determine if the channel is radio, one of those pieces of information would have to be used. Options are:

1) Use a different interface, e.g. MythProtocol or MythSQL (haven't checked what either support just yet)
2) Configuration option for which channels are radio. Not sure how cumbersome this would be if there are a lot of radio stations.
3) Use some heuristics on the 4 pieces of information available to determine, e.g. channel number > x (where x might be configuration), channel name or call sign contains word "radio" or something else (case-insensitive match, consideration for translation).
4) Something else? Other suggestions?

Don't need code, just some sensible way of supporting this feature. I don't think it will matter too much if some of the backend configuration of the channels in the MythTV server needed to be altered to support this identification in XBMC.


- dubstar_04 - 2011-01-31

GetProgramGuideResponse:

DVB-T UK:

All radio channels are chanNum="7**"

http://paste.ubuntu.com/560679/

Code:
<Channel channelName="BBC Radio 1" chanId="1700" chanNum="700" callSign="BBC Radio 1">
<Program title="Rock Show with Daniel P Carter" subTitle="Rock, metal, thrash, new music" category="Entertainment" catType="tvshow" repeat="0" endTime="2011-02-01T02:00:00" startTime="2011-02-01T00:00:00"/>
</Channel>

DVB-T DVB-S Mixed:

No Radio (Reference Only)

http://paste.ubuntu.com/560690/


- dteirney - 2011-02-01

So one of the options for the radio detection might be to configure a regular expression to match on the channel number.

None of the radio channels here have a channel number because I have currently configured them not to display through my mythbackend configuration.

http://pastebin.com/Tvzb4632

Is anyone else able to chime in regarding the radio issue to determine if that is a feasible option?


- dubstar_04 - 2011-02-01

dteirney Wrote:So one of the options for the radio detection might be to configure a regular expression to match on the channel number.

None of the radio channels here have a channel number because I have currently configured them not to display through my mythbackend configuration.

http://pastebin.com/Tvzb4632

Is anyone else able to chime in regarding the radio issue to determine if that is a feasible option?

looking here: http://www.mythtv.org/wiki/UK_Channel_Assignments

The chanNum does not follow a convention. The 7** ChanNum is only valid for UK Freeview,


- dteirney - 2011-02-02

dubstar_04 Wrote:looking here: http://www.mythtv.org/wiki/UK_Channel_Assignments

The chanNum does not follow a convention. The 7** ChanNum is only valid for UK Freeview,

Sure, so UK users would have to configure "7**" or whatever the regular expression would be. Other regions would need something different. It's worth trying that out I guess. Just need to figure out how to do the RegExp from an Addon.