Kodi Community Forum
[Release] MLBMC - a Major League Baseball (video) add-on - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [Release] MLBMC - a Major League Baseball (video) add-on (/showthread.php?tid=104391)



RE: [Release] MLBMC - a Major League Baseball (video) add-on - munch9000 - 2012-06-10

Hi folks. Sorry for the newbie question, but I was hoping someone can quickly summarize (or point me to the specific posts with details) how to get this plugin working with the HD streams from MLB.tv on a Windows machine. I've downloaded the main plugin from the Add-ons menu...noticed it was not in HD...then came here and tried to read up on the problem (honestly not reading every post). I just tried downloading the MLBMC(mlb-hls) plugin 0.0.5, and that gives me an error when I try to play an archived game. I assume it'll give me the same error for a live game, but there's no live games to test it with at the moment. I see references in this thread to other things I've never heard of: openelec, etc. Are there other dependencies I need to install first? What's the basic procedure?


Thanks in advance!


RE: [Release] MLBMC - a Major League Baseball (video) add-on - Dixon Butz - 2012-06-10

(2012-06-10, 07:16)munch9000 Wrote: Hi folks. Sorry for the newbie question, but I was hoping someone can quickly summarize (or point me to the specific posts with details) how to get this plugin working with the HD streams from MLB.tv on a Windows machine. I've downloaded the main plugin from the Add-ons menu...noticed it was not in HD...then came here and tried to read up on the problem (honestly not reading every post). I just tried downloading the MLBMC(mlb-hls) plugin 0.0.5, and that gives me an error when I try to play an archived game. I assume it'll give me the same error for a live game, but there's no live games to test it with at the moment. I see references in this thread to other things I've never heard of: openelec, etc. Are there other dependencies I need to install first? What's the basic procedure?

Thanks in advance!

Max res in windows is 520. The 720HD with hls is linux.



RE: [Release] MLBMC - a Major League Baseball (video) add-on - munch9000 - 2012-06-10

