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 - spaceboy - 2013-10-31

interesting, so the mux to TS is the only way forward then, and its going to affect all pi users


RE: WMC as the backend - released - krustyreturns - 2013-10-31

(2013-10-31, 06:16)mit3gt Wrote: Done. I had to create new files because I had "delete temporary files" unchecked in ServerWMC, and it wasn't putting any files into tempxbmc\savedfordebug. Also I noticed that in XBMC, Duplicate channel entries are created. For instance, channel 4 is shown twice in TV channel view. The first one represents the DVB-T tuners and the second one represents the qam tuners. Neither channel works. These channels are merged in WMC. I sent you both the resulting files from tempxbmc\savedfordebug. I should also mention that the duplicate channel issue goes away in timeline view (timeline view causes xbmc to hang though). Thanks.

The audio problem was easy to solve, live-tv will work for you now. Apparently you are the first guy who has tried to remux AAC - weird that it hasn't come up before. Glad you sent in the files! I have the fix integrated into the stuff I am working on now, if you are desperate to try it, I could give you an experimental build. Otherwise it will be in the next server release - I hope by this weekend.

I'm not sure what to do about the same channel being listed twice, my software differentiates the channel by tuning space - even though in your case it is exactly the same channel in two difference spaces. I will think about merging them, but are sure you don't want to choose what tuner to use when you watch one? What do others think? Possibly I could make merging them an option in the server.

Lastly, I am not sure why your epg is crashing, but I really doubt it is something I am doing. If you can reproduce exactly what happens when it crashes that might help. Also you could experiment with how much data you fetch from the server in the xbmc settings.

(2013-10-31, 14:39)spaceboy Wrote: interesting, so the mux to TS is the only way forward then, and its going to affect all pi users

Spaceboy, I thought you said this only happened on one of your bbc channels. Does it really happen on every large wtv file?? For wtv, 5GB is not that large.

(2013-10-31, 14:34)Dilligaf Wrote: Asked Dom/Popcornmix about the large wtv files not playing on the PI and here's his response http://forum.stmlabs.com/showthread.php?tid=11253&pid=85628#pid85628

So you can reproduce this on your pi? All large files crash? Btw, I have my pi now but haven't set it up yet.

Anyway if the problem is that serious, I will definitely enable a remux-to-ts play option in the server.


RE: WMC as the backend - released - krustyreturns - 2013-10-31

(2013-10-31, 10:16)Stiefelland Wrote:
(2013-10-30, 19:38)krustyreturns Wrote:
(2013-10-30, 15:41)Stiefelland Wrote: Krusty, I placed the file on your google drive as suggested. And, yes, I'm definitely willing to build new versions of the client. I must admit I barely have any experience with Android builds so unfortunately I'm not of much help there. - Thanks, Stiefelland.

I have it, thanks. Is this version for xbmc frodo or gotham?

It's for XBMC Frodo 12.2. I'll attempt a Gotham build next.

Thanks. I will put this up today along with linux builds. Looking forward to gotham.


RE: WMC as the backend - released - spaceboy - 2013-10-31

i was more just commenting on the response from popcornmix.

but you are correct, that view doesn't really fit with what i have seen. it happens on all 4 BBC channels whether in HD or SD and obviously some of the SD recordings are fairly small. So when i get home tonight i'll spend a bit more time testing. i guess what i need to try and do is get a couple of minute clip which won't play on the pi and is therefore quite small. if i can find one of these then it shows these are separate issues

(2013-10-29, 20:53)IanPH Wrote: Oh and Krusty, some time ago you asked me to switch to a radio channel and post the log. Well when I switch to a radio channel, XMBC shows a PVR Error and does not play. Here's the log:

Actually that was really helpful. It gets confused and gives up because it can't find the video stream, but it found the audio stream:

2013-10-29 19:50:08.898 Remux::FindDescriptors> wtv scanned (10,05 sec), Streams found:
2013-10-29 19:50:08.898 > Audio: ID:72 (dut) MPEG Audio V1L2 Stereo 48000 Hz 192 kb/s

