[RELEASE] NHL Gamecenter Addon

  Thread Rating:
  • 14 Votes - 4.07 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
micahg Offline
Senior Member
Posts: 142
Joined: Sep 2011
Reputation: 1
Post: #61
Well, I think the actual ts files in the playlist are ultimately played by ffmpeg.
find quote
Carb0 Online
Senior Member
Posts: 268
Joined: Sep 2011
Reputation: 5
Post: #62
If you download the playlist first and play it from the harddrive it works as before for about 20 seconds. But it stops loading after the second ts file.

Maybe we have better luck if we use an external player (e.g. VLC, it is available on every platform (except iOS) and seems to play the streams fine) for the live streams. It's worth a try.
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #63
I've built ffmpeg from xbmc/lib/ffmpeg

Code:
apokalypse@destruction:~/xbmc/lib/ffmpeg$ ./ffmpeg
FFmpeg version git-Eden_beta2-339-g4246dff, Copyright (c) 2000-2011 the FFmpeg developers
  built on Feb 28 2012 12:59:38 with gcc 4.4.3
  configuration:
  libavutil    50. 36. 0 / 50. 36. 0
  libavcore     0. 16. 1 /  0. 16. 1
  libavcodec   52.108. 0 / 52.108. 0
  libavformat  52. 94. 0 / 52. 94. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 74. 0 /  1. 74. 0
  libswscale    0. 12. 0 /  0. 12. 0
Hyper fast Audio and Video encoder

I'll try using ffplay tonight on a stream URL to see if it loads the latest ts properly and keeps up. This worked last night from my Windows machine using a build from http://ffmpeg.zeranoe.com/builds/. If that works, then I'd imagine it's just a case of having xbmc properly hand off http://...m3u8 URL properly.
find quote
micahg Offline
Senior Member
Posts: 142
Joined: Sep 2011
Reputation: 1
Post: #64
I'll save you the trouble -- it does work (I've validated this already).
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #65
...fair enough. Let me know if you want me to look at anything.
find quote
micahg Offline
Senior Member
Posts: 142
Joined: Sep 2011
Reputation: 1
Post: #66
Sure, go nuts. I only get a bit of time here & there to look.
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #67
Did anyone look at changes made by spiff https://github.com/cptspiff/xbmc/commits/hls ? Not sure if it was ever checked into xbmc proper.
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #68
apok Wrote:Did anyone look at changes made by spiff https://github.com/cptspiff/xbmc/commits/hls ? Not sure if it was ever checked into xbmc proper.

This appears to have fixed the issue in Eden. The stream buffers for 2-5 seconds right after loading on my machine, but streams magnificently afterwards.
find quote
micahg Offline
Senior Member
Posts: 142
Joined: Sep 2011
Reputation: 1
Post: #69
Yup. I only had to change PlayListFactory.cpp to get it working again. Good find. I guess we should ask spiff what happened to this.
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #70
micahg Wrote:Yup. I only had to change PlayListFactory.cpp to get it working again. Good find. I guess we should ask spiff what happened to this.

https://github.com/xbmc/xbmc/tree/Eden/xbmc/playlists it hasn't changed in 7 months, so I'd be surprised if it ever went in to xbmc/xbmc.
find quote
91dxcrx Offline
Junior Member
Posts: 22
Joined: May 2011
Reputation: 0
Post: #71
So I can replace PlaylistFactory.cpp with that new one to get this to work again? If so where do I find that file? Thanks
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #72
https://github.com/cptspiff/xbmc/blob/27...actory.cpp is the modified version. micahg, are these the only changes you made to yours for it to work?
find quote
91dxcrx Offline
Junior Member
Posts: 22
Joined: May 2011
Reputation: 0
Post: #73
apok Wrote:https://github.com/cptspiff/xbmc/blob/27...actory.cpp is the modified version. micahg, are these the only changes you made to yours for it to work?

I don't have any experience with github, can I download that file and replace the one in my install manually?
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #74
91dxcrx Wrote:I don't have any experience with github, can I download that file and replace the one in my install manually?

You would need to recompile your xbmc binary from source to replace it. The lines prefixed with > show where code was modified for my patched build.

Code:
apokalypse@destruction:~/tmp/xbmc$ diff ~/tmp/xbmc/playlists/PlayListFactory.cpp ~/xbmc-patched/xbmc/playlists/PlayListFactory.cpp
66c66
<     if (strMimeType == "audio/x-mpegurl")
---
>     if ((strMimeType == "audio/x-mpegurl") && !item.IsType(".m3u8"))
123c123
<   || strMimeType == "audio/x-mpegurl")
---
>   || ((strMimeType == "audio/x-mpegurl") && !item.IsType(".m3u8")))
find quote
apok Offline
Junior Member
Posts: 42
Joined: Feb 2012
Reputation: 0
Post: #75
It's worth mentioning that seeking doesn't appear to work. Not sure if this is expected / differs from previous behavior.
find quote
Post Reply