[RELEASE] NHL Gamecenter Addon

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
SKIBBE Offline
Junior Member
Posts: 35
Joined: Apr 2012
Reputation: 0
Post: #101
Xbmx is reporting 30fps streams, but my tv changes to 50hz? Anyone else noticed that? Works with everything else 24p>24hz 25fps>50hz 30fps>60hz (non streaming video)


Just noticed that the screen blanks random after a few minutes (changening the hz to 60hz) strange...


Also having some sound glitches/drops

Eden pvr build
Ion/atom330 win7x64
100/100mbit connection

Thanks for a great Add-on! Keep up the good work
(This post was last modified: 2012-04-12 17:29 by SKIBBE.)
find quote
Carb0 Offline
Senior Member
Posts: 171
Joined: Sep 2011
Reputation: 0
Post: #102
Thank you.
I did notice the incorrect frame-rate and the the change after a few minutes but I don't have sound glitches/drops.
Unfortunately, I don't know if I can force XBMC to play the video at a specific frame-rate from the beginning.

NHL Gamecenter Addon
Watch live out-of-market games, full length and condensed game replays and classic games in XBMC. Get it now!


The Verge Addon
Watch podcast from theverge.com in XBMC. Get it now!
find quote
SKIBBE Offline
Junior Member
Posts: 35
Joined: Apr 2012
Reputation: 0
Post: #103
Been watching and testing, must be some xbmc error, restart seems to fix it (sound glitches) or bad streams, works to restart xbmc anyhow.

Will try a live feed tonight, i hope it works :-)
find quote
micahg Offline
Member
Posts: 87
Joined: Sep 2011
Reputation: 1
Post: #104
I thought live games were still broken...
find quote
aydin Offline
Junior Member
Posts: 10
Joined: Apr 2012
Reputation: 0
Location: UK
Post: #105
FYI Carb0 - I've tried replicating the issues I was having last night and it's no longer crashing! So no need for me to post my log.

Can't explain why it's working now, but hopefully it's all well and good.
find quote
spektr Offline
Junior Member
Posts: 9
Joined: Dec 2009
Reputation: 0
Post: #106
(2012-03-04 04:39)apok Wrote:  Alright, update!

Here's a mlbhls.exe (with dependancy DLLs) that I compiled in cygwin. Extract it to somewhere convenient i.e. c:\mlbhls-nhl\

MLBHLS-NHL (Windows EXE and source) http://www.2shared.com/file/f8GjtoPK/mlbhls-nhl.html
NHLGC 0.3.2.1 http://www.2shared.com/file/0MbP0hX8/plu...-mlb-.html

I added an enhancement to the mlbhls-nhl for pulling the TARGETDURATION from the m3u8 streams, since the original is coded for a 12 second delay. This should prevent some edge cases from occurring.

You will need to configure the "Path to MLBHLS Binary" and "HLS Output DIR" settings, as these will be OS-dependent.

For the Binary, if you are on linux so long as it's under /usr/bin you can just enter "mlbhls". Use a full path for Windows.
For the Output Dir, supply a trailing slash i.e. '/' on Linux or '\' on Windows.

Sleep on start specifies how long to wait for the stream to start building locally.

Files to buffer is only used when you select a live stream instead of viewing a game from the start. Keep in mind that each file segment is ~10 seconds long.

With the default of 3 and a sleep time of 15 seconds, you'll allow 30-40 seconds of video to be written to the output file prior to xbmc launching it.

I noticed changing the add-on settings seems to crash XBMC, so beware.

On Windows, the mlbhls does open in an external window - just alt-tab and it'll run in the background. Unfortunately I couldn't figure out how to kill the program when you stop viewing the screen if it is hidden (on Windows), because it's a child process that's executed. On Linux, pkill takes care of it Smile

Hey apok, thanks for this mod! Unfortunately, I've followed your instructions above, but am not having any luck - I click on Live Games, and they come up, but when I select any of them I don't get that "home/away" box or whatever pop up, it just takes me to another 'directory' (which is empty).

I'm on linux (Ubuntu), and I'm able to watch condensed/archive/etc games beautifully with this plugin, so any ideas as to what I'm missing?
find quote
spektr Offline
Junior Member
Posts: 9
Joined: Dec 2009
Reputation: 0
Post: #107
(2012-04-14 09:33)spektr Wrote:  
(2012-03-04 04:39)apok Wrote:  Alright, update!

Here's a mlbhls.exe (with dependancy DLLs) that I compiled in cygwin. Extract it to somewhere convenient i.e. c:\mlbhls-nhl\

MLBHLS-NHL (Windows EXE and source) http://www.2shared.com/file/f8GjtoPK/mlbhls-nhl.html
NHLGC 0.3.2.1 http://www.2shared.com/file/0MbP0hX8/plu...-mlb-.html

I added an enhancement to the mlbhls-nhl for pulling the TARGETDURATION from the m3u8 streams, since the original is coded for a 12 second delay. This should prevent some edge cases from occurring.

