Kodi Community Forum
Why not WMC as backend? - 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: Why not WMC as backend? (/showthread.php?tid=139748)

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


RE: Why not WMC as backend? - doublea - 2013-08-13

I was so excited to test the client on my Linux htpc!! ..until:

ERROR: Unable to load ~/.xbmc/addons/pvr.wmc/XBMC_WMC.pvr, reason: ~/.xbmc/addons/pvr.wmc/XBMC_WMC.pvr: wrong ELF class: ELFCLASS32

$:~/.xbmc/addons/pvr.wmc$ file XBMC_WMC.pvr
XBMC_WMC.pvr: ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=0x0c2fc9a73094b70c9faee4dfc2e8a04e66ba6936, not stripped

$:~/.xbmc/addons/pvr.wmc$ uname -i
x86_64

Can you compile a 64bit Linux version?


RE: Why not WMC as backend? - krustyreturns - 2013-08-13

(2013-08-12, 23:03)JuggalotusHeat Wrote: Real quick. The instructions say the PVR addon will be "disabled" but mine was enabled by default.

I have had this problem before with other testers, it has something to do with the manual install of the client and how I prepare the client builds for release. I will try to nail it down. It should not cause a problem though.

(2013-08-13, 02:58)JuggalotusHeat Wrote: No go on my end. I add the addon to the directory and it is automatically enabled. I then go to LiveTV and try to enable it and this is the output from the log:

17:52:42 T:3444 NOTICE: Previous line repeats 12 times.
17:52:42 T:3444 NOTICE: EPG::CEpgContainer::Start - EPG thread started
17:52:42 T:3444 NOTICE: PVRManager - starting up
17:52:42 T:5716 NOTICE: Thread EPG updater start, auto delete: false
17:52:42 T:6156 NOTICE: Thread PVR manager start, auto delete: false
17:52:42 T:2364 NOTICE: Thread PVR add-on updater start, auto delete: false
17:52:42 T:2364 ERROR: AddOnLog: Windows Media Center PVR: Socket::GetVector> error getting responses

Also, I get a runtime error as shown here:

http://imgur.com/gOKL2iB

and oh yeah...Who's victor? lol C:\users\victor is not an account on my box :OP

Don't trust the already enabled thing. Its a bug, its not really fully enabled. Disable the pvr.wmc close it. Then open it and 're' enable it.


RE: Why not WMC as backend? - krustyreturns - 2013-08-13

(2013-08-13, 18:24)doublea Wrote: I was so excited to test the client on my Linux htpc!! ..until:

ERROR: Unable to load ~/.xbmc/addons/pvr.wmc/XBMC_WMC.pvr, reason: ~/.xbmc/addons/pvr.wmc/XBMC_WMC.pvr: wrong ELF class: ELFCLASS32

$:~/.xbmc/addons/pvr.wmc$ file XBMC_WMC.pvr
XBMC_WMC.pvr: ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=0x0c2fc9a73094b70c9faee4dfc2e8a04e66ba6936, not stripped

$:~/.xbmc/addons/pvr.wmc$ uname -i
x86_64

Can you compile a 64bit Linux version?

Actually, no I can't. Its another developer who ported the client to linux and did the build, I have the code but not the capability to compile to linux. Possible the other developer will read this.

I plan on updating my goofy little website today with the link to the git that has the client code, so if anyone who wants to compile for other platforms they can have a go at it. Sorry that's all I can do for now.

Hey everybody,

I should have also mentioned this software only works on frodo <= 12.2. I will update the website accordingly.


RE: Why not WMC as backend? - krustyreturns - 2013-08-13

Oh and...

The server logs (see 'debug' tab in server windows) are usually more useful to me that the xbmc logs. So please post these too when you have problems.


RE: Why not WMC as backend? - JuggalotusHeat - 2013-08-13

(2013-08-13, 18:27)krustyreturns Wrote:
(2013-08-12, 23:03)JuggalotusHeat Wrote: Real quick. The instructions say the PVR addon will be "disabled" but mine was enabled by default.

I have had this problem before with other testers, it has something to do with the manual install of the client and how I prepare the client builds for release. I will try to nail it down. It should not cause a problem though.

(2013-08-13, 02:58)JuggalotusHeat Wrote: No go on my end. I add the addon to the directory and it is automatically enabled. I then go to LiveTV and try to enable it and this is the output from the log:

17:52:42 T:3444 NOTICE: Previous line repeats 12 times.
17:52:42 T:3444 NOTICE: EPG::CEpgContainer::Start - EPG thread started
17:52:42 T:3444 NOTICE: PVRManager - starting up
17:52:42 T:5716 NOTICE: Thread EPG updater start, auto delete: false
17:52:42 T:6156 NOTICE: Thread PVR manager start, auto delete: false
17:52:42 T:2364 NOTICE: Thread PVR add-on updater start, auto delete: false
17:52:42 T:2364 ERROR: AddOnLog: Windows Media Center PVR: Socket::GetVector> error getting responses

Also, I get a runtime error as shown here:

http://imgur.com/gOKL2iB

and oh yeah...Who's victor? lol C:\users\victor is not an account on my box :OP

Don't trust the already enabled thing. Its a bug, its not really fully enabled. Disable the pvr.wmc close it. Then open it and 're' enable it.

I figured as much. I tried disabling, closing xbmc and enabling it again. However, when I go to LiveTV and try to enable it I still get the runtime error shown in the screenshot.

EDIT: I'll get some debug going.


RE: Why not WMC as backend? - krustyreturns - 2013-08-13

(2013-08-13, 19:03)JuggalotusHeat Wrote:
(2013-08-13, 18:27)krustyreturns Wrote:
(2013-08-12, 23:03)JuggalotusHeat Wrote: Real quick. The instructions say the PVR addon will be "disabled" but mine was enabled by default.

I have had this problem before with other testers, it has something to do with the manual install of the client and how I prepare the client builds for release. I will try to nail it down. It should not cause a problem though.

(2013-08-13, 02:58)JuggalotusHeat Wrote: No go on my end. I add the addon to the directory and it is automatically enabled. I then go to LiveTV and try to enable it and this is the output from the log:

17:52:42 T:3444 NOTICE: Previous line repeats 12 times.
17:52:42 T:3444 NOTICE: EPG::CEpgContainer::Start - EPG thread started
17:52:42 T:3444 NOTICE: PVRManager - starting up
17:52:42 T:5716 NOTICE: Thread EPG updater start, auto delete: false
17:52:42 T:6156 NOTICE: Thread PVR manager start, auto delete: false
17:52:42 T:2364 NOTICE: Thread PVR add-on updater start, auto delete: false
17:52:42 T:2364 ERROR: AddOnLog: Windows Media Center PVR: Socket::GetVector> error getting responses

Also, I get a runtime error as shown here:

http://imgur.com/gOKL2iB

and oh yeah...Who's victor? lol C:\users\victor is not an account on my box :OP

Don't trust the already enabled thing. Its a bug, its not really fully enabled. Disable the pvr.wmc close it. Then open it and 're' enable it.

I figured as much. I tried disabling, closing xbmc and enabling it again. However, when I go to LiveTV and try to enable it I still get the runtime error shown in the screenshot.

EDIT: I'll get some debug going.

Oh. Please send me a server log after the error occurs.


RE: Why not WMC as backend? - JuggalotusHeat - 2013-08-13

The server itself isn't throwing any errors when this occurs. Here is the server log as well as XBMC debug.

http://pastebin.com/KqY2HdZe - XBMC debug
http://pastebin.com/f8EP9A46 - WMC Server


RE: Why not WMC as backend? - bry - 2013-08-13

Krusty - would you consider creating a subforum under the PVR http://forum.xbmc.org/forumdisplay.php?fid=167 ? Maybe the more people that are aware of this the more interest and/or help in troubleshooting and development.


RE: Why not WMC as backend? - krustyreturns - 2013-08-13

(2013-08-13, 19:49)bry- Wrote: Krusty - would you consider creating a subforum under the PVR http://forum.xbmc.org/forumdisplay.php?fid=167 ? Maybe the more people that are aware of this the more interest and/or help in troubleshooting and development.

That a good idea, but I am not sure how to go about it and I have enough to do already. If someone else wants to take it on, that would be great.

Short of that, making a new thread since we are in a new phase and this one is monstrously long already might be good stopgap.


RE: Why not WMC as backend? - opdenkamp - 2013-08-13

I don't agree on creating a subforum in the user support section for something that is still under development, and that is not included in our repos yet. As soon as it's included, sure, but not just yet.


RE: Why not WMC as backend? - bry - 2013-08-13

(2013-08-13, 20:47)opdenkamp Wrote: I don't agree on creating a subforum in the user support section for something that is still under development, and that is not included in our repos yet. As soon as it's included, sure, but not just yet.

doh! well here is the thread with general info - for those who may want to help move this project forward http://forum.xbmc.org/showthread.php?tid=171188


RE: Why not WMC as backend? - krustyreturns - 2013-08-13

(2013-08-13, 19:26)JuggalotusHeat Wrote: The server itself isn't throwing any errors when this occurs. Here is the server log as well as XBMC debug.