maybe radio will be easy to do when the time comes. I still don't understand why a radio station is showing up in your video channels.

thanks!
[/quote]

you asked about the radio channels a couple of pages back, i get the same. radio is made available over dvb-s and i think dvb-t channels in the UK. if you are a proper sky customer you see them as channels available on your set top box with epg and everything. they are just streams without video. so dvblink does nothing special here

so in WMC and XBMC these radio channels just show up in the guide as if they were tv channels. no difference. In WMC it is actually impossible to get the radio channels to show up in the radio section because they are received by dvb-s when its expecting them to be received in FM. i guess there might be a way to hack the radio streams to appear in the radio section on xbmc but its not a big concern for me


RE: WMC as the backend - released - krustyreturns - 2013-10-31

(2013-10-31, 17:24)spaceboy Wrote: i was more just commenting on the response from popcornmix.

but you are correct, that view doesn't really fit with what i have seen. it happens on all 4 BBC channels whether in HD or SD and obviously some of the SD recordings are

you asked about the radio channels a couple of pages back, i get the same. radio is made available over dvb-s and i think dvb-t channels in the UK. if you are a proper sky customer you see them as channels available on your set top box with epg and everything. they are just streams without video. so dvblink does nothing special here

so in WMC and XBMC these radio channels just show up in the guide as if they were tv channels. no difference. In WMC it is actually impossible to get the radio channels to show up in the radio section because they are received by dvb-s when its expecting them to be received in FM. i guess there might be a way to hack the radio streams to appear in the radio section on xbmc but its not a big concern for me

Yeah, I think some short clips on these channels would be good to submit.

Thanks for explaining the radio thing, it get it now. When you play these pseudo-radio channels in wmc, they work? In other words, you can play and record them? If you can record them, and you are still in the testing mood when you get home, can you make me a short clip from the radio channel that I can look at? Put it on my google drive if you can.


RE: WMC as the backend - released - spaceboy - 2013-10-31

yeah they work fine, you just get a blank screen and audio. i think at some point dvblink used to have a splash screen that said something like "Digital Radio" but i don't see that any more. Anyway thanks to Teamviewer the clip is on your google drive.

i'll look at the BBC problem when i'm home i need to be able to see the pi for that unfortunately!


RE: WMC as the backend - released - mit3gt - 2013-10-31

(2013-10-31, 16:56)krustyreturns Wrote:
(2013-10-31, 06:16)mit3gt Wrote: Done. I had to create new files because I had "delete temporary files" unchecked in ServerWMC, and it wasn't putting any files into tempxbmc\savedfordebug. Also I noticed that in XBMC, Duplicate channel entries are created. For instance, channel 4 is shown twice in TV channel view. The first one represents the DVB-T tuners and the second one represents the qam tuners. Neither channel works. These channels are merged in WMC. I sent you both the resulting files from tempxbmc\savedfordebug. I should also mention that the duplicate channel issue goes away in timeline view (timeline view causes xbmc to hang though). Thanks.

The audio problem was easy to solve, live-tv will work for you now. Apparently you are the first guy who has tried to remux AAC - weird that it hasn't come up before. Glad you sent in the files! I have the fix integrated into the stuff I am working on now, if you are desperate to try it, I could give you an experimental build. Otherwise it will be in the next server release - I hope by this weekend.

I'm not sure what to do about the same channel being listed twice, my software differentiates the channel by tuning space - even though in your case it is exactly the same channel in two difference spaces. I will think about merging them, but are sure you don't want to choose what tuner to use when you watch one? What do others think? Possibly I could make merging them an option in the server.

Lastly, I am not sure why your epg is crashing, but I really doubt it is something I am doing. If you can reproduce exactly what happens when it crashes that might help. Also you could experiment with how much data you fetch from the server in the xbmc settings.


If you don't mind, I would like to try an experimental build.

