[Release] MLBMC - a Major League Baseball (video) add-on

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
divingmule Offline
Posting Freak
Posts: 1,278
Joined: Oct 2008
Reputation: 54
Post: #211
I think there may be an issue with the librtmp library in Eden ATV build. Could you try and update your librtmp with HansMayer's build -> http://supercloudtv.com/librtmp.html
find quote
divingmule Offline
Posting Freak
Posts: 1,278
Joined: Oct 2008
Reputation: 54
Post: #212
(2012-05-27 20:45)sdsnyr94 Wrote:  divingmule.... is the /tmp folder something you can alter, or is that controlled within mlbhls?

I am working with someone from Openelec to get this to work... he created a working mlbhls file, but it appears that /tmp is located in the ramfs.... which means no space to write. I am waiting to see if I can mount /tmp to another location, but if not is there something you can do (such as point it into a /tmp folder located under the plugin folder)?

I'm sure we can work something out Smile I'm thinking - userdata/addon_data/plugin.video.mlbmc.hls/temp.
find quote
sdsnyr94 Offline
Fan
Posts: 427
Joined: Aug 2009
Reputation: 1
Location: Greensboro, NC
Post: #213
I changed the default.py to point to an additional 8gb usb drive..... maybe you could put an additional "Advanced" tab on the config page, where we can change the temp location if needed? The issue I have is my Openelec USB drive does not have a lot of space available... any idea what the HLS add-on does when it runs out of space?
find quote
jshay Offline
Junior Member
Posts: 13
Joined: Aug 2011
Reputation: 0
Post: #214
(2012-05-28 14:16)divingmule Wrote:  I think there may be an issue with the librtmp library in Eden ATV build. Could you try and update your librtmp with HansMayer's build -> http://supercloudtv.com/librtmp.html

This worked! It also fixed the problem I was having with the ESPN3 add-on not playin streams for the past couple of weeks.

Thanks!

Is the quality really lower with this add-on compared to the native MLB.tv app on the AppleTV? It doesn't appear so.
(This post was last modified: 2012-05-28 18:40 by jshay.)
find quote
sdsnyr94 Offline
Fan
Posts: 427
Joined: Aug 2009
Reputation: 1
Location: Greensboro, NC
Post: #215
*****EDIT*****This post has been rendered useless, thanks to version 0.0.6... which includes the mlbhls binary. As of this version, you will need to ssh into your Openelec box and 'chmod +x' the mlbhls binary to make it executable. Then go into mlbmc-hls settings and choose a temp location (preferably in /storage, as this is a read/write partition).


Quick How-to for Openelec:
All Thanks go to Ultraman on the Openelec forums....

Install latest HLS add-on from: http://mlbmc-xbmc.googlecode.com/files/p...-0.0.4.zip
Download Openelec compiled MLBHLS from this post : http://openelec.tv/forum/90-miscellaneou...d-on#35322
*****DivingMule - Ultraman apparently has these in a dropbox account... do you want to re-host them?****

This MLBHLS file will need to be in your systems $PATH, so:
Go into add-on folder (~/.xbmc/addons/plugin.video.mlbmc.hls) and create a folder named bin. Copy the mlbhls_x86_64 or mlbhls_i386 into this new directory (~/.xbmc/addons/plugin.video.mlbmc.hls/bin) and rename to mlbhls.

REBOOT!!!! *****THIS IS VERY IMPORTANT****** On Openelec, $PATH does not refresh on the fly, so you need a reboot to recognize the bin folder you just created as being in your $PATH... I wasted a couple of hours because I skipped this simple step.

Once you reboot, we need to alter where the HLS output file is created... By default, it is stored in /tmp, but in Openelec /tmp is located in the ramfs and has very limited space available. (DivingMule may make a change to elminate this step for us!)

Go into ~/.xbmc/addons/plugin.video.mlbmc.hls and edit the default.py. Search for a line that reads:
Code:
tmpdir = tempfile.mkdtemp()

Change this Line to read :
Code:
tmpdir = tempfile.mkdtemp(suffix='', prefix='tmp', dir='/storage')
This will now tell the add-on to use a temp file created in /storage, which is a separate partition that has read/write access.

******According to divingmule. this temp file could grow up to 8-10Gb in size.... not good if you are using a small USB Stick (Like me!). To get around this, I used an additional 8Gb USB drive and changed the above line to read:
Code:
tmpdir = tempfile.mkdtemp(suffix='', prefix='tmp', dir='/media/1846-01DC')
Which then points the temp file to the flash drive, which is already mounted at /media/1846-01DC.

I may play around with pointing the default.py to a network share... not sure how that will affect performance or if it will flood my network... I may check that later today if I have time.

Again, all thanks go to Ultraman.......
(This post was last modified: 2012-06-28 14:49 by sdsnyr94.)
find quote
divingmule Offline
Posting Freak
Posts: 1,278
Joined: Oct 2008
Reputation: 54
Post: #216
(2012-05-28 15:05)sdsnyr94 Wrote:  I changed the default.py to point to an additional 8gb usb drive..... maybe you could put an additional "Advanced" tab on the config page, where we can change the temp location if needed? The issue I have is my Openelec USB drive does not have a lot of space available... any idea what the HLS add-on does when it runs out of space?

Yeah, will do. You could try enabling file-in/file-out but, I get demuxer errors with Eden Confused

Not sure about running out of space. If the script errors or XBMC crashes you may need to manually delete the file.
find quote
sdsnyr94 Offline
Fan
Posts: 427
Joined: Aug 2009
Reputation: 1
Location: Greensboro, NC
Post: #217
(2012-05-28 16:05)divingmule Wrote:  
(2012-05-28 15:05)sdsnyr94 Wrote:  I changed the default.py to point to an additional 8gb usb drive..... maybe you could put an additional "Advanced" tab on the config page, where we can change the temp location if needed? The issue I have is my Openelec USB drive does not have a lot of space available... any idea what the HLS add-on does when it runs out of space?

Yeah, will do. You could try enabling file-in/file-out but, I get demuxer errors with Eden Confused

Not sure about running out of space. If the script errors or XBMC crashes you may need to manually delete the file.

Could you add something in the script that checks for files in the "Temp Path" on startup, and if they exist deletes them (Elimates to need to manually remove if it crashes)?
find quote
divingmule Offline
Posting Freak
Posts: 1,278
Joined: Oct 2008
Reputation: 54
Post: #218
MLBMC(mlb-hls) - 0.0.5

added game specific highlights patch from bunglebungle - http://forum.xbmc.org/showthread.php?tid...pid1109006
added add-on setting for the option to specify the temp directory to write the video file
if a path is set, we check for and remove any directory with the prefix "mlbtv.tmp-" in that path, upon entering the MLB.tv directory from the main menu.

Download Zip -> http://mlbmc-xbmc.googlecode.com/files/p...-0.0.5.zip

Let me know of any trouble.
find quote
sdsnyr94 Offline
Fan
Posts: 427
Joined: Aug 2009
Reputation: 1
Location: Greensboro, NC
Post: #219
If I update to 0.0.5 through XBMC's "Install from Zip File" option, will it remove my /bin subfolder? After I update tonight, I will update my above post to reflect the change in how-to set the temp directory... thanks for adding that.
find quote
divingmule Offline
Posting Freak
Posts: 1,278
Joined: Oct 2008
Reputation: 54
Post: #220
Yeah, I think so. Maybe ask ultraman if there's another way so add-on updates don't overwrite the files? Or maybe we can point to the bin file from the addon...
(This post was last modified: 2012-05-29 15:23 by divingmule.)
find quote
Post Reply