http://pastebin.com/KqY2HdZe - XBMC debug
http://pastebin.com/f8EP9A46 - WMC Server

Yeah the server has never heard of the client. It looks you are running them on the same machine, but somehow the socket communication between them is throwing an error. When you first ran the server, windows should have thrown up a window asking you if its okay to allow the server to communicate, did you allow it?


RE: Why not WMC as backend? - krustyreturns - 2013-08-13

on closer inspection the server is not able to start the socket server. If it started successfully you should see in the server log:
SocketServer> started on port: 9080

but its not in the log file you sent. Unfortunately there aren't any diagnostics for why its not starting either - oops.


RE: Why not WMC as backend? - asm495 - 2013-08-13

This is working fairly well for me. Issues that I have:

- Trying to stream a programme that is currently recording causes a crash (error below)

StreamProc> started remux, live stream 'ts' file: RecordingTV_BENDER_2013_08_13_20_40_53.ts
StreamProc> 'ts' file created, size: 65,536 in 0.09 sec
StreamProc> total time: 0.09 sec
OpenRecordingStream> current stream file size: 98,304
OpenRecordingStream> returning client's path to recording: smb:\\FRY\Recorded TV2\TempXBMC\RecordingTV_BENDER_2013_08_13_20_40_53.ts
Finished request OpenRecordingStream in 0.10s
System.NullReferenceException: Object reference not set to an instance of an object.
at ServerWMC.RecService.StreamFileSize(String[] args)
at ServerWMC.MainWindow.ProcessClientRequest(String request, String socketType)
at ServerWMC.SocketServer.ReceiveCallback(IAsyncResult ar): SocketServer::ReceiveCallback: {0}

- Playing back HD content (MPEG4) is jerky. This is on my main desktop PC (Core i5, dedicated graphics, 8GB RAM) and it should not have any issues. It plays smoothly very briefly and then it pauses for a fraction of a second before rushing to catch-up again. The log is below of the stream I was trying:

Received client request: BENDER|OpenLiveStream|65045|0|1|BBC Two HD/2
OpenLiveStream> client: BENDER requesting live stream
StreamProc> live-tv started
SetChannel> isAlreadyTuned: False
SetChannel> Tuner: TBS 6981 BDA DVBS/S2 A Tuner/Demod #1
SetChannel> Digital: True
SetChannel> Encrypted: False
SetChannel> RecorderInfo found: True
SetChannel> Tuner: TBS 6981 BDA DVBS/S2 B Tuner/Demod #1
SetChannel> Digital: True
SetChannel> Encrypted: False
SetChannel> RecorderInfo found: True
SetChannel> Recorder Content Protection: PROT_COPY_FREE
SetChannel> Recorder acquired: True
StreamProc> wtv file size: 3,145,728 in 3.33 sec
StreamProc> stream output file: LiveTV_BENDER_DVB-S_2_2013_08_13_20_44_20.ts
Remux> Scanning for stream info
Remux> Streams scanned (0.0260 sec):
> Other: 0x46 MPEG2 PES
> Audio: 0x47 (eng) AC3 2.0 48000 Hz 192 kb/s
> Video: 0x48 AVC High-4.0 1920x1080i fps: 25
> Other: 0x49 MS TV Caption
> Audio: 0x4A (nar) MPEG Audio V1L2 Stereo 48000 Hz 256 kb/s
StreamProc> started remux, live stream 'ts' file: LiveTV_BENDER_DVB-S_2_2013_08_13_20_44_20.ts
StreamProc> 'ts' file created, size: 262,144 in 0.11 sec
StreamProc> total time: 3.44 sec
OpenLiveStream> stream path returned to client: smb:\\FRY\Recorded TV2\TempXBMC\LiveTV_BENDER_DVB-S_2_2013_08_13_20_44_20.ts
Finished request OpenLiveStream in 3.44s


RE: Why not WMC as backend? - JuggalotusHeat - 2013-08-13

(2013-08-13, 21:15)krustyreturns Wrote:
(2013-08-13, 19:26)JuggalotusHeat Wrote: The server itself isn't throwing any errors when this occurs. Here is the server log as well as XBMC debug.

http://pastebin.com/KqY2HdZe - XBMC debug
http://pastebin.com/f8EP9A46 - WMC Server

Yeah the server has never heard of the client. It looks you are running them on the same machine, but somehow the socket communication between them is throwing an error. When you first ran the server, windows should have thrown up a window asking you if its okay to allow the server to communicate, did you allow it?

I did not see any popups. Are you referring to Windoze asking for firewall permissions? I'll do a full reinstall of the server again and see if I missed something.