Pertaining to the merging of channels, I like the channels merged, (that's just me though). I just like to choose a channel and know that wmc will take the first available tuner out of the 7 I have available (mixture of DVB-T & QAM tuners). I have no real need (at least none that I can think of) to have the tuners separated. Again, that's just me. Maybe there is a need, I am just missing it.

I am working on tweaking the settings in XBMC for the epg guide for my timeline view issues. I will report back on this.

Thanks!


RE: WMC as the backend - released - aceventura - 2013-10-31

(2013-10-31, 06:16)mit3gt Wrote:
(2013-10-31, 05:21)krustyreturns Wrote:
(2013-10-31, 03:22)mit3gt Wrote: First I'd like to say fantastic work. I have been looking for a solution like this for some time. I am unfortunately having issues. I cannot get Live TV working. I get the "No data on channel' error. Viewing recorded TV works fine. My setup is kind of unique. I am using DVBlink software with virtual tuners with colossus cards as well some qam cards. I am running XMBC Frodo using mysql. Everything works fine in WMC. I see a couple other people (in this thread) are using DVBlink with HDPVR boxes and having success, so I don't know why I cannot get this to work. Also, my guide, when in timeline view locks up XBMC. I don't know if any of this is related. I am running a local client on the same PC as ServerWMC. ServerWMC seems to be working, its making connections where it should (I think), It is pulling data (channels, epg entries, recordings, etc). I have checked the logs and they keep stating:

I really hope I can get this working. Any help would be greatly appreciated. Thanks!

It looks like it is crashing because it is finding an audio subtype that we haven't encountered before. Go to your recorded tv folder and look in:
tempxbmc\savedfordebug

hopefully in this folder you will find this file:
LiveTV_mediacenter_DVB-T_4_2013_10_30_20_31_52.wtv

upload this file to:
https://drive.google.com/?authuser=0#folders/0ByNnAMYBoWvfQVBBNzFhZmNPWUE

let me know when its there and I'll let you know what I find. Thanks.

Done. I had to create new files because I had "delete temporary files" unchecked in ServerWMC, and it wasn't putting any files into tempxbmc\savedfordebug. Also I noticed that in XBMC, Duplicate channel entries are created. For instance, channel 4 is shown twice in TV channel view. The first one represents the DVB-T tuners and the second one represents the qam tuners. Neither channel works. These channels are merged in WMC. I sent you both the resulting files from tempxbmc\savedfordebug. I should also mention that the duplicate channel issue goes away in timeline view (timeline view causes xbmc to hang though). Thanks.

Hi - I'm new to this and also experiencing exactly the same as mentioned above. WMC works fine.

From the XBMC log file :
ERROR: AddOnLog: Windows Media Center PVR: Stream file 'ts' does not exist (likely no data was found to remux)

Much appreciated!!


RE: WMC as the backend - released - IanPH - 2013-11-01

(2013-10-31, 18:34)spaceboy Wrote: yeah they work fine, you just get a blank screen and audio. i think at some point dvblink used to have a splash screen that said something like "Digital Radio" but i don't see that any more. Anyway thanks to Teamviewer the clip is on your google drive.

i'll look at the BBC problem when i'm home i need to be able to see the pi for that unfortunately!

Tuning to a radio station in WMC looks like this:

Image

The words "Digital Audio Service" are not generated by DVBLink but by WMC!

But I'm not sure if these channels have a specific database setting in WMC, like "Radio" or "Television".

@Krusty:
I uploaded a 47 second (1,5MB) manual recording to your Google drive


RE: WMC as the backend - released - krustyreturns - 2013-11-01

(2013-10-31, 23:03)aceventura Wrote: Hi - I'm new to this and also experiencing exactly the same as mentioned above. WMC works fine.

From the XBMC log file :
ERROR: AddOnLog: Windows Media Center PVR: Stream file 'ts' does not exist (likely no data was found to remux)

Much appreciated!!

To make sure its really the same thing, start the server, try to start a live tv stream, after it fails get the server log (see debug tab in server).

Put the server log on pastebin.com and post a link to it here.

(2013-11-01, 00:04)IanPH Wrote:
(2013-10-31, 18:34)spaceboy Wrote: yeah they work fine, you just get a blank screen and audio. i think at some point dvblink used to have a splash screen that said something like "Digital Radio" but i don't see that any more. Anyway thanks to Teamviewer the clip is on your google drive.

i'll look at the BBC problem when i'm home i need to be able to see the pi for that unfortunately!

But I'm not sure if these channels have a specific database setting in WMC, like "Radio" or "Television".

@Krusty:
I uploaded a 47 second (1,5MB) manual recording to your Google drive

Thanks to you and spaceboy for the radio files. I am curious if there is a way to detect this in the database too. Since obviously I can't reproduce it here, I might make a special build that you could run that would print out gobs of channel data in the log. If I can detect it, I might be able to route it to radio rather than video (not sure if that's an advantage though). We have other stuff to finish first though. I'll let you know.


