[RELEASE] NHL Gamecenter Addon

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
apok Offline
Junior Member
Posts: 26
Joined: Feb 2012
Reputation: 0
Post: #81
Correct, that will only work in Linux for now. You'd need to get a mlbhls.exe built and then incorporate some platform detection so that the temp file can be written to the right place i.e. %TEMP% on Windows.

There's also a "class MyPlayer( xbmc.Player )" for launching the player, and cleaning up the temp file/killing the mlbhls process when you stop watching video.

If you want to absorb the changes into your script I'm ok with that.
find quote
anthomacp Offline
Junior Member
Posts: 4
Joined: Feb 2012
Reputation: 0
Post: #82
Yay! Progress! haha
(This post was last modified: 2012-03-03 20:36 by anthomacp.)
find quote
apok Offline
Junior Member
Posts: 26
Joined: Feb 2012
Reputation: 0
Post: #83
Carb0 I got mlbhls to build under Cygwin, and when shipped with the DLLs it'll run on Windows. I'll throw together platform detection, test it here and throw up another copy of gamecenter-mlb.
find quote
apok Offline
Junior Member
Posts: 26
Joined: Feb 2012
Reputation: 0
Post: #84
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
(This post was last modified: 2012-03-04 21:54 by apok.)
find quote
Carb0 Offline
Senior Member
Posts: 171
Joined: Sep 2011
Reputation: 0
Post: #85
I tried it on Windows 7 64bit but it didn't work. The mlbhls-nhl window pops up, immediately closes and XBMC shows an error. Sometimes the mlbhls-nhl window shows the line "Start fetching video from line: 600" over and over again. The output.ts and the log file are both 0 bytes large.

Here is my xbmc.log:
http://pastebin.com/fEVyTtZW

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
apok Offline
Junior Member
Posts: 26
Joined: Feb 2012
Reputation: 0
Post: #86
Carb0 Wrote:I tried it on Windows 7 64bit but it didn't work. The mlbhls-nhl window pops up, immediately closes and XBMC shows an error. Sometimes the mlbhls-nhl window shows the line "Start fetching video from line: 600" over and over again. The output.ts and the log file are both 0 bytes large.

Here is my xbmc.log:
http://pastebin.com/fEVyTtZW

Try setting video quality to auto. The MLBHLS relies on a master URL to fetch stream URLs from, so I don't think providing a quality-based stream will work.

You can specify max bandwidth with -b <value in bits> so that it selects an appropriate choice. This can probably be added to the line w/execution instead of tampering with the URL.

I'm seeing some strange behavior that I'm trying to track down right now where the hls program is exiting. Will update further as I track down the problem.
(This post was last modified: 2012-03-04 07:23 by apok.)
find quote
apok Offline
Junior Member
Posts: 26
Joined: Feb 2012
Reputation: 0
Post: #87
March 4, 2012 2:55PM EST

Updated MLBHLS-NHL binary, see post http://forum.xbmc.org/showpost.php?p=103...stcount=84

Added a timestamp check for when the file was last updated. Had a stream running for 40 minutes, so that's promising.
(This post was last modified: 2012-03-04 21:56 by apok.)
find quote
Carb0 Offline
Senior Member
Posts: 171
Joined: Sep 2011
Reputation: 0
Post: #88
It works now. Thank you very much.

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
Dougedey Offline
Junior Member
Posts: 20
Joined: Nov 2010
Reputation: 0
Post: #89
Big massive thanks to you guys, this works brilliantly!

[Image: widget]
find quote
Carb0 Offline
Senior Member
Posts: 171
Joined: Sep 2011
Reputation: 0
Post: #90
Live games are working in Margo's XBMC Eden build with PVR support (Windows only). It includes the necessary changes to PlaylistFactory.cpp. You can download it here: http://www.scintilla.utwente.nl/~marcelg...build.html

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
Post Reply