Kodi Community Forum
WMC as the backend - released - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: Windows Media Center (WMC) (https://forum.kodi.tv/forumdisplay.php?fid=205)
+---- Thread: WMC as the backend - released (/showthread.php?tid=171216)



RE: WMC as the backend - released - krustyreturns - 2013-09-17

(2013-09-17, 21:52)Powerhouse Wrote: and for your custom Series recordings, these 2 XML files are needed...

DeleteTimer.xml
RecordPrefs.xml

So when I click 'Record' from the first dialog box, will it then prompt me if I want to make this a Series Recording? Or will I have a new dialog box that says 'Switch, Record, Record Series, Ok'?

After you click record, it will probably throw up another yes/no dialog that says something like 'do you want to record ...' , after you click 'yes' on this one - if the episode is part of a series - the custom dialog will appear asking if you want to record the series or episode. If you say series, it gives more options. Similar for deleting a series timer.


RE: WMC as the backend - released - papreston - 2013-09-17

Just wanted to say I also got this working on the PI.... Live TV and recorded TV playing back very well.

Thanks again!!!!


RE: WMC as the backend - released - scarecrow420 - 2013-09-17

(2013-09-17, 22:17)papreston Wrote: Just wanted to say I also got this working on the PI.... Live TV and recorded TV playing back very well.

Thanks again!!!!

Did you have to purchase codecs like another user did?


RE: WMC as the backend - released - krustyreturns - 2013-09-18

(2013-09-17, 22:17)papreston Wrote: Just wanted to say I also got this working on the PI.... Live TV and recorded TV playing back very well.

Thanks again!!!!

Good timing, I needed one of those. Thanks.


Re: WMC as the backend - released - papreston - 2013-09-18

Yes... I did purchase the code


RE: WMC as the backend - released - ferretlegs - 2013-09-18

(2013-09-17, 17:09)krustyreturns Wrote: Ah I see. If you have multiple tuners in the same tuning space I don't know of a way to 'pick' the tuner, it just takes whichever tuner is available. One way to force it, is to start a recording on one of them, then live-tv can only use the other one.

I never start recordings this way, so this morning I tried it a lot and I can't reproduce it, it always seems to work. Even when there is only 5 minutes left in the show that is currently on it records those 5 minutes. Does this happen to you consistently or just sometimes? Try this, using the 'timeline' view of the guide, set it to record a half hour show that is not on now and see if it selects the correct show, or the show that comes after. Do this by right clicking on the show in the time line view. Let me know.

ok, some progress! This time I started a recording on channel 7 in wmc BEFORE starting wmcserver. I'm guessing this forced wmcserver to spin up a different tuner than normal. Under this scenario the seven network now works - first time ever on xbmc! Still something strange though because if wmc was taking the dud tuner it shouldnt have been able to record channel 7 like that. But maybe it took another good tuner but somehow changed things up enough so that wmcserver spun up a different tuner this time. I dont know, but any progress is good progress.

On the recording front, here is what I have found with more testing (remember I have done nothing to default confluence here, not added any of the new series dialogs or anything):

1. When using the timeline epg, right clicking the current show and selecting record works. It records the current show immediately
2. Pressing the record button on the OSD while watching a live tv channel schedules the NEXT tv show in the guide. So if I'm watching something from 8:30 to 9am and I press the record button at say 8:40, the show starting at 9am will be scheduled.
3. Same thing as 2 happens if I rclick any channel in the channel list and select record (Live TV -> channels)

Basically it seems the only way I can get immediate recording is using EPG timeline and rclicking a currently broadcasting show, any other method seems to only queue the next show instead.

Now to start figuring out what is going on with this dud tuner concept......

EDIT: Also forgot to add that selecting any future show in the timeline and recording sets the correct show/timer. No issues there.


RE: WMC as the backend - released - scarecrow420 - 2013-09-18

Thanks for the steps to reproduce, I think I was also using the "record" button on the OSD rather than the EPG. I can repro the problem so I will debug it if krusty doesnt beat me to it

From the log file, the front end sends through "the brady bunch" (dont ask) as the name of the show to record, but the backend replies with "Old School Neighbours" which is the show afterwards.

2013/09/18 09:14:38.088 Received client request: scarecrow|SetTimer|-1|11054|0|1379466878|0|The Brady Bunch|50|0|10|0|3629|0
2013/09/18 09:14:38.412 SE: 17/09/2013 11:30:01 PM - 18/09/2013 12:00:01 AM on ELEVEN -> Old School Neighbours - Id:0xE000000018C82 (3940649674050690)
2013/09/18 09:14:38.436 assignment: 17/09/2013 11:30:01 PM-18/09/2013 12:00:01 AM on 11 : ELEVEN - 2B2E = { (11 : ELEVEN - 2B18) + [ 11 : ELEVEN - 2B3C, 11 : ELEVEN - 2B55] }(Device: Digital Antenna (DVB-T) - 1AA : 2b1791e7-37ab-4b47-8eb0-91824020e787 - 2988 TuningSpace: DVB-T - 2B56)
2013/09/18 09:14:38.495 SetTimer> recording scheduled for The Brady Bunch on channel 11 : ELEVEN - 2B2E = { (11 : ELEVEN - 2B18) + [ 11 : ELEVEN - 2B3C, 11 : ELEVEN - 2B55] }, RecordingState: WillRecord

It seems the way instant records works is kinda funny Smile XBMC sends in 1/1/1970 as the start time and NOW as the end time. The backend code detects this and corrects it to a start time of NOW and then looks for program entries in the EPG from now to now+8 hours with a comment that it should be a big enough period to find an entry. But it seems this query isnt returning the current show, in my case it returns 34 entries but the first entry is the following show. It shouldnt be too hard to correctly identify the in progress show


RE: WMC as the backend - released - krustyreturns - 2013-09-18

(2013-09-18, 01:00)ferretlegs Wrote: ok, some progress! This time I started a recording on channel 7 in wmc BEFORE starting wmcserver. I'm guessing this forced wmcserver to spin up a different tuner than normal. Under this scenario the seven network now works - first time ever on xbmc! Still something strange though because if wmc was taking the dud tuner it shouldnt have been able to record channel 7 like that. But maybe it took another good tuner but somehow changed things up enough so that wmcserver spun up a different tuner this time. I dont know, but any progress is good progress.

On the recording front, here is what I have found with more testing (remember I have done nothing to default confluence here, not added any of the new series dialogs or anything):

1. When using the timeline epg, right clicking the current show and selecting record works. It records the current show immediately
2. Pressing the record button on the OSD while watching a live tv channel schedules the NEXT tv show in the guide. So if I'm watching something from 8:30 to 9am and I press the record button at say 8:40, the show starting at 9am will be scheduled.
3. Same thing as 2 happens if I rclick any channel in the channel list and select record (Live TV -> channels)

Basically it seems the only way I can get immediate recording is using EPG timeline and rclicking a currently broadcasting show, any other method seems to only queue the next show instead.

Now to start figuring out what is going on with this dud tuner concept......

Even with this result I still don't think the root cause is a tuner problem, but it's hard to argue with progress. Keep us posted.

For the recording stuff, please send me a server log when it does the jump ahead recording thing. Also please let me know the default settings for pre and post padding set in wmc for recordings. Also if you set these margins in xbmc too what those value are.


RE: WMC as the backend - released - ferretlegs - 2013-09-18

so why were you watching the Brady Bu...... oops, you said don't mention the war Tongue


RE: WMC as the backend - released - krustyreturns - 2013-09-18

(2013-09-18, 01:23)scarecrow420 Wrote: It seems the way instant records works is kinda funny Smile XBMC sends in 1/1/1970 as the start time and NOW as the end time. The backend code detects this and corrects it to a start time of NOW and then looks for program entries in the EPG from now to now+8 hours with a comment that it should be a big enough period to find an entry. But it seems this query isnt returning the current show, in my case it returns 34 entries but the first entry is the following show. It shouldn't be too hard to correctly identify the in progress show

Brady Bunch must be a different show in Australia, you would hate the US version.

For background, I implemented 'instant' record to just record the current show you are watching. So while the epg search may return a bunch of hits, it should just record the first one. So yeah, the question is why isn't the first one the one that is currently on. It always seems to be for me.


RE: WMC as the backend - released - ferretlegs - 2013-09-18

(2013-09-18, 01:28)krustyreturns Wrote: Even with this result I still don't think the root cause is a tuner problem, but it's hard to argue with progress. Keep us posted.

For the recording stuff, please send me a server log when it does the jump ahead recording thing. Also please let me know the default settings for pre and post padding set in wmc for recordings. Also if you set these margins in xbmc too what those value are.

ok, I think this is the relevant piece of the log from this mornings test. Basically 'sunrise' was the live show and 'the morning show' was the next show scheduled to come after it. I hope this is the bit you need...

2013/09/18 08:39:21.971 Received client request: xbmctest-PC|SetTimer|-1|210251|0|1379464770|0|Sunrise|50|0|10|0|1554|0
2013/09/18 08:39:22.147 SE: 17/09/2013 11:00:00 PM - 18/09/2013 1:30:10 AM on 7 Digital -> The Morning Show - Id:0xE0000001197FC (3940649675102204)
2013/09/18 08:39:22.147 assignment: 17/09/2013 11:00:00 PM-18/09/2013 1:30:10 AM on 70 : 7 Digital - 3354B = { (70 : 7 Digital - 33539) + [ ] }(Device: Digital Antenna (DVB-T) - 1A9 : 0d604e67-49d1-49a4-b1c9-8da242b883bd - 33406 TuningSpace: DVB-T - 3353A)
2013/09/18 08:39:22.148 SetTimer> recording scheduled for Sunrise on channel 70 : 7 Digital - 3354B = { (70 : 7 Digital - 33539) + [ ] }, RecordingState: WillRecord
2013/09/18 08:39:22.148 Finished request SetTimer in 0.18s


With regards to my recording defaults on WMC, it is start show 15 mins prior, and keep recording for 30 mins after. I will have to double check xbmc, but I'm pretty sure I set it the same.

With regards to root issue with tuner, I tend to agree with you. Its like there is something specific about seven network, otherwise I would expect it to be more transitory, not totally off or on like it seems to be atm. Maybe by starting a 7 recording in wmc first, we have cleared some DRM hurdle or something that is not addressed if wmcserver is just started by itself.

For example, after I shut down xbmc last night and started my 360 extender, I still could not get channel 7. This was in my event log:

Windows Media Center Extender encountered a DRM failure.
Area: 1
Error: Unknown HResult Error code: 0x8004b822

After I came and switched off wmcserver I could then tune 7 network on the 360 extender successfully. So it seems there is some sort of interaction going on....


RE: WMC as the backend - released - deletedpenguin - 2013-09-18

Just switched over from NextPVR to give WMC a shot. Live TV is working well, but when I try to record a show from any menu, I get an error and see this in my debug log.

Code:
09:49:06 T:3760   ERROR: PVR - PVR::CPVRClient::AddTimer - addon 'ServerWMC:connected' returned an error: server error
09:49:06 T:3760   ERROR: PVR - PVR::CPVRClients::AddTimer - cannot add timer to client '2': server error

Any insight into what's going wrong/what I'm doing wrong? Thanks in advance.


RE: WMC as the backend - released - scarecrow420 - 2013-09-18

lol no it is the US Brady Bunch, it's just what happens to be on at the moment, honest!!!

Anyway yeah the Epg.GetEntriesbyChannel(ch, start, end) call doesnt seem to return for a show where the start time was prior to the passed in start. I was thinking if the goal is to grab the current in progress show then perhaps passing in Now-8 hours as the start, and Now as the end, then taking the LAST item (as opposed to start=now end=now+8 and taking FIRST) might work better.

So you are saying on your tuner/EPG/country/setup, when you pass in NOW and NOW+8 to Epg.GetEntriesbyChannel() the first item IS the current show? weird.

if we have to we can always check for instant records, that the selected item start and end do fall on either side of NOW and if not, loop through more GetEntries calls until we find the correct one. Shame there isnt a PreviousEntry and NextEntry call. Or is there?


RE: WMC as the backend - released - ferretlegs - 2013-09-18

(2013-09-18, 01:58)scarecrow420 Wrote: lol no it is the US Brady Bunch, it's just what happens to be on at the moment, honest!!!

Anyway yeah the Epg.GetEntriesbyChannel(ch, start, end) call doesnt seem to return for a show where the start time was prior to the passed in start. I was thinking if the goal is to grab the current in progress show then perhaps passing in Now-8 hours as the start, and Now as the end, then taking the LAST item (as opposed to start=now end=now+8 and taking FIRST) might work better.

So you are saying on your tuner/EPG/country/setup, when you pass in NOW and NOW+8 to Epg.GetEntriesbyChannel() the first item IS the current show? weird.

if we have to we can always check for instant records, that the selected item start and end do fall on either side of NOW and if not, loop through more GetEntries calls until we find the correct one. Shame there isnt a PreviousEntry and NextEntry call. Or is there?

One thing to add to the recording list scarecrow. I found that if you are actually watching a live channel and you switch to the epg timeline to record it (the only current way I can record what is live), then the show starts to record but it crashes the stream you are already watching. If you then switch to recordings you can continue to watch it like any in-progress recording, but it is a bit messy obviously. Even worse, I managed to crash the ehRecvr.exe service doing this (I think when I tried to start the channel again rather than going to the in-progress recording after the stream crash). I didn't notice this in my earlier post as I simply tested starting a current show recording from the epg timeline to ensure it got the correct show, I wasn't actually viewing that channel at the time.

Sorry to pile the issues on, but I'm trying to test all the main use cases I can think of


RE: WMC as the backend - released - papreston - 2013-09-18

Been playing around with the Series Recording in Amber. Nice Skin by the way. Anyways, when I select to record a series and mark "New Only" it still records re-runs. This also happens when I schedule in WMC. Is this a known bug?