XBMC Community Forum
[Release] MLBMC - a Major League Baseball (video) add-on - 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] MLBMC - a Major League Baseball (video) add-on (/showthread.php?tid=104391)



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

(2012-05-30 15:39)divingmule Wrote:  sdsnyr94, can you open terminal or ssh and type these commands and post the output -

Code:
python
import os
os.uname()
exit()

@sdsnyr94 If you could try this, I need to see if I can identify Openelec and if it's 86 or 64 from os.uname().

If it's easier, add "print os.uname()" somewhere below the imports in the default.py, then check the log.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - sdsnyr94 - 2012-05-31 17:22

Sorry, I never saw the original post.... I will try this tonight when I get home and let you know.


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

(2012-05-30 18:18)sdsnyr94 Wrote:  
(2012-05-30 15:51)divingmule Wrote:  
(2012-05-30 15:42)sdsnyr94 Wrote:  I tried setting the temp folder to an NFS network share (through XBMC)... plugin would not even start, so it looks like your temp file will have to be a local location.

Yeah, that would be too easy Smile did you make sure it was mounted Confused

I believe that Openelec removed all "mounting" options, since XBMC now supports NFS and SMB natively. I will try it from an Ubuntu PC to a mounted drive later tonight, just to see if it does work and how performance is.... you would be pulling data to your machine --> to network share --> back to your machine for playback... that's a lot of overhead

I think this may be a permission issue when making the dir with tempfile module. I'm going to try without using tempfile.
(2012-05-31 17:22)sdsnyr94 Wrote:  Sorry, I never saw the original post.... I will try this tonight when I get home and let you know.

Cool


RE: [Release] MLBMC - a Major League Baseball (video) add-on - tmoe - 2012-05-31 18:26

Hey,

nice work on integrating mlbhls in OE... awesome!
thanks to 'ultraman' over at the OE fourm for providing the mlbhls binary!

I got a problem though: mlbhls begins generating the ts file fine but always bails out when reaching ~2.5 GB; it just stops downloading. Any clue on that problem?

(2012-05-30 15:39)divingmule Wrote:  sdsnyr94, can you open terminal or ssh and type these commands and post the output -

Code:
python
import os
os.uname()
exit()

>>> os.uname()
('Linux', 'openelec', '3.2.16', '#1 SMP Mon Apr 30 06:30:46 CEST 2012', 'x86_64')

hope that helps...

cheers,
-tmoe


RE: [Release] MLBMC - a Major League Baseball (video) add-on - tmoe - 2012-05-31 18:37

(2012-05-29 15:18)divingmule Wrote:  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...

as a workaround you could call a shell-script that gets executed via /storage/.config/autostart.sh when booting.
something like:

Code:
#!/bin/sh

MLBHLS_ADDON_DIR=/storage/.xbmc/addons/plugin.video.mlbmc.hls
MLBHLS_BIN=/storage/bin/mlbhls_x86_64

if [ ! -f "${MLBHLS_ADDON_DIR}/bin/mlbhls" ]; then
    [ ! -d "${MLBHLS_ADDON_DIR}/bin" ] && mkdir -p "${MLBHLS_ADDON_DIR}/bin"
    cp $MLBHLS_BIN "${MLBHLS_ADDON_DIR}/bin/mlbhls"
fi



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

(2012-05-31 18:26)tmoe Wrote:  Hey,

nice work on integrating mlbhls in OE... awesome!
thanks to 'ultraman' over at the OE fourm for providing the mlbhls binary!

I got a problem though: mlbhls begins generating the ts file fine but always bails out when reaching ~2.5 GB; it just stops downloading. Any clue on that problem?

(2012-05-30 15:39)divingmule Wrote:  sdsnyr94, can you open terminal or ssh and type these commands and post the output -

Code:
python
import os
os.uname()
exit()

>>> os.uname()
('Linux', 'openelec', '3.2.16', '#1 SMP Mon Apr 30 06:30:46 CEST 2012', 'x86_64')

hope that helps...

cheers,
-tmoe

Thanks tmoe. No idea why it would stop. If you look in the xbmc.log after starting a game you'll fine the mlbhls target. If you run that in a terminal it may shed some light on why.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - sdsnyr94 - 2012-05-31 19:36

(2012-05-31 18:26)tmoe Wrote:  I got a problem though: mlbhls begins generating the ts file fine but always bails out when reaching ~2.5 GB; it just stops downloading. Any clue on that problem?

Where is your temp file located? Could it be a file size limit on the filesystem?


RE: [Release] MLBMC - a Major League Baseball (video) add-on - sdsnyr94 - 2012-05-31 19:49

...... and Divingmule - Thanks for the extra work your putting in for us Openelec users!!!! It's very appreciated!


RE: [Release] MLBMC - a Major League Baseball (video) add-on - tmoe - 2012-05-31 20:26

(2012-05-31 19:36)sdsnyr94 Wrote:  Where is your temp file located? Could it be a file size limit on the filesystem?

files will be created in /storage/tmp/

/dev/sda2 on /storage type ext4 (rw,noatime,barrier=1,data=ordered)

AFAIK ext4 didnt have a 2.5 GB limit but 16 TB Wink




(2012-05-31 19:23)divingmule Wrote:  No idea why it would stop. If you look in the xbmc.log after starting a game you'll fine the mlbhls target. If you run that in a terminal it may shed some light on why.

you mean calling mlbhls w/ a retrieved base64 address and -F option from the shell to check if it will go all the way till the end? i will do that right away Wink


RE: [Release] MLBMC - a Major League Baseball (video) add-on - sdsnyr94 - 2012-05-31 20:35

I asked because I tried on a FAT32 flash drive and bumped against what I thought was the 4GB limit..... but now I will need to watch the file size to see if I stop ~2.5 also.... I'll let you know later.