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 - Dilligaf - 2013-09-23

(2013-09-23, 20:41)bigwah Wrote: So I've been a cablecard WMC/mediabrowser user for a long time now. Saw this and its exactly what I've been waiting for.

I installed it and it pulled in the listings and I was able to select the channels. BUT, some of the channels dont look right, scanlines and other video artifacts. Is there something special i have to do in xbmc or this addon to get it to show right? Was clearly evident during football games yesterday (even switched back to make sure i wasnt going crazy).

Forgot to add, I've messed with some of the settings already with no luck.

Go to settings>video>playback and enable "Adjust display refresh rate to match video" with this setting off you will experience micro stutter and other anomalies during fast movement scenes like sports


RE: WMC as the backend - released - bigwah - 2013-09-23

Here is the first one:
http://imageshack.us/a/img834/8884/6t8n.png

Live TV shots, dont see it on the first one here, but you can see it in the 2nd one.
http://imageshack.us/a/img571/1117/5jyz.png
http://imageshack.us/a/img27/2402/3m82.png

Also, for the 3rd screenshot, I'm not sure what screen you want to look at, pressing the OK button for me just pulls up the channel logo and the pause/ff/rw/stop buttons


RE: WMC as the backend - released - hoopsdavis - 2013-09-23

(2013-09-23, 21:42)bigwah Wrote: Here is the first one:
http://imageshack.us/a/img834/8884/6t8n.png

Live TV shots, dont see it on the first one here, but you can see it in the 2nd one.
http://imageshack.us/a/img571/1117/5jyz.png
http://imageshack.us/a/img27/2402/3m82.png

Also, for the 3rd screenshot, I'm not sure what screen you want to look at, pressing the OK button for me just pulls up the channel logo and the pause/ff/rw/stop buttons

The status of "Adjust display refresh rate to match video" settings is mostly what I was looking for, as Dilligaf mentioned, that setting will prevent the micro stutter.

do you also have deinterlace set to auto?


RE: WMC as the backend - released - bigwah - 2013-09-23

(2013-09-23, 22:01)hoopsdavis Wrote:
(2013-09-23, 21:42)bigwah Wrote: Here is the first one:
http://imageshack.us/a/img834/8884/6t8n.png

Live TV shots, dont see it on the first one here, but you can see it in the 2nd one.
http://imageshack.us/a/img571/1117/5jyz.png
http://imageshack.us/a/img27/2402/3m82.png

Also, for the 3rd screenshot, I'm not sure what screen you want to look at, pressing the OK button for me just pulls up the channel logo and the pause/ff/rw/stop buttons

The status of "Adjust display refresh rate to match video" settings is mostly what I was looking for, as Dilligaf mentioned, that setting will prevent the micro stutter.

do you also have deinterlace set to auto?

Where can I find the deinterlace global setting? All i can find is per channel. I turned it on a few channels and it definitely stutters though. Does xbmc need to be restarted or maybe switch to another channel and back? Or should it change instantly-ish?


RE: WMC as the backend - released - svanhess - 2013-09-23

Yep, that was it. Thanks for your help! All is working well now. Here's a link to the 64bit version I'm using for OS X 10.8.5: http://ge.tt/66P5gps/v/0?c

(2013-09-23, 17:44)Dilligaf Wrote: 08:16:23 T:4661833728 ERROR: AddOnLog: Windows Media Center PVR: Error opening stream file
08:16:23 T:4661833728 ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/All TV channels/3.pvr]

You need to provide credentials to access the Recorded TV share, go to XBMC>settings>file manager then add source and browse to the Recorded TV share, provide credentials when prompted and check save user/pass, after a reboot it should work. I think this is necessary on any/most non Windows installs to access the share. Once you get it working can you post a link to the files for the benefit of others??



RE: WMC as the backend - released - hoopsdavis - 2013-09-23

(2013-09-23, 22:21)bigwah Wrote:
(2013-09-23, 22:01)hoopsdavis Wrote:
(2013-09-23, 21:42)bigwah Wrote: Here is the first one:
http://imageshack.us/a/img834/8884/6t8n.png

Live TV shots, dont see it on the first one here, but you can see it in the 2nd one.
http://imageshack.us/a/img571/1117/5jyz.png
http://imageshack.us/a/img27/2402/3m82.png

Also, for the 3rd screenshot, I'm not sure what screen you want to look at, pressing the OK button for me just pulls up the channel logo and the pause/ff/rw/stop buttons

