![]() |
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) 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
RE: WMC as the backend - released - krustyreturns - 2013-10-12 (2013-10-12, 17:53)Charles R Wrote: I have been trying out the server/client with OpenELEC and I'm very impressed. There are a couple of minor things I wouldn't mind seeing such as the ability to view series recordings grouped instead of each episode listed individually. However the only issue stopping me from replacing a classic WMC extender is semi-live TV. your other two points first: I can't group the episodes in a series, this is a restriction of xbmc not my addon. I would like to see this changed too, I recommend you and I both submit this feature request to the xbmc team. I know I keep meaning to! ![]() Wtv is a weird file format that xbmc does not handle correctly when the wtv stream is live. So I remux to ts and stream ts to xbmc. I really need to get rid of that wtv stream switch - it confuses everybody - maybe in the next rev. So to your main point. You start a recording of a two hour show, and start watching the active recording 40 minutes later so that you can ff through commercials - that's how I watch football now. Why can't you do this with my software? When you start viewing an 'active' recording 40 minutes after it has been recording, it is true that the ts remux has started from the beginning of the wtv file, but it is very fast, by the time you have watched a couple of minutes of the tv show, it will be way ahead of where you are in the wtv file, you should be able to skip commercials without any problem. If for some reason you can't (which would be weird, because I can), I just realized I could build into the server an option to generate temp ts files for all recordings while that are in progress (provided you can take the disk space and cycle hit). Interesting idea I have never thought about before, but I don't see a problem with it. Then the ts would be all available to you at show start. RE: WMC as the backend - released - Charles R - 2013-10-12 I figured the grouping was a restriction within XBMC... Regarding my main point perhaps my hardware installation comes into play. I'm using a Celeron NUC running OpenELEC on a 8GB flash drive. No hard drive at all with very little power. When I try to fast forward/skip into a currently being recorded show it doesn't proceed much faster than real time. I'm guessing the remux process is taxing the poor PC rather heavily. Last night I was watching a show and couldn't skip... and then all of a sudden it worked great and sure enough the recording had completed and I guess you seamlessly switch methods... stopped the remuxing. My goal was to build a low-end PC instead of using a streamer. The NUC is less than $200 as configured and plays video files great including HD audio/video. If I invest much more I might was well (perhaps) use Windows or dedicate an Xbox as an extender. Now if I knew an i3 would give me the required horsepower or I need more/faster storage (access to my NAS?) I might be willing to bite. I have been pimping the server/client software here... at the current end of the thread. Further note my server is an i3 with tons of RAM so it should be powerful enough to handle the remux I'm guessing. Storage wise I'm using iSCSI to my NAS mapped as a local drive. (2013-10-12, 18:53)krustyreturns Wrote: your other two points first: RE: WMC as the backend - released - TechLife - 2013-10-12 (2013-10-12, 18:28)krustyreturns Wrote: When you say the htpc wakes with an error, you man that the htpc boots, auto starts the server, and the server fails - right?Yes. Except is is waking from S3 sleep not a cold boot. The error is only displayed for a second before the XBMC splash screen hides it. I believe it is complaining about not being able to load the EPG. Quote:The log says your tuner is not available, and that's why it is not starting. So I also want to know: how do you get it to start after this error? Do you just restart the server? Does that usually work?Yes. That usually works. Sometimes I have to completely reboot the HTPC though. Quote:I wonder if I never see this because my server is always on (on my family server - not devel). Maybe its possible that your server is crashing because the recservice has not had time to init the tuner after boot. If so, I could build in a delay and have it try again. Let me know.That very well could be. I'd be happy to test. Unfortunately it doesn't happen every time. Seems to be every few days. I will pay closer attention to see if there is an exact amount of time involved. I am also considering throwing together a small Windows box to act as a TV server so I can use it in other areas without having to wake the main HTPC. That happens so infrequently that it hasn't been high on my priority list though. Quote:Lastly, I don't know why xbmc disables the addon when it detects the server is not up. It never does that for me, it just complains the server is not up until I start the server. Did you change a setting in xbmc?I don't either and it doesn't always happen. It was complaining just like you are used to. I disabled the notification because if it happens to the wife when I'm not home I'll get a very angry phone call. Other than that, there is nothing in XBMC that I have changed (at least not that I am aware of). RE: WMC as the backend - released - krustyreturns - 2013-10-12 (2013-10-12, 19:52)Charles R Wrote: I figured the grouping was a restriction within XBMC... Regarding my main point perhaps my hardware installation comes into play. I'm using a Celeron NUC running OpenELEC on a 8GB flash drive. No hard drive at all with very little power. When I try to fast forward/skip into a currently being recorded show it doesn't proceed much faster than real time. I'm guessing the remux process is taxing the poor PC rather heavily. Last night I was watching a show and couldn't skip... and then all of a sudden it worked great and sure enough the recording had completed and I guess you seamlessly switch methods... stopped the remuxing. No it doesn't switch - it was still streaming the ts file. Seems like there are two possibilities, one is that the reason it started working was your server pc had lots of data available to remux so it was doing it as fast as it could until it caught up or the wtv file ended. The reason you had trouble was your pc couldn't do both this fast remux and the streaming of the ts at the same time. When the remux stopped all was well. The other possibility is that your pc remuxed so slowly it couldn't get ahead of the your view, but that would not explain why it worked when the recording stopped, so I think it is the former. If that the case that's interesting, makes me think I should slow the remux down in instances where it is not waiting for tuner data, just so it makes less demands on underpowered systems. You can experiment by starting a recording of a long program - like one hour. After recording starts, just wait a minute or two before you start viewing. See how long it takes before you can skip forward easily. I thought wmc doesn't allow you to use a nas as the recorded tv folder, and I didn't think you could trick it by mapping it as a network drive. The remux is not that ram intensive but hoursepower, disk and network matter. digression: Interesting article (I didn't read it all but plan to). I made the switch from multiple tivos to multiple pcs running wmc in a server/client mode maybe about 6 or 7 years ago. All of my client pcs (3 of them) are about five hundred dollar machines (mostly because I want small ssd's for fast boot and blu-ray drives). My family still mostly runs this way, my son and I have switched to xbmc (the good part about my software approach is that wmc and xbmc setups can coexist). RE: WMC as the backend - released - krustyreturns - 2013-10-12 (2013-10-12, 20:39)TechLife Wrote:(2013-10-12, 18:28)krustyreturns Wrote: When you say the htpc wakes with an error, you man that the htpc boots, auto starts the server, and the server fails - right?Yes. Except is is waking from S3 sleep not a cold boot. The error is only displayed for a second before the XBMC splash screen hides it. I believe it is complaining about not being able to load the EPG. Why not just leave the server running? I will look into doing multiple tries with delays for getting access to the tuner before it fails. RE: WMC as the backend - released - TechLife - 2013-10-12 (2013-10-12, 21:27)krustyreturns Wrote: I will look into doing multiple tries with delays for getting access to the tuner before it fails. Fantastic. I will be very happy to give it a try. Thanks kr! RE: WMC as the backend - released - krustyreturns - 2013-10-12 (2013-10-12, 21:37)TechLife Wrote:(2013-10-12, 21:27)krustyreturns Wrote: I will look into doing multiple tries with delays for getting access to the tuner before it fails. Cool. My question was not stated well: If you are just putting the server computer to sleep, why not just let the server program run? Why restart it after a wake? RE: - spaceboy - 2013-10-12 hi kr, so i tried the new server build, renabled the credentials with my @outlook.com username and everything is fine in windows. on the raspberry pi i can't get either live tv or recorded tv to start. just the working wheel within raspbmc. i attach the log for one run of live tv on the pi https://dl.dropboxusercontent.com/u/39548367/ServerWMC%20Pi%20Live%20TV.log if it turns out its authentication still then please let me know whether there is anything from raspbmc that i can show you which shows how it handles the @outlook.com username as i've just set up a fresh one today and confirmed the username works with raspbmc accessing the smb shares itself thanks! RE: - Dilligaf - 2013-10-12 @spaceboy Curious what /home/pi/.xbmc/userdata/passwords.xml contains when using xbmc authentication. Can you copy/paste the contents (of course after editing sensitive data) It should be only 3 or 4 lines long RE: WMC as the backend - released - krustyreturns - 2013-10-12 (2013-10-12, 16:30)milkman dan Wrote: Started watching channel 3.1 (CBS), everything good. I can see two audio channels, both ENG. Switch to channel 6.1 (ABC), plays with no sound, I can see two audio channels, SAP and ENG, SAP listed first. I suspect no sound because it wasn't actually available, I think with the show does actually support SAP, it plays in SAP. Following on to my last post to you. I looked at the log and I can't distinguish between the time channel 6.1 played SPA and the time it played ENG. As far the the stream descriptors found, it did it exactly the same way both times. That leads me to believe xbmc is choosing the wrong stream and the only way I can know for sure it won't choose spa is to not mux it to the output. Sigh. This isn't difficult to add, but it just doesn't feel right. Anyway, it looks like it will be an option in the next server. (2013-10-12, 22:41)spaceboy Wrote: hi kr, so i tried the new server build, renabled the credentials with my @outlook.com username and everything is fine in windows. on the raspberry pi i can't get either live tv or recorded tv to start. just the working wheel within raspbmc. damn. Well I at least I got the windows part working ![]() Looking at the server log, it seems to think the unc path to our recorded tv folder is: \\HTPC\d\Recorded TV I am guessing that it is supposed to be: \\HTPC\Recorded TV without the 'd'. Try that and see if it works. RE: WMC as the backend - released - CTD5 - 2013-10-13 I apologize if this has been discussed already (I tried to read through the thread as best I could), but I think I found a bug. Or I'm doing something wrong. The issue is that if I tune to one channel from an XBMC client and then tune to *the same channel* on another client, it says all tuners are busy. (my backend only has one tuner) I poked around a little and as far as I can see, (please correct me if I'm wrong) the server works by taking the .wtv stream from WMC and remuxing it into a .ts stream. Each stream contains the name of the client device. Would it be possible to point the client to an existing stream that doesn't contain it's name if it is trying to tune a channel that is already being tuned? Would it be easier to clone the stream and rename it? Would that break something else? Thank you, for all your hard work! RE: WMC as the backend - released - User 137418 - 2013-10-13 (2013-10-12, 18:13)krustyreturns Wrote:(2013-10-12, 16:30)milkman dan Wrote: Trying to post a log from pastebin for the first time, so I hope this works... I am pasting the whole thing because the first line has info about the server running, but the issue arose 10/12/2013 at 9:34am, so you can skip down to that part to look for the issue. Not sure about the sleeping now. I may have stopped playback to go look for the log file and it fell asleep at some point with playback stopped. I will test this again to verify. Nothing to chase down, yet. I'll keep you posted. Thanks. RE: WMC as the backend - released - spaceboy - 2013-10-13 (2013-10-12, 23:05)Dilligaf Wrote: @spaceboy ok. one of my pi's has a password.xml, the other does not. they can both access the smb shares on my htpc. i did disable the requirement to require a password for sharing on the htpc but the pi with the password.xml is the one set up today and i was asked for a username and password when browsing to the smb shares. this is an extract from the passwords.xml file which is dated today <passwords> <path> <from pathversion="1">smb://HTPC/</from> <to pathversion="1">smb://username%40outlook.com:password@HTPC/</to> </path> </passwords> there are some other lines as well but just folders within HTPC if i play a movie from that pi i can see the credentials used like so: 23:08:27 T:2717905984 DEBUG: ScanForExternalSubtitles: Searching for subtitles... 23:08:27 T:2717905984 DEBUG: OpenDir - Using authentication url smb://username%40outlook.com:password@HTPC/E/Videos/Movies/The%20Break%20Up%20(2011) 23:08:28 T:2717905984 INFO: ScanForExternalSubtitles: found subtitle file smb://HTPC/E/Videos/Movies/The Break Up (2011)/The Break Up (2011).srt 23:08:28 T:2717905984 DEBUG: ScanForExternalSubtitles: END (total time: 949 ms) 2 no idea why the other pi doesn't seem to require credentials and @kr, no the file path was correct. the D drive is my WMC recorded tv disk. hopefully this is helpful! RE: WMC as the backend - released - Charles R - 2013-10-13 If you use iSCSI it looks like a local drive to Windows/WMC. In my case it's drive R and I only use it for recordings. On my NAS I configured part of a the hard drive as a iSCSI target. The space is treated as raw and dedicated to the Windows PC. No one else can access it outside of sharing it from the PC itself. It easily handles four concurrent recordings and several playbacks. This way my WMC server only has a SSD and is virtually quiet... a requirement as it sits right next to me. I wonder if how data is writtien to the NAS (iSCSI) comes into play? I'll play around but I don't think I can ever skip forward easily while the recording is active. The server is an i3 and I'll see how hard it is working while the remux is active... UPDATE: I just started a long recording (4 hour NASCAR). Looking at my server I see 3% CPU, 29% Memory, 18% Disk (15-22) and 8% Network while viewing the recording on my client. I paused it for a few minutes and then did fast forwarding for a couple of minutes and it seems to work (fine). OK I see where the issue resides. If I select the recording I can't fast forward as my time displays as an example 02:30 - 02:15 and the image is frozen. However if I select the show via TV Channels I can then pause and fast forward. So far I can't rewind either way... selecting the show from TV channel or recordings. Perhaps user misunderstanding or error? (2013-10-12, 21:13)krustyreturns Wrote: No it doesn't switch - it was still streaming the ts file. Seems like there are two possibilities, one is that the reason it started working was your server pc had lots of data available to remux so it was doing it as fast as it could until it caught up or the wtv file ended. The reason you had trouble was your pc couldn't do both this fast remux and the streaming of the ts at the same time. When the remux stopped all was well. The other possibility is that your pc remuxed so slowly it couldn't get ahead of the your view, but that would not explain why it worked when the recording stopped, so I think it is the former. If that the case that's interesting, makes me think I should slow the remux down in instances where it is not waiting for tuner data, just so it makes less demands on underpowered systems. RE: WMC as the backend - released - TechLife - 2013-10-13 (2013-10-12, 21:44)krustyreturns Wrote:(2013-10-12, 21:37)TechLife Wrote:(2013-10-12, 21:27)krustyreturns Wrote: I will look into doing multiple tries with delays for getting access to the tuner before it fails. I do let it run. XBMC is forced to shutdown through a script but nothing else is. I do not close ServerWMC in any way (that I know of). Windows is set to sleep when the power button is pushed on the chassis, which (through a relay) is what happens when the power button is pushed on the remote. |