(2012-06-01, 01:52)divingmule Wrote: If you want to test further you might try commenting the os. calls in the mlb_hls_check function of the default.py and see if the file continues to download when the player stops.
Code:
def mlb_hls_check(filename):
addon_log( '--> playback started' )
while (True):
filename == get_file()
xbmc.sleep(2000)
if filename != get_file():
# os.system('pkill mlbhls')
# os.remove(filename)
# os.rmdir(tmpdir)
addon_log( '--> broke out of loop' )
break
thanks for the hint, divingmule. will check that later tonight
(2012-06-01, 03:16)sdsnyr94 Wrote: OK, so I created a folder called MLBTemp in the /storage folder in Openelec.... then mounted an NFS share to the folder.... MLBMC-HLS can now use this folder as the Temp location. Has not affected performance...but I have only let it run for about 1/2 hr.
good to know
(2012-06-01, 03:16)sdsnyr94 Wrote: tmoe - I have had archived games play flawlessly in the non-HLS version of MLBMC...
me too; no problems whatsoever when not using mlbhls but rtmpdump! as mentioned, it will stop downloading/playing, if I use mlbhls.
(2012-06-01, 03:16)sdsnyr94 Wrote: yet Live games stop to buffer every now and then. I had the same results with my aTV2's native MLB app... could it be something in their transmission during live games?
again, did not have any problems on live games or archived ones when using rtmpdump @ 2400 kbps (non-hls). havnt tried live games w/ mlbhls yet; will try do see if it stops playing during live coverage. i'll give some feedback on that...
UPDATE:
When playing a game (archived) via add-on it stops downloading at ~2.4 GB, no matter what!
This time I used a share on my NAS as temp dir, which is connected via smb and its fs is ext3 (just to make sure it has nothing to do with the local fs).
The mlbhls process starts downloading the chunks just fine and xbmc begins playing the file.
mlbhls stops downloading when the file size reaches ~2.4 GB!
xbmc.Player().getPlayingFile() still delivers the correct string to mlb_hls_check(), since it hasnt reached the end of that 2.4 GB ts file; so the log
does not show '--> broke out of loop'.
Seems that the mlbhls process somehow quits downloading after a certain time/time-out or when reaching a certain amount of downloaded data
when called via Popen() in getGameURL(). The mlbhls process itself is still active and shows up in top.
If I manually call mlbhls w/ -F option from the shell the whole file gets downloaded; ~7 GB for a game that lasts like 3 hours.
strange world