XBMC Community Forum
[RELEASE] NHL Gamecenter Addon - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] NHL Gamecenter Addon (/showthread.php?tid=118853)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


RE: [RELEASE] NHL Gamecenter Addon - SKIBBE - 2012-04-12 16:53

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


RE: [RELEASE] NHL Gamecenter Addon - Carb0 - 2012-04-12 21:07

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.


RE: [RELEASE] NHL Gamecenter Addon - SKIBBE - 2012-04-12 22:20

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 :-)


RE: [RELEASE] NHL Gamecenter Addon - micahg - 2012-04-12 22:22

I thought live games were still broken...


RE: [RELEASE] NHL Gamecenter Addon - aydin - 2012-04-13 00:34

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.


RE: - spektr - 2012-04-14 09:33

(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/pluginvideonhl-gamecenter-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?


RE: - spektr - 2012-04-15 05:03

(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/pluginvideonhl-gamecenter-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?


RE: [RELEASE] NHL Gamecenter Addon - Carb0 - 2012-04-15 06:17

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.


RE: [RELEASE] NHL Gamecenter Addon - spektr - 2012-04-15 06:20

(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).


RE: [RELEASE] NHL Gamecenter Addon - Vini - 2012-04-15 09:57

Thank yiu, thank you, thank you for this plugin!!

Currently watching last nights Hawks Coyotes game!