2015-03-07, 23:41
Installed the zip from github, but I'm unable to get any of the live streams to start. Replay of the LA game seemed to work OK though.
(2015-03-07, 23:29)micahg Wrote:(2015-03-07, 22:55)WilliamG Wrote: ...it keeps freezing and dumping out to the game-selection screen every ~10 mins or so (haven't timed it)
I don't write the bit that plays the actual video -- thats XBMC. This plugin just authenticates with the service and then passes the stream URI to xbmc to play.
(2015-03-07, 22:55)WilliamG Wrote: ...Hopefully we can get an app update since the MLS Live app for XBMC would be awesome when working.
Obviously I'm maintaining it -- updates will come, but probably not much I can do to fix the buffering. I've been comparing to my tablet (android) and it freezes as well (DCU v MTL froze completely a few times). But I'm overseas, so I'm not sure if its a fair comparison.
Anyway, Neulion services are plagued by these problems (see the NHL thread). Hopefully they get their act together and fix the streams, but if you can reproduce it in an officially supported app you can contact support and tell them to fix it (and maybe they will).
14:36:13 T:1642710784 NOTICE: DVDPlayer: eof, waiting for queues to empty
14:36:05 T:1642710784 DEBUG: ffmpeg[61E9C700]: [hls,applehttp] HLS request for url 'http://nlds229.cdnak.neulion.com/nlds/mls/philadelphiaunion/as/live/philadelphiaunion_hd_4500_20150307223520.ts
Unable to open key file http://nlsk.neulion.com/nlsk1/hls/securekey?id=240&url=/nlds/mls/portlandtimbers/as/live/portlandtimbers_hd_4500/20150
308045000.m3u8.key
14:35:53 T:1642710784 DEBUG: ffmpeg[61E9C700]: [http] HTTP error 403 Forbidden
14:35:53 T:1642710784 ERROR: ffmpeg[61E9C700]: Unable to open key file http://nlsk.neulion.com/nlsk1/hls/securekey?id=229&url=/nlds/mls/philadelphiaunion/as/live/philadelphiaunion_hd_4500/20150307223500.m3u8.key
...
14:36:13 T:1642710784 INFO: virtual void CDVDPlayer::Process() - eof reading from demuxer
(2015-03-09, 00:12)micahg Wrote: OK, here is what I think is going on:
For live games, the keys are now changed every 30 segments (I mean after 30 .ts files there is a new key). I believe that is 5 minutes of video (10 second segments). Recorded games don't seem to do this (I'm not even sure they're encrypted -- but who really cares).
After a while (I'm not sure how far in or why) we start getting a 403 http response trying to get the key:
Code:14:35:53 T:1642710784 DEBUG: ffmpeg[61E9C700]: [http] HTTP error 403 Forbidden
14:35:53 T:1642710784 ERROR: ffmpeg[61E9C700]: Unable to open key file http://nlsk.neulion.com/nlsk1/hls/securekey?id=229&url=/nlds/mls/philadelphiaunion/as/live/philadelphiaunion_hd_4500/20150307223500.m3u8.key
...
14:36:13 T:1642710784 INFO: virtual void CDVDPlayer::Process() - eof reading from demuxer
The question is _why_ does the 403 come back.... this is probably a bug in FFMPEG but because I'm in a really bad timezone to do development progress will be slow. If anyone things they've got the chops to handle some ffmpeg development then get into it, but basically at this point I'm going to have to wait until next weekend (when I have time and a live game is on), analyze the live stream in the good case and then see what we're not doing in the bad case.
I'll be honest -- I'm probably going to mark the addon as broken but if anyone (with programming experience) feels like helping PM me and we'll sort something out.
(2015-03-15, 01:46)micahg Wrote: I'm going to mark it as broken shortly. The HLS streams return new cookie values with each key. FFMPEG doesn't update the cookies properly.
I just submitted a fix to FFMPEG. It needs to be accepted there and merged into XBMC. This fix is out of the question for v14 (Helix) but hopefully for v15.
Until that is all resolved, Evan and I (mostly Evan) are seeing if there is anything we can do plugin-side.