[RELEASE] NHL Gamecenter Addon

  Thread Rating:
  • 14 Votes - 4.07 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
91dxcrx Offline
Junior Member
Posts: 22
Joined: May 2011
Reputation: 0
Post: #46
anthomacp Wrote:Hi Folks,

I currently have an NHL Gamecenter account (works fine on PC, iPad etc.) but after I've installed this plugin on my ATV2(Eden Beta 2 XBMC) the LIVE games won't work. They just display "The game will start soon" and the rotating NHL logo above it. I can view condensed/archived etc games, just for some reason no live games even though they work just fine on my other devices... Any thoughts?

I'm also having this issue as of last night as well.
find quote
Cocktus Offline
Junior Member
Posts: 13
Joined: Oct 2011
Reputation: 0
Post: #47
Yep, I have the same problem.
find quote
micahg Offline
Senior Member
Posts: 148
Joined: Sep 2011
Reputation: 1
Post: #48
Also having this problem here. Normally when I played streams the m3u8 was the file being played but now its the individual .ts file that starts it. I have no idea why this just broke but it was working up to the 9th. I wonder if they changed something in the playlist and now XBMC is trying to parse it itself (instead of just passing the whole thing to ffmpeg).
find quote
Carb0 Offline
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #49
I don't know if I can fix this. It seems that the structure of the m3u8 file has been changed and XBMC can't play the streams because of that.

I don't have much time to work on the plugin currently. I'll have a closer look at it sometime next week.
find quote
micahg Offline
Senior Member
Posts: 148
Joined: Sep 2011
Reputation: 1
Post: #50
In the event FFMPEG gets a resync before Eden is released, you could probably just change the m3u8 URLs to start with applehttp:// instead of http:// (its a protocol and a demuxer in the git version). But I dont think that is going to happen.
find quote
Carb0 Offline
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #51
91dxcrx Wrote:Thank you so much for making this add-on, I've been wanting this ever since I got into XBMC. I just upgraded to Eden Beta 3 and when I go to live games it only shows one team and vs (ex: TOR vs.) so the other team and date/time are missing. Also would it be possible to have team logos incorporated somehow? Thanks again.

To fix the problem with Beta 3 go to "Settings"->"Video"->"File lists" and turn "Replace file names with library titles" off.

Unfortunately you can only set one image per game, that means that you would need an image for every possible team combination. That's a few hundred images you'd have to create by hand. If it's somehow possible to create the image dynamically I would love to add the feature.

There is also the possibility to show the logo of the home team or the logo of your favourite team only. That would be easier to incorporate but not as nice.Blush

EDIT:
There will be team logos (like this one) in the next version. It was easier than I thought. The addon will download the logos from nhl.com and create an image for every possible team combination.
(This post was last modified: 2012-02-15 23:45 by Carb0.)
find quote
anthomacp Offline
Junior Member
Posts: 4
Joined: Feb 2012
Reputation: 0
Post: #52
Carb0 Wrote:in the next version

Ooo next version, does this mean you've had some luck with the live streams? Big Grin
find quote
91dxcrx Offline
Junior Member
Posts: 22
Joined: May 2011
Reputation: 0
Post: #53
Carb0 Wrote:To fix the problem with Beta 3 go to "Settings"->"Video"->"File lists" and turn "Replace file names with library titles" off.

Unfortunately you can only set one image per game, that means that you would need an image for every possible team combination. That's a few hundred images you'd have to create by hand. If it's somehow possible to create the image dynamically I would love to add the feature.

There is also the possibility to show the logo of the home team or the logo of your favourite team only. That would be easier to incorporate but not as nice.Blush

EDIT:
There will be team logos (like this one) in the next version. It was easier than I thought. The addon will download the logos from nhl.com and create an image for every possible team combination.

This is amazing..so I'm guessing you found a fix for the recent live stream problems?Big Grin
find quote
Carb0 Offline
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #54
No, I didn't find a fix. Sorry. It doesn't look very good. I think we'll have to wait until FFMPEG stuff that micahg posted about is implemented.

Condensed and archived games are still working. So this plugin is not completely dead...
find quote
micahg Offline
Senior Member
Posts: 148
Joined: Sep 2011
Reputation: 1
Post: #55
On that note, I'm looking into the XBMC code ot see if there is something we can do. I've never been into it before, but I'm hoping I can get something in before Eden is released... but who knows (no promises)
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #56
On Eden RC1 win32 I tried modifying the live.xml to use applehttp:// but this did not work - I got an unsupported protocol nag.