Ah ok. Well that is a bummer. Any chance anyone is working on that? I know Boxee gives you the HD option (though it doesn't do the Nexdef-autoadjustment).

Either way, thanks for all the hard work.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - Dan0208 - 2012-06-14

This may or may not be possible with addon limitations and also might have been mentioned before by someone else?

I'm a big baseball fan from Australia and due to timezone differences when I go into sections such as MLBTV to watch a game that is currently live I have to pick yesterday's games as yesterday's date in Aus (GMT +10) is the date of the game in the US. Is it possible for the Today's games, Yesterday's games, etc to actually retrieve results based on your local timezone?

For example: Today's Games when viewing from Australia (or anywhere in the world for that matter) show games that are on that date/time. Working with GMT time irrespective of timezones. I understand the MLB feed most likely displays game times in US Date Times but if this was converted to GMT and then it could be presented in the user's local timezone as determined by XBMC date settings.

This is very easy to do in iPhone development, however I am unsure of the restrictions or limitations in place for XBMC addons, the language used or the MLB feed itself.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - divingmule - 2012-06-14

Hi Dan, if you look at the addon's default.py, near the bottom you will find the "class dateStr" If you change it from
Code:
class dateStr:
        format = "year_%Y/month_%m/day_%d"
        t = datetime.datetime.today()

to
Code:
class dateStr:
        format = "year_%Y/month_%m/day_%d"
        t = datetime.datetime.utcnow() - datetime.timedelta(hours=4)

This should convert UTC to EDT, and give the results you expect. I hope Smile

Let me know how it goes, Thanks.



RE: [Release] MLBMC - a Major League Baseball (video) add-on - Dan0208 - 2012-06-15

(2012-06-14, 18:41)divingmule Wrote: Hi Dan, if you look at the addon's default.py, near the bottom you will find the "class dateStr" If you change it from
Code:
class dateStr:
        format = "year_%Y/month_%m/day_%d"
        t = datetime.datetime.today()

to
Code:
class dateStr:
        format = "year_%Y/month_%m/day_%d"
        t = datetime.datetime.utcnow() - datetime.timedelta(hours=4)

This should convert UTC to EDT, and give the results you expect. I hope Smile

Let me know how it goes, Thanks.

Thanks for that divingmule, much appreciated. I'll give it a go when I get home.

I think it may need to be +1000, which is AEST or +1100 AEDT when we are in summer instead like below, but your example should put me in the right direction.
Code:
t = datetime.datetime.utcnow() + datetime.timedelta(hours=10)

I assume any addon updates will overwrite my changes?

Also is there any way to detect system default or XBMC timezone. ie the following rough example ignoring syntax
Code:
dateformatter.setTimeZone(datetime.defaultSystemTimeZone);
t = dateformatter.date(datetime.datetime.utcnow());



RE: [Release] MLBMC - a Major League Baseball (video) add-on - divingmule - 2012-06-15

(2012-06-15, 01:53)Dan0208 Wrote: I think it may need to be +1000, which is AEST or +1100 AEDT when we are in summer instead like below, but your example should put me in the right direction.
Code:
t = datetime.datetime.utcnow() + datetime.timedelta(hours=10)

I think this would be more less the same as what datetime.today() returns, putting you ~14 hours ahead in the schedule.

This time stuff makes my head hurt Tongue







RE: [Release] MLBMC - a Major League Baseball (video) add-on - divingmule - 2012-06-18

Update MLBMC(mlb-hls) 0.0.6 for Linux

This includes the Openelec mlbhls binary's, and shouldn't need any configuration (untested).
Enhanced support for starting mlb.tv games from a specific inning.

Download Zip -> http://mlbmc-xbmc.googlecode.com/files/plugin.video.mlbmc.hls-0.0.6.zip

Still haven't found a solution for streams dropping Confused



RE: [Release] MLBMC - a Major League Baseball (video) add-on - vijayk416 - 2012-06-19

Fantastic updates, thank you so much. I am running openelec and everything seems to be running fine except in Game Highlights the All Top Plays link is giving me a script error (no content being displayed). No luck on Full Count though.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - divingmule - 2012-06-20

Thanks for the reporting. It seems MLB.com removed the "All Top Plays" feed/playlist, I'll remove it from the add-on. I haven't had any trouble with Full Count, if you want, pastebin a log and I'll take a look.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - rebeto13 - 2012-06-23

Hi all. I've been using this add-on and find it to be the best out there (the native MLB app in ATV2 sucks as it changes quality rather than buffer ahead which is what I prefer). Up until today I had no trouble running the add-on, but today I've not been able to play any game. This is what the log file came back with:


21:28:00 T:148905984 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
21:28:00 T:164888576 NOTICE: Creating InputStream
21:28:01 T:164888576 NOTICE: Creating Demuxer
21:28:01 T:164888576 NOTICE: Metadata:
21:28:01 T:164888576 NOTICE: width 720.00
21:28:01 T:164888576 NOTICE: height 540.00
21:28:01 T:164888576 NOTICE: framerate 29.97
21:28:01 T:164888576 NOTICE: videocodecid 7.00
21:28:01 T:164888576 NOTICE: videodatarate 1656.00
21:28:01 T:164888576 NOTICE: audiodatarate 48.00
21:28:01 T:164888576 ERROR: RTMP_ReadPacket, failed to read RTMP packet header
21:28:01 T:164888576 WARNING: could not find codec parameters for rtmp://cp65670.live.edgefcs.net/live/ Playpath=mlb_c55_s1800@s57445?auth=da.bYc.b9a5d1adcadyaqbkc2a3aJaXdYbe-bp5tE8-O-BpnEBnCxnoxlBt-jck2lbjijhjlmckgkdl9k3jdmgjel3majikbl7jhjdjcm7k9ke&aifp=v0001&slist=mlb_c55_s300@s57425;mlb_c55_s500@s57435;mlb_c55_s800@s57465;mlb_c55_s1200@s57455;mlb_c55_s1800@s57445;mlb_c55_s2400@s5854&ct5=22-Jun-12&ct6=186.176.73.209&ct7=22211539:FMS_CLOUD&ct8=1&ct1=mlb&ct3=28777782&ct4=mlb pageUrl=http://mlb.mlb.com/shared/flash/mediaplayer/v4.3/R1/MP4.jsp?calendar_event_id=14-318774-2012-06-22&content_id=&media_id=&view_key=&media_type=video&source=MLB&sponsor=MLB&clickOrigin=MSB&affiliateId=MSB&team=mlb swfUrl=http://mlb.mlb.com/shared/flash/mediaplayer/v4.3/R1/MediaPlayer4.swf?v=14 swfVfy=1 live=1
21:28:01 T:164888576 ERROR: OpenDemuxStream - Error creating demuxer
21:28:01 T:164888576 NOTICE: CDVDPlayer::OnExit()
21:28:01 T:164888576 NOTICE: CDVDPlayer::OnExit() deleting input stream
21:28:01 T:148905984 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.mlbmc/?url=&mode=9&name=Arizona+Diamondbacks+Coverage+-+FSA-HD&event=14-318774-2012-06-22&content=22211539&session=LY2xu6znOo%2FF39TQ2uaxzL5s4TM%3D&cookieIp=28777782&cookieFp=eC9BN1ZBTGRPb0RDc1RmcmJTTmlzQXptUEtjPXwxMzQwNDIyMDQ2MDM1fGlwdD1lbWFpbC1wYXNzd29yZA%253D%253D&scenario=FMS_CLOUD&live=True]
21:28:01 T:148905984 NOTICE: CDVDPlayer::CloseFile()
21:28:01 T:148905984 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
21:28:01 T:148905984 NOTICE: DVDPlayer: waiting for threads to exit
21:28:01 T:148905984 NOTICE: DVDPlayer: finished waiting



RE: [Release] MLBMC - a Major League Baseball (video) add-on - divingmule - 2012-06-23

Hi rebeto13, it looks like a librtmp problem. Have you change anything, is this a fresh install maybe?


RE: [Release] MLBMC - a Major League Baseball (video) add-on - rebeto13 - 2012-06-23

THanks for the reply divingmule... it was working fine, the last thing I did was update fire core and since then its not working


RE: [Release] MLBMC - a Major League Baseball (video) add-on - divingmule - 2012-06-24

Maybe try replacing your librtmp with HansMayer's revision -> http://supercloudtv.com/librtmp.html


RE: [Release] MLBMC - a Major League Baseball (video) add-on - Dixon Butz - 2012-06-24

(2012-06-24, 00:09)divingmule Wrote: Maybe try replacing your librtmp with HansMayer's revision -> http://supercloudtv.com/librtmp.html

That fixed it for me on a freshly JB'd ATV2.
Though I awlays use the ATV MLB app. That works perfect on wireless