The status of "Adjust display refresh rate to match video" settings is mostly what I was looking for, as Dilligaf mentioned, that setting will prevent the micro stutter.

do you also have deinterlace set to auto?

Where can I find the deinterlace global setting? All i can find is per channel. I turned it on a few channels and it definitely stutters though. Does xbmc need to be restarted or maybe switch to another channel and back? Or should it change instantly-ish?

The Deinterlace you found while watching live tv is global, you'll just have to save as defualt.


RE: WMC as the backend - released - Dilligaf - 2013-09-23

(2013-09-23, 22:22)svanhess Wrote: Yep, that was it. Thanks for your help! All is working well now. Here's a link to the 64bit version I'm using for OS X 10.8.5: http://ge.tt/66P5gps/v/0?c

Thanks for that, I don't have any Apples but I'm sure others appreciate it. Can we count on you for new builds when needed? Or is that pushing it?


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

(2013-09-23, 20:41)bigwah Wrote: So I've been a cablecard WMC/mediabrowser user for a long time now. Saw this and its exactly what I've been waiting for.

I installed it and it pulled in the listings and I was able to select the channels. BUT, some of the channels dont look right, scanlines and other video artifacts. Is there something special i have to do in xbmc or this addon to get it to show right? Was clearly evident during football games yesterday (even switched back to make sure i wasnt going crazy).

Forgot to add, I've messed with some of the settings already with no luck.

as mentioned, its probably the interlace setting. its a bit strange in XBMC but you have to go to the video settings _while a video is playing_ (on the OSD its the film reel icon) then change Interlace to Auto, then scroll to the bottom and select "Set as default for all video".

Its also quirky in that setting this as default doesnt seem to override any other channel that you had already changed this for. So any channel you have customised doesnt have the default applied when you say "set as default". It seems XBMC saves this on a per channel basis, and setting as default only adjusts channels that hadnt previously had a custom setting saved for that channel. There was a thread about it in the XBMC forum where they seemed to be sasying it was by design but agreed it was rather unintuitive

(2013-09-23, 18:43)nlitend1 Wrote:
(2013-08-15, 17:50)krustyreturns Wrote:
(2013-08-15, 05:23)surge919 Wrote: my main usage of the client would be from a raspberry pi and usage for testing is a Mac.

what kind of info can I provide to help get this working on them?

thanks

There are a number of questions about porting the client to other platforms. I only have the capability of compiling and testing on windows to date. Another developer worked on the client code to get rid of the windows specific stuff I had originally put in it, so the code SHOULD BE fairly easy to port to other systems.

So we just need someone to take on porting to the desired system, then we will need people to test it - like yourself. I made the client code available on the website. So yeah, tell your coding friends. Like I said, I would love to have it in ras pi myself. And I would like the help.

(2013-08-15, 15:38)trevf Wrote: Hi, do the subtitles work on live tv when wmc is used as the backend?

Also thank you for creating the addon to allow wmc to work with xbmc.

Thanks Trevor

In my testing, sub titles do not work, and for that matter they don't work even when the recorded wtv files are played in xbmc. I assume it is a xbmc/wtv thing. All I can tell you from my end, is that I take the subtitle stream from the wtv file and mux it into the ts stream that is being played in live tv mode. We need somebody more knowledgeable in this stuff than me to enlighten us. Even better to help develop it.

Any updates on subtitles/closed captions? Is this the generic XBMC cannot read ATSC subtitles problem that all PVR addons seem to have or is WMC different making there hope for subtitles with the WMC addon? I sure hope WMC is different. I tried NextPVR and Mediaportal and none of them compare to WMC as a true 'production' PVR.

Thanks,

nlitend1
For live TV im pretty sure it isnt working as they arent being included in the remuxed TS file. I was debugging some other stuff over the weekend and it seems like the way the subtitles are in the WTV stream, we keep seeing packet data for that streamID but never saw the required timestamp headers that indicate to expect data, so we constantly see it as "data was provided but didnt have any previous packet to add it to". Subtitles are tricky also, because I think they are different all around the world. Eg in Australia I think we have some weird kind of Teletext based subtitles, which is different to the US and so on...