Was the streaming working in a specific XBMC release, or do you really think it's something to do with the m3u8 stream?
find quote
micahg Offline
Senior Member
Posts: 148
Joined: Sep 2011
Reputation: 1
Post: #57
Yes. I don't believe XBMC has updated FFMPEG, so applehttp:// wouldn't work.

The way I see it is that one day the streams just stopped working. I hadn't changed (or pulled updated code) in XBMC to make a change. My friend who also uses this app was using the same windows build the whole time -- it just stopped working. This leaves me to believe that it is not xbmc. That said, I'm still trying to figure out how to fix it in XBMC... its a slow process!
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #58
micahg Wrote:Yes. I don't believe XBMC has updated FFMPEG, so applehttp:// wouldn't work.

The way I see it is that one day the streams just stopped working. I hadn't changed (or pulled updated code) in XBMC to make a change. My friend who also uses this app was using the same windows build the whole time -- it just stopped working. This leaves me to believe that it is not xbmc. That said, I'm still trying to figure out how to fix it in XBMC... its a slow process!

So let's figure out what broke. I was able to get the live streams loading (xbmc was able to download the .m3u8), but it just treated it like a playlist and started from the first #EXTINF. It also wasn't joining the playlist objects (*.ts) seamlessly, like ffmpeg does.

I'm not very familiar with git, but I believe I have the Eden repo checked out.

Code:
apokalypse@destruction:~/xbmc$ grep -R m3u8 *
apokalypse@destruction:~/xbmc$ grep -R applehttp *
lib/ffmpeg/libavformat/Makefile:OBJS-$(CONFIG_APPLEHTTP_DEMUXER)         += applehttp.o
lib/ffmpeg/libavformat/allformats.c:    REGISTER_DEMUXER  (APPLEHTTP, applehttp);
lib/ffmpeg/libavformat/applehttp.c:static int applehttp_read_header(AVFormatContext *s, AVFormatParameters *ap)
lib/ffmpeg/libavformat/applehttp.c:static int applehttp_read_packet(AVFormatContext *s, AVPacket *pkt)
lib/ffmpeg/libavformat/applehttp.c:static int applehttp_close(AVFormatContext *s)
lib/ffmpeg/libavformat/applehttp.c:static int applehttp_read_seek(AVFormatContext *s, int stream_index,
lib/ffmpeg/libavformat/applehttp.c:static int applehttp_probe(AVProbeData *p)
lib/ffmpeg/libavformat/applehttp.c:AVInputFormat ff_applehttp_demuxer = {
lib/ffmpeg/libavformat/applehttp.c:    "applehttp",
lib/ffmpeg/libavformat/applehttp.c:    applehttp_probe,
lib/ffmpeg/libavformat/applehttp.c:    applehttp_read_header,
lib/ffmpeg/libavformat/applehttp.c:    applehttp_read_packet,
lib/ffmpeg/libavformat/applehttp.c:    applehttp_close,
lib/ffmpeg/libavformat/applehttp.c:    applehttp_read_seek,
Binary file lib/ffmpeg/libavformat/allformats.o matches
lib/ffmpeg/libavformat/applehttp.d:libavformat/applehttp.o: libavformat/applehttp.c libavutil/avstring.h \
Binary file lib/ffmpeg/libavformat/applehttp.o matches
lib/ffmpeg/config.log:applehttp_demuxer
lib/ffmpeg/config.log:applehttp_demuxer='yes'
lib/ffmpeg/config.log:applehttp_demuxer

Could it be the m3u8 handling is misbehaving?
find quote
micahg Offline
Senior Member
Posts: 148
Joined: Sep 2011
Reputation: 1
Post: #59
Well, that is what I'm looking into. I'm not at home so I can't provide a reference to the code, but the playlist player (I think that is the class) basically sees that the file is a playlist and expands it so that all of the internal items (the ts files) are added to the xbmc playlist. This is why it starts from the beginning and has a delay between ts files. I've hacked around trying to disable expanding but then it just treats the playlist as unplayable. That is where I had to leave off on the weekend, but when I have more time I'll continue investigating.
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #60
Is there a known format that just instantly gets passed to ffmpeg to compare with?
find quote
Post Reply