RE: WMC as the backend - released - spinnaker - 2013-11-01

(2013-10-31, 05:35)krustyreturns Wrote: [
I actually think you could move the wtv files into a hierarchical structure and wmc will just ignore it and continue listing as it does now - just based on metadata. I haven't messed with this a lot and I don't know if wmc will still delete files past their expiration if you do this, but I bet it would. You are right that you can't do anything about the file that is being recorded to, but moving it after its done recording I think would work. My inclination though would be to leave the wmc directory alone if possible.

I think it would be nice to have more sort features in xbmc too, but that is an xbmc thing, we can't control that in the addon. Best ask for this feature from the xbmc team.

I tired moving some wtv files. The WMC found them again without a hitch. I was very surprised. Sadly nothing changed in xbmc. There was no hierarchy for the moved files. I tired rebooting then restarting the server and xbmc but files still show as flat. This tells me that simply moving the files is not going to do it. There must be something in other pvr addons that gives the hierarchy appearance to the files..


RE: WMC as the backend - released - krustyreturns - 2013-11-01

(2013-11-01, 01:14)spinnaker Wrote: I tired moving some wtv files. The WMC found them again without a hitch. I was very surprised. Sadly nothing changed in xbmc. There was no hierarchy for the moved files. I tired rebooting then restarting the server and xbmc but files still show as flat. This tells me that simply moving the files is not going to do it. There must be something in other pvr addons that gives the hierarchy appearance to the files..

I knew it wouldn't be as simple as all that. After you have a hier structure, you somehow have to change a field called 'strDirectory' and its relationship to the file url that is passed to xbmc. Maybe Margro is lurking again and will fill us in Smile.

I was thinking today that if we solve this it might solve the slow recordings display time seen on rpi systems. So even more reason to explore it.


RE: WMC as the backend - released - spinnaker - 2013-11-01

(2013-11-01, 01:30)krustyreturns Wrote: [

I knew it wouldn't be as simple as all that. After you have a hier structure, you somehow have to change a field called 'strDirectory' and its relationship to the file url that is passed to xbmc. Maybe Margro is lurking again and will fill us in Smile.

I was thinking today that if we solve this it might solve the slow recordings display time seen on rpi systems. So even more reason to explore it.

Then it may not need to be moved. I just noticed something in the recordings listing. The episode name is not being shown. Just the series name. I am guessing because only the series name is used in the file name. The meta data will need to be read from the wtv file. If I can get a copy of the source, I would be happy to ive it a look.


RE: WMC as the backend - released - krustyreturns - 2013-11-01

(2013-11-01, 02:10)spinnaker Wrote: Then it may not need to be moved. I just noticed something in the recordings listing. The episode name is not being shown. Just the series name. I am guessing because only the series name is used in the file name. The meta data will need to be read from the wtv file. If I can get a copy of the source, I would be happy to ive it a look.

I only use the metadata - not file data - in xbmc, so I do the same thing wmc does. It depends on your skin (I assume) whether the episode name is visible in the recordings listing. That's why I made a display option (see tab) to append the episode to the series title - that's the way I roll in my xbmc.

You are welcome to look at the the server code - as is anybody who wants to help with this project. Just pm me your email address to get access.


RE: WMC as the backend - released - krustyreturns - 2013-11-01

Ian and Spaceboy,

Ok, I allowed myself to get side tracked... getting skyradio type stations to work was easy to fix, it will be in the next release (but they will remain in the tv channel listings and epg, at least for now). Thanks again for the audio files.