Posts: 16
Joined: Feb 2014
Reputation:
0
2014-02-10, 00:45
(This post was last modified: 2014-02-10, 00:50 by heatpipe.)
Just in case this bit of information helps, once I get the first XBMC client working, it works for everyone. Meaning I can start other XBMC clients and they can start watching their own channels just fine.
scarecrow, I can confirm no one else is using the tuner. I made sure to power down all clients that can talk to the HDHomerun prime.
Posts: 16
Joined: Feb 2014
Reputation:
0
krusty, yes it's running with administrator privileges.
Posts: 3,439
Joined: Aug 2012
Reputation:
91
Does this magic trick stop working if you don't?
Posts: 1,378
Joined: Oct 2004
Reputation:
37
Could you also upload a sample WTV file from the same channel, when it DOES work (ie because WMC was open and tuning that channel also)? Just a couple of minutes is all that is required...
Id like to compare the 2 WTV files between not working, and working cases.
Posts: 1,378
Joined: Oct 2004
Reputation:
37
2014-02-11, 14:13
(This post was last modified: 2014-02-11, 14:47 by scarecrow420.)
heatpipe, I have downloaded that zip file a number of times and it is corrupt each time. could you re-upload it please?
Ive looked at the file you originally uploaded and can see that the problem is the audio stream AudioType and Language sections seem to have 2 extra audio tracks that each have a different number of bytes to what we expect in these sections. It would be good to see the working files to see how/why they are different!
Once I fixed the logic to at least skip past these ones, this is the results of the StreamDescriptors
2014/02/11 22:22:39.974 Remux::FindDescriptors> wtv scanned (7.62 sec), Streams found:
2014/02/11 22:22:39.977 > Video: ID:26 Unknown
2014/02/11 22:22:39.978 > Other: ID:27 MS TV Caption
2014/02/11 22:22:39.978 > Audio: ID:28 AC3
2014/02/11 22:22:39.979 > Audio: ID:29 AC3
2014/02/11 22:22:39.979 > Audio: ID:30 (eng) AC3 5.1 48000 Hz 384 kb/s
2014/02/11 22:22:39.979 > Audio: ID:31 (spa) AC3 2.0 48000 Hz 192 kb/s
2014/02/11 22:22:39.980 > Video: ID:32 MPEG-2 MP-HL 1920x1080i fps: 30000/1001 AR: 16:9
Note the audio stream 28 and 29 which we are unable to determine many details about (including disposition, channels, bitrate, language etc)
So here are some interesting observations when testing the raw WTV file and the remux TS output in XBMC and WMC
Playing the WTV file in XBMC emits a split second of audio then fails with the following errors on XBMC log
22:37:32 T:10560 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:393123.343273, should be:75400.000000, error:-317723.343273
22:37:32 T:10560 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_EOF
22:37:32 T:10560 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
Playing the WTV file in WMC works fine, but only shows only 2 languages - english and spanish (though they both appear to have only english commentator voice rather than a spanish commentator but that may just be how it is)?
With my above workaround, the output from our remuxer (TS file) with all 4 streams present
- plays in XBMC with 4 audio tracks - showing as Unknown - AC3 Stereo and Unknown - AC3 5.1, as well as English and Castillan. The unknown tracks have that split second of audio, then nothing... and Eng/Spa both have the same english commentator voice as the WTV file in WMC does
- plays in WMC with split second audio then silence, with no identied/selectable audio languages at all
So weird! I can only conclude that something is very wacky with that WTV file (or these Winter Olympic broadcasts) that WMC is able to ignore but we are trying to process (and indeed XBMC is also trying to process). Not surprising since alot of our remux code appears to be similar/modelled off ffmpeg and other opensource WTV processing code.
It will be good to see some of your other test files once you re-upload that zip file, so I can see what they look like audio wise
The fix I have so far doesnt really work as it causes us to remux the audio tracks which later dont work anyway, so I think if an audio track is encountered with these type of data fields, i haev no choice but to remove it during remux. Which is essentially what WMC seems to be doing itself anyway given that it only displays the 2 eng/spa languages
Posts: 3,439
Joined: Aug 2012
Reputation:
91
Heatpipe,
I don't know why scarecrow is having trouble with the files you uploaded to my g-drive, because they work for me. I have been working with his fix for your problem with those files and we think we have discovered the problem some users have complained about: that occasionally doing a channel change fails. For whatever reason, your system has this problem in spades. So just wanted to say thanks for uploading those test cases, these should go a long way to eradicating this bug.
Posts: 16
Joined: Feb 2014
Reputation:
0
@scarecrow: I uploaded the files again. I tried downloading it from GDrive and the checksum was good so you should be set.
@krusty: It's funny. For the past two days I could stream all channels. Not the slightest hiccup with 3 concurrent XBMC clients. And today, none of the clients could stream a channel. I tried my "trick" and sure enough, I could get the clients working again. So strange.
If there's anything I can to help you debug, please don't hesitate to ask. Thanks again.
Posts: 1,378
Joined: Oct 2004
Reputation:
37
2014-02-13, 07:37
(This post was last modified: 2014-02-13, 07:41 by scarecrow420.)
Sorry i forgot to say that krusty re-upped the indiidual files which worked for me, not sure why the zip was giving me grief. Sorry you uploaded them again when ive actually already got them!
If you have the ServerWMC logs from yesterday's successes and today's failures feel free to post them up. I think it will pretty much confirm though that the times it failed is due to these weird streams. We think they are the tail end of video/audio streams of the previous channel/tuner data "bleeding" into the current stream. We have made fixes to handle them in our remuxing to TS, which will be in the next version. So basically we can filter these bad streams out when remuxing to TS but this wont help XBMC when it is playing the actual WTV files (eg for playing back completed recordings).
We actually wanted to see if you can help to determine whether this "stream bleeding" is present in scheduled recordings or whether its a phenomenon only seen with live viewing and channel switching etc. So what you would need to do is, get yourself in the state where "things arent working". Then schedule a recording of that channel (this needs to be scheduled recording not instant recording, so make sure you are not streaming the channel already). Stop the recording after a couple of minutes, and then upload the WTV file. We can analyse it to see what the streams are like. You can also try playing back the completed recording in XBMC (make sure its completed otherwise we remux it to TS) and see if it plays or not. If it doesnt play then i expect when we analyse it we will find the same stream problems. What we HOPE though, is that the windows rec service is already making sure that these things dont make it into the WTV file... it does seem to delay a few seconds before the recording starts so possibly that is to make sure no bleeding occurs. It would be great if it doesnt affect scheduled recordings since to fix that would require ffmpeg/XBMC changes, similar to what we have had to do in our remuxer.
Questions:
Do you have Pre Start tuners option enabled in ServerWMC? It got disabled by default in the last version anyway but we do sometimes say that a reboot is needed to fully confirm the change. So if you upgraded and havent rebooted it could still be doing stuff maybe
When these failures occur is it after channel switching or it can even happen on the first channel you tune?
Posts: 3,439
Joined: Aug 2012
Reputation:
91
heatpipe,
After scarecrows test, see if the 1126 version of serverwmc solves your live tv problem.