Id be interested to know if the subtitles at least work on scheduled recordings through XBMC? Since these are just plain old WTV recordings made by the WMC microsoft recording service, I would expect they would. Can you confirm? Through XBMC, set a future program to record, then once the recording is finished, play it through the Recordings section in XBMC. Also test that WTV file in WMC itself, to make sure the subtitles are in there (im pretty sure they would be). So if they work in WMC but not in XBMC, for a recorded WTV file, then there is an additional issue in XBMC itself with these subtitles. That would be nice to confirm or not. But in terms of live TV with this addon, we dont currently put the subtitle into the TS file so therefore im pretty sure that wont work. I guess there's a possibility that the subtitles here in Australia dont get remuxed to TS but maybe in other types of subtitles do. Again, you could confirm this by playing a TS file (in the tempXBMC subfolder while a XBMC live streaming is occuring) in WMC and seeing if subtitles are present.


RE: WMC as the backend - released - bigwah - 2013-09-24

Thanks for the help guys, looking much better today!


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

(2013-09-23, 19:37)RT-3 Wrote:
(2013-09-22, 18:41)RT-3 Wrote: Ok so I found the addon. But now it keeps telling me the pvr has lost connection. FYI I am running wmc and xbmc on the same machine. Any ideas?
(2013-09-22, 18:26)hoopsdavis Wrote: Have you checked the "endable" list, it may be listed there. But if you see it there, try disabling / re-enable.

So for all of you slow people like me. If you get any connection issues from XBMC to the WMC Server. make sure you didn't close it like I did. You have to minimize the program. Hopefully there isn't many other idiots like me Smile

Following up on a problem you posted, saying how you resolved it - great. Doing so, even when you have to admit you were doing something silly - even better. Doing it with a sense of humor - priceless. I am a fan.


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

The linux builds of 1011 client are up on the download page.

(2013-09-23, 22:22)svanhess Wrote: Yep, that was it. Thanks for your help! All is working well now. Here's a link to the 64bit version I'm using for OS X 10.8.5: http://ge.tt/66P5gps/v/0?c

(2013-09-23, 17:44)Dilligaf Wrote: 08:16:23 T:4661833728 ERROR: AddOnLog: Windows Media Center PVR: Error opening stream file
08:16:23 T:4661833728 ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/All TV channels/3.pvr]

You need to provide credentials to access the Recorded TV share, go to XBMC>settings>file manager then add source and browse to the Recorded TV share, provide credentials when prompted and check save user/pass, after a reboot it should work. I think this is necessary on any/most non Windows installs to access the share. Once you get it working can you post a link to the files for the benefit of others??

Thank you! I really welcome addition to the download page. Sent you a PM too, please take a look when you can.


RE: WMC as the backend - released - svanhess - 2013-09-24

(2013-09-24, 18:01)krustyreturns Wrote: The linux builds of 1011 client are up on the download page.

(2013-09-23, 22:22)svanhess Wrote: Yep, that was it. Thanks for your help! All is working well now. Here's a link to the 64bit version I'm using for OS X 10.8.5: http://ge.tt/66P5gps/v/0?c

(2013-09-23, 17:44)Dilligaf Wrote: 08:16:23 T:4661833728 ERROR: AddOnLog: Windows Media Center PVR: Error opening stream file
08:16:23 T:4661833728 ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/All TV channels/3.pvr]

You need to provide credentials to access the Recorded TV share, go to XBMC>settings>file manager then add source and browse to the Recorded TV share, provide credentials when prompted and check save user/pass, after a reboot it should work. I think this is necessary on any/most non Windows installs to access the share. Once you get it working can you post a link to the files for the benefit of others??

Thank you! I really welcome addition to the download page. Sent you a PM too, please take a look when you can.

No problem! I'm glad to help. I'll definitely do my best to help out with the OS X builds. I'm still fairly new to compiling these builds (more of a Ruby/Java) developer, but I absorb most things pretty quickly.

I started out with XBMC back in the early days modding the original xbox and have used it ever since. I'm super excited about this plugin since it solves my problem (and probably most XBMC users in the US) that rely on WMC as their main entrance to live TV. Can't wait to ditch my loud Xbox extenders!


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

(2013-09-24, 18:34)svanhess Wrote: No problem! I'm glad to help. I'll definitely do my best to help out with the OS X builds. I'm still fairly new to compiling these builds (more of a Ruby/Java) developer, but I absorb most things pretty quickly.

