• 1
  • 18
  • 19
  • 20
  • 21
  • 22(current)
[WIP] MLB.TV Boxee App port (developers needed!)
theophile Wrote:1. Is it still necessary to manually add the CLOUD_WIRED scenario?

Yeah, for now. If this proves satisfactory I plan on putting a zip together with the modded py and modded settings.
Quote:2. Is there any way to change which NexDef stream it grabs, or would I have to edit the default.py to add the -b 300000 argument?

Yes, you would. I'm thinking we could add a setting for this. Look for the "target = " line in the py.

Quote:3. In your opinion (or thegryghost's opinion) is there any possibility that real-time stream switching will be feasible?

I'm guessing that would be up to the HLS client.

Let me know how it works for you.
Reply
theophile Wrote:That's outstanding. I've been unable to play with this this week, but I'm hoping to give it a workout this weekend. Couple questions:

1. Is it still necessary to manually add the CLOUD_WIRED scenario?
2. Is there any way to change which NexDef stream it grabs, or would I have to edit the default.py to add the -b 300000 argument?
3. In your opinion (or thegryghost's opinion) is there any possibility that real-time stream switching will be feasible?

Thanks all!

I briefly tried to get stream switching working but I was never able to properly test it. The HLS client can switch stream seamlessly (I've done it manually) and I think I got the logic correct but I just don't know. By default, the client always locks to the highest bitrate (or whatever you specify in -b). Try the HLS client with the "-L" option, you should see:

[MLB] Bandwidth Locking: 0

Let me know if it works..
Reply
In the above default.py I had made a change in the filename and not tested it, till now :o Should be fixed now or you can edit line 704

Code:
filename = os.path.join(tmpdir, name.replace(' ','_'))

xbmc didn't like the spaces in the filename.
Reply
thegryghost Wrote:I briefly tried to get stream switching working but I was never able to properly test it. The HLS client can switch stream seamlessly (I've done it manually) and I think I got the logic correct but I just don't know. By default, the client always locks to the highest bitrate (or whatever you specify in -b). Try the HLS client with the "-L" option, you should see:

[MLB] Bandwidth Locking: 0

Let me know if it works..

The "-L" option doesn't seem to be recognized. If I use it, the player just gives me the help dialog.
Reply
divingmule Wrote:In the above default.py I had made a change in the filename and not tested it, till now :o Should be fixed now or you can edit line 704

Code:
filename = os.path.join(tmpdir, name.replace(' ','_'))

xbmc didn't like the spaces in the filename.

Just tried it and it works really well. I had to stop and restart the game several times to ratchet down the bitrate because the constant buffering was driving my crazy, but that's obviously not your fault. That said, each time I stopped playback, it killed the mlb process nicely. Very impressed. If stream switching in the HLS client does indeed work, I think we'll have a winner. ;-)
Reply
theophile Wrote:The "-L" option doesn't seem to be recognized. If I use it, the player just gives me the help dialog.

Just fixed it. SVN up and try again..
Reply
For everyone using my mlb HLS client, I've renamed the executable from 'mlb' to 'mlbhls'.
Reply
thegryghost Wrote:Just fixed it. SVN up and try again..

Seems to work well for me, thanks again. Anyone else?

I've added settings for NextDef auto,4.5Mb,3.0Mb,1800k. Download extract,merge and overwrite to addons/plugin.video.mlbmc.
http://divingmules-repo.googlecode.com/f...od-0.1.tar

This should work for Ubuntu -
Code:
$ mkdir nextdef-temp
$ cd nextdef-temp
$ wget http://divingmules-repo.googlecode.com/files/NextDef-Mod-0.1.tar
$ tar -xzvf NextDef-Mod-0.1.tar
$ cp -R resources/ ~/.xbmc/addons/plugin.video.mlbmc/
$ cp -R default.py ~/.xbmc/addons/plugin.video.mlbmc/
$ cd
$ rm -rf nextdef-temp/

You will need to change the add-on playback setting.


Edit: Now that I've tested :o I had to make a small change. Updated the links above.
Reply
Anything for windows to test yet? I have premium account.
Reply
Dixon Butz Wrote:Anything for windows to test yet? I have premium account.

First we would have to get thegryghost's hls client working in windows witch I don't know if it's possible.

Anyone have any thoughts on this?
Reply
I had to make a fix in the .py from above. If you want you can just remove or comment out the else statement from around line ~723
Code:
#else:
   # bitrate = ' -L'

edited and fixed in the above post.
Reply
hi guys, i'm following you because i read about you on mlbviewer's forum.

i know here's not the boxee forum, but it seems like you guys are more "inside" the developing of these things..

i was an xbmb use (on the original xbox) and i had to switch to boxee on my pc-media-center because now i can see mlb.tv on the big screen in the living room!

i don't know why, but i can't use xbmc because it's too slow on my htpc so i have to stay with boxee.

so the question is.. do you know if there's any chance to have, maybe hacking as long as you doing for xbmc, the condensed games on boxee?

by the way.. you're doing a great job for us baseball lovers outside the US.
Reply
The past few days, the plugin has stopped working, both the HLS streams and the normal RTMP ones. This log entry is representative:

Code:
19:22:08 T:139831259252480 M:516259840  NOTICE: -->Python Interpreter Initialized<--
19:22:09 T:139831259252480 M:516132864  NOTICE: Mode: 3
19:22:09 T:139831259252480 M:516132864  NOTICE: URL:
19:22:09 T:139831259252480 M:516132864  NOTICE: Name: MLB.TV
19:22:10 T:139831259252480 M:512622592  NOTICE: -->Python Interpreter Initialized<--
19:22:11 T:139831259252480 M:512892928  NOTICE: Mode: 6
19:22:11 T:139831259252480 M:512892928  NOTICE: URL: http://mlb.mlb.com/gdcross/components/game/mlb/year_2011/month_08/day_10/master_scoreboard.json
19:22:11 T:139831259252480 M:512892928  NOTICE: Name: Today's Games
19:22:12 T:139831111739136 M:514916352   ERROR: CacheImage Unable to create new image special://masterprofile/Thumbnails/Video/a/a279a568.tbn from image http://mediadownloads.mlb.com/mlbam/preview/chabal_288645_preview.jpg
19:22:12 T:139831111739136 M:514334720   ERROR: CacheImage Unable to create new image special://masterprofile/Thumbnails/Video/d/d18546cd.tbn from image http://mediadownloads.mlb.com/mlbam/preview/kcatba_288649_preview.jpg
19:22:13 T:139831111739136 M:517505024 WARNING: FillBuffer: curl failed with code 22
19:22:13 T:139831111739136 M:517505024   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
19:22:19 T:139831259252480 M:517345280  NOTICE: -->Python Interpreter Initialized<--
19:22:20 T:139831259252480 M:517345280  NOTICE: Mode: 7
19:22:20 T:139831259252480 M:517345280  NOTICE: URL:
19:22:20 T:139831259252480 M:517345280  NOTICE: Name: Boston @ Minnesota - In Progress
19:22:20 T:139831259252480 M:517251072  NOTICE: Logged in successfully!
19:22:20 T:139831259252480 M:517251072  NOTICE: [('SESSION_1', '', {'path': '/', 'domain': '.mlb.com', 'version': '0'}, {}), ('mlbunifieddata', '8820296%7Cd2af3221464f7c082492a1237ca6a6a7%7C1313022140771%7Cttemp', {'path': '/', 'domain': '.mlb.com', 'version': '0'}, {}), ('appacc', 'mlb', {'path': '/', 'domain': '.mlb.com', 'expires': 1344558140, 'version': '0'}, {}), ('fprt', 'Zmp0ZlN4bldmVmc1c1JxMjBuV3dyZ3A3ak4wPXwxMzEzMDIyMTQwNzY2fGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D', {'path': '/', 'domain': '.mlb.com', 'expires': 1344558140, 'version': '0'}, {}), ('ipid', '8820296', {'path': '/', 'domain': '.mlb.com', 'expires': 1344558140, 'version': '0'}, {})]
19:22:20 T:139831259252480 M:517251072  NOTICE: {'ipid': '8820296', 'SESSION_1': '', 'appacc': 'mlb', 'fprt': 'Zmp0ZlN4bldmVmc1c1JxMjBuV3dyZ3A3ak4wPXwxMzEzMDIyMTQwNzY2fGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D', 'mlbunifieddata': '8820296%7Cd2af3221464f7c082492a1237ca6a6a7%7C1313022140771%7Cttemp'}
19:22:21 T:139831259252480 M:517451776  NOTICE: [('SESSION_1', 'mEntNum%3D%3D%3D2%7EmCatCode%3D%3D%3Dmlb_media_mlb_lg%7EmBitRate%3D%3D%3D350%7EmType%3D%3D%3Dvideo%7EmUrl%3D%3D%3Dhttp%3A%2F%2Fwww.mlb.com%2Fshared%2Fmedia%2FmediaMetaFile.jsp%3Ff%3Dwindows%26o%3D1800%26d%3D3750%26arl%3Dmms%253A%252F%252Fa102.v10869f.c10869.g.vm.akamaistream.net%252F7%252F102%252F10869%252Fv0004%252Fmlb.download.akamai.com%252F10869%252F2006%252Fmlb_%2521%252Ftv%252Farchive08%252F082806_chnpit_tv_351.wmv%253Fauth%253Dcb.dkawcpagb6cIcacwcXbeagbAaYaXd_bf-boqYc6-O-bwU-VefwkKbx-lal2lflmkbjbkdjejkm5kgm9j5lcjbkml7l8ldlckijg%2526aifp%253Dv0004%2526WMCache%253D0%2526ct5%253D10-Aug-11%2526ct6%253D64.209.36.95%2526ct7%253D0%253Anull%2526ct8%253D1%2526ct1%253Dmlb%2526ct3%253D8820296%2526ct4%253Dmlb%7EmEnt1%3D%3D%3DMLBALL%7EmEncoding%3D%3D%3Dwindows%7EmEnt0%3D%3D%3DMLBVIDEOPOSTSEA', {'path': '/', 'domain': '.mlb.com', 'version': '0'}, {}), ('ftmu', 'Z64dg62BWDtIDV2hI4oL4Ob%2F7CE%3D', {'path': '/', 'domain': '.mlb.com', 'expires': 1313281341, 'version': '0'}, {})]
19:22:24 T:139831259252480 M:517660672  NOTICE: -->Python Interpreter Initialized<--
19:22:24 T:139831259252480 M:517660672  NOTICE: Mode: 9
19:22:24 T:139831259252480 M:517660672  NOTICE: URL:
19:22:24 T:139831259252480 M:517660672  NOTICE: Name: Boston Red Sox Coverage NESN-HD
19:22:25 T:139831770663008 M:517636096  NOTICE: DVDPlayer: Opening:
19:22:25 T:139831770663008 M:517636096 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:22:25 T:139831451068160 M:517636096  NOTICE: Creating InputStream
19:22:25 T:139831451068160 M:517668864   ERROR: CDVDPlayer::OpenInputStream - error opening []
19:22:25 T:139831451068160 M:517668864  NOTICE: CDVDPlayer::OnExit()
19:22:25 T:139831451068160 M:517668864  NOTICE: CDVDPlayer::OnExit() deleting input stream
19:22:25 T:139831770663008 M:517820416   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.mlbmc/?url=&mode=9&name=Boston+Red+Sox+Coverage+NESN-HD+&event=14-288644-2011-08-10&content=17666881&session=Z64dg62BWDtIDV2hI4oL4Ob%2F7CE%3D&cookieIp=8820296&cookieFp=Zmp0ZlN4bldmVmc1c1JxMjBuV3dyZ3A3ak4wPXwxMzEzMDIyMTQwNzY2fGlwdD1lbWFpbC1wYXNzd29yZA%253D%253D&scenario=HTTP_CLOUD_WIRED]
19:22:25 T:139831770663008 M:517820416  NOTICE: CDVDPlayer::CloseFile()
19:22:25 T:139831770663008 M:517820416 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:22:25 T:139831770663008 M:517820416  NOTICE: DVDPlayer: waiting for threads to exit
19:22:25 T:139831770663008 M:517820416  NOTICE: DVDPlayer: finished waiting
19:22:29 T:139831259252480 M:517697536  NOTICE: -->Python Interpreter Initialized<--
19:22:30 T:139831259252480 M:517697536  NOTICE: Mode: 9
19:22:30 T:139831259252480 M:517697536  NOTICE: URL:
19:22:30 T:139831259252480 M:517697536  NOTICE: Name: Boston Red Sox Coverage NESN-HD
19:22:30 T:139831770663008 M:515674112  NOTICE: DVDPlayer: Opening:
19:22:30 T:139831770663008 M:515674112 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:22:30 T:139831451068160 M:515899392  NOTICE: Creating InputStream
19:22:30 T:139831451068160 M:515899392   ERROR: CDVDPlayer::OpenInputStream - error opening []
19:22:30 T:139831451068160 M:515899392  NOTICE: CDVDPlayer::OnExit()
19:22:30 T:139831451068160 M:515899392  NOTICE: CDVDPlayer::OnExit() deleting input stream
19:22:30 T:139831770663008 M:515899392   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.mlbmc/?url=&mode=9&name=Boston+Red+Sox+Coverage+NESN-HD+&event=14-288644-2011-08-10&content=17666881&session=Z64dg62BWDtIDV2hI4oL4Ob%2F7CE%3D&cookieIp=8820296&cookieFp=Zmp0ZlN4bldmVmc1c1JxMjBuV3dyZ3A3ak4wPXwxMzEzMDIyMTQwNzY2fGlwdD1lbWFpbC1wYXNzd29yZA%253D%253D&scenario=HTTP_CLOUD_WIRED]
19:22:30 T:139831770663008 M:515899392  NOTICE: CDVDPlayer::CloseFile()
19:22:30 T:139831770663008 M:515899392 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:22:30 T:139831770663008 M:515899392  NOTICE: DVDPlayer: waiting for threads to exit
19:22:30 T:139831770663008 M:515899392  NOTICE: DVDPlayer: finished waiting

But mlbviewer works just fine. Thoughts?
Reply
theophile Wrote:The past few days, the plugin has stopped working, both the HLS streams and the normal RTMP ones.
But mlbviewer works just fine. Thoughts?


Thats strange doesn't look like it's returning a playback url.
Code:
ERROR: CDVDPlayer::OpenInputStream - error opening []
Would need to turn on debugging and look at the responce to know for sure.

I haven't had any trouble myself. Watched the Giants-Pirates @1800k today.

edit:
If you haven't yet update your default.py, and settings.xml with these - http://mlbmc-xbmc.googlecode.com/files/N...od-0.2.tar
Reply
Late reply, but thanks. This worked like a charm. Even better than before, actually.
Reply
  • 1
  • 18
  • 19
  • 20
  • 21
  • 22(current)

Logout Mark Read Team Forum Stats Members Help
[WIP] MLB.TV Boxee App port (developers needed!)3