2015-03-09, 18:12
(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.
I wish I were able to help you, as I'll be really, really bummed if MLS Live is dead for XBMC. Don't give up! Think of the children!