I started out with XBMC back in the early days modding the original xbox and have used it ever since. I'm super excited about this plugin since it solves my problem (and probably most XBMC users in the US) that rely on WMC as their main entrance to live TV. Can't wait to ditch my loud Xbox extenders!

Great! That's awesome.

(2013-09-23, 19:30)doublea Wrote: Here are some quick & dirty instructions for those who want to build their own Linux Client:

1. Download & unzip the Frodo branch of XBMC-PVR-addons: https://github.com/opdenkamp/xbmc-pvr-addons/archive/frodo.zip

2. Check out Krusty's client code into the addons directory: xbmc-pvr-addons-frodo/addons/pvr.wmc
install mercurial if you don't already have it
cd xbmc-pvr-addons-frodo/addons
hg clone https://bitbucket.org/krustyreturns/pvr.wmc


3. Edit xbmc-pvr-addons-frodo/configure.ac and add the following two lines after this line:
addons/pvr.iptvsimple/Makefile \
addons/pvr.wmc/Makefile \
addons/pvr.wmc/addon/addon.xml


4. Follow the xbmc-addon build instructions
cd xbmc-pvr-addons-frodo
./bootstrap
./configure --prefix=/usr
#install any required build dependencies
./make
./make zip # you may need to add pvr.wmc to xbmc-pvr-addons-frodo/addons/Makefile.am

5. You should now have a new executable: xbmc-pvr-addons-frodo/addons/pvr.wmc/XBMC_WMC.pvr. Here is mine:
cd xbmc-pvr-addons-frodo/addons/pvr.wmc
file XBMC_WMC.pvr

XBMC_WMC.pvr: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=0x71cee1475182693872ce865a28557e904970c897, not stripped

6. Install new new zip: xbmc-pvr-addons-frodo/addons/pvr.wmc-linux-x86_64.zip
Alternately, copy to your XBMC addons directory (I have two locations on my ubuntu box). I didn't run make install or make zip since I already have an older version of the client:
cp XBMC_WMC.pvr /usr/share/xbmc/addons/pvr.wmc/
cp XBMC_WMC.pvr ~/.xbmc/addons/pvr.wmc/
cp addon.xml /usr/share/xbmc/addons/pvr.wmc/
cp addon.xml ~/.xbmc/addons/pvr.wmc/

This is really helpful that you took the time to write this out. I am going to add it to the website as I think others will find it very useful, so yeah - thanks again.


RE: WMC as the backend - released - stven - 2013-09-24

Hi Krusty,

Is it possible to make the backend install as a windows service?

So that It starts even if no user is logged...


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

its on the todo list Smile the refactoring i did a couple of builds ago will make it alot easier compared to the way it was originally laid out. Just a matter of time, priorities, real life etc. Im going on 3.5 weeks holiday on October 1st as well which is Smile for me but Sad for people wanting me to work on this!


On another note, I was thinking it would be cool to start getting a Wiki page together for this PVR addon. We now have support for Windows, Linux, OSX and RPi, so once we get some documentation (wiki) stuff together, and complete a few more dev and test cycles, I reckon we would pose a good case for becoming an official addon.

Is anyone keen to volunteer to start collecting content for the ServerWMC + pvr.wmc Wiki page? A wiki breakdown/topics similar to the MediaPortal addon would be good I reckon. We need some general info as to where to get builds and how to install, screenshots of the ServerWMC screen. A basic explanation of how the app works (ie it drives the existing WMC recording and Epg services, and that watching LiveTV is actually performing a live recording and streaming that to clients). We can have a troubleshooting section that talks about the serverWMC log file, as well as a couple of the config.xml options that enhance logging output (such as LogAllReplies). We can also have a Development section, where comments such as the above instructions on how to build for OSX/Linux can be entered, as well as links to the code repo and so on.

If anyone is keen to give that a go, start collating and collecting useful info out of the thread here and start to knock up the wiki, that would be fantastic! Krusty and I can edit/tweak it once something is there, but our core time is likely better focused on coding, so if someone wants to volunteer to get some of the content up in some form, that would be really helpful!

This is the media portal one, which I think has a good structure: http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV

Looks like we should be able to create a page even for unofficial addons, based on here: http://wiki.xbmc.org/index.php?title=Help:Add-on_page
Ive just signed up for an account and waiting for it to be approved. Once we got it looking good etc, we could get it moved into the more official spot... but collecting the content and working on the wiki page is something that would need to happen prior to that.

If there are any volunteers let us know!