You will need to configure the "Path to MLBHLS Binary" and "HLS Output DIR" settings, as these will be OS-dependent.

For the Binary, if you are on linux so long as it's under /usr/bin you can just enter "mlbhls". Use a full path for Windows.
For the Output Dir, supply a trailing slash i.e. '/' on Linux or '\' on Windows.

Sleep on start specifies how long to wait for the stream to start building locally.

Files to buffer is only used when you select a live stream instead of viewing a game from the start. Keep in mind that each file segment is ~10 seconds long.

With the default of 3 and a sleep time of 15 seconds, you'll allow 30-40 seconds of video to be written to the output file prior to xbmc launching it.

I noticed changing the add-on settings seems to crash XBMC, so beware.

On Windows, the mlbhls does open in an external window - just alt-tab and it'll run in the background. Unfortunately I couldn't figure out how to kill the program when you stop viewing the screen if it is hidden (on Windows), because it's a child process that's executed. On Linux, pkill takes care of it Smile

Hey apok, thanks for this mod! Unfortunately, I've followed your instructions above, but am not having any luck - I click on Live Games, and they come up, but when I select any of them I don't get that "home/away" box or whatever pop up, it just takes me to another 'directory' (which is empty).

I'm on linux (Ubuntu), and I'm able to watch condensed/archive/etc games beautifully with this plugin, so any ideas as to what I'm missing?

Ok, would like to add to this: in testing, I've now found *one* of the four 'live' games has links in the next 'directory' after you select it, with the whole live from start, home/away etc etc. Unfortunately, it still doesn't play for me. I thought this might have been because it appears you may have made a typo in the plugin, specifying -H instead of -B parameter when passing to mlbhls, but changing that didn't fix it (have also tried to play a stream from the command line without success).

This turns up another issue for me though. I'm in Australia, so there's a massive time difference between when a game is being played in the US vs here. For some reason, the method you're using to pull the list of live games (live.xml, from my review of the plugin code), expires the games quickly once they're finished. The problem is, they don't go into the 'Archive' for me to be able to watch them there for about 24 hours or so. Soooo, the game is essentially in a 'black hole' for that time. However, on the official website itself, I'm of course able to go and watch those 'not live, but not archived' games. This is why I think most of the 'Live' links in the plugin are empty for me.

Any ideas?
(This post was last modified: 2012-04-15 05:30 by spektr.)
find quote
Carb0 Offline
Senior Member
Posts: 171
Joined: Sep 2011
Reputation: 0
Post: #108
You're right. The plugin does download the live.xml file from the NHL servers. This file contains valid links as long as the game is still running. There's nothing you can do about it unless you scrape the NHL website directly.

NHL Gamecenter Addon
Watch live out-of-market games, full length and condensed game replays and classic games in XBMC. Get it now!


The Verge Addon
Watch podcast from theverge.com in XBMC. Get it now!
find quote
spektr Offline
Junior Member
Posts: 9
Joined: Dec 2009
Reputation: 0
Post: #109
(2012-04-15 06:17)Carb0 Wrote:  You're right. The plugin does download the live.xml file from the NHL servers. This file contains valid links as long as the game is still running. There's nothing you can do about it unless you scrape the NHL website directly.

Yup, I've been trying to reverse engineer how your plugin works from the gamecenter.py file, trying to brush up on my coding at the same time Smile

I just saw that the games that were in the 'live' listings now are in Archive, so it takes ~12 hours for that move. Any ideas where we could parse the URLs for 'live'-but-completed, non-archived games? It has to show up somewhere I'd imagine (given I can still go to the webpage and watch, for example, the Coyotes game).

Also, any ideas why apok's HLS method isn't working for me? I can play the m3u8 files with ffmpeg, but mlbhls doesn't seem to like it...

Code:
mlbhls -B http://smb.cdnak.neulion.com/fs/nhl/mobile/iphone/video/senators/ced_3000.m3u8 -o test2.ts
[MLB] Reading cfg file: mlb.cfg
[MLB] Output file: test2.ts
[MLB] Max. Bandwidth: 3000000(bps)
[MLB] Min. Bandwidth: 0(bps)
[MLB] Bandwidth Locking: 1
[MLB] Fetching Master URL Ûi...
[MLB] Get Master URL ERR: name lookup timed out
[MLB] Get Master URL ERR: name lookup timed out
[MLB] Get Master URL ERR: name lookup timed out
[MLB] Get Master URL ERR: name lookup timed out

Alternatively, I've also recompiled xbmc with the patch here, and it seems to play m3u8 files fine. Do I need to do anything special to watch live games using your plugin? (I reverted back to your version after I couldn't get apok's to work).
(This post was last modified: 2012-04-15 08:47 by spektr.)
find quote
Vini Offline
Junior Member
Posts: 5
Joined: Sep 2010
Reputation: 0
Post: #110
Thank yiu, thank you, thank you for this plugin!!

Currently watching last nights Hawks Coyotes game!
find quote
Post Reply