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 - bunglebungle - 2013-05-02

Here's a patch to fix Game Highlights. I suppose it got disrupted in the refactor when library files were split off. I like having a top-level menu item for them in the new version. Thanks.

diff default.py.bak default.py
(My UI shows 2.0.2 as the version. Basically these are just new lines at the bottom of the file.)
Code:
212a213,217
>
> if mode==27:
>     mlb.getRealtimeVideo(url)
>     xbmcplugin.endOfDirectory(int(sys.argv[1]))
>



[Release] MLBMC - a Major League Baseball (video) add-on - jayman13 - 2013-05-02

If I put in the options for innings using the 0.9 HLS plugin it only plays audio and not video when I pick an inning...


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

@sdsnyr94, looking into it. Should mostly be easy fixes, except for the start-time issue, not sure whats going on there.

@bunglebungle, thanks! Not sure how that got left out.

@jayman13, I have the same problem on my laptop, not specific to version 0.0.9 or using the inning start times though. The xbmc player can't figure out the correct codecs to use. I have to turn off 'file in / file out' and set the wait time to ~20-30 seconds.


[Release] MLBMC - a Major League Baseball (video) add-on - jayman13 - 2013-05-02

(2013-05-02, 14:29)divingmule Wrote: @sdsnyr94, looking into it. Should mostly be easy fixes, except for the start-time issue, not sure whats going on there.

@bunglebungle, thanks! Not sure how that got left out.

@jayman13, I have the same problem on my laptop, not specific to version 0.0.9 or using the inning start times though. The xbmc player can't figure out the correct codecs to use. I have to turn off 'file in / file out' and set the wait time to ~20-30 seconds.

Thanks. I don't know if others have noticed but after I updated to 0.0.9 There was no option for changing "file in/file out to something else...


RE: [Release] MLBMC - a Major League Baseball (video) add-on - divingmule - 2013-05-03

Update MLBMC(mlb-hls) - 0.1.0
- fix bug in settings
- fix canceling the select dialog
- fix bug in mlbtv_player script
- added setting, when using file in / file out, set a buffer size
- added more logging for inning start-time issues

Download zip -> https://mlbmc-xbmc.googlecode.com/files/plugin.video.mlbmc.hls-0.1.0.zip

I haven't been able to reproduce the start-time issue, limited time, if it happens again we need to check the log and see if we got valid times or not.

The setting buffer size setting for fi/fo to a larger size, seems to help with demuxer errors, though my results are mixed.


[Release] MLBMC - a Major League Baseball (video) add-on - jayman13 - 2013-05-03

You da man.


[Release] MLBMC - a Major League Baseball (video) add-on - jayman13 - 2013-05-03

When a particular inning is picked it still only plays audio for me and no video. For instance, I picked the bottom of first for toronto/sox game tonight and all I get is audio with 0.1.0...

I should say that I am using file in/out and system default cache. I prefer it that way because I switch between games rather frequently because of fantasy baseball concerns...


RE: [Release] MLBMC - a Major League Baseball (video) add-on - sdsnyr94 - 2013-05-03

(2013-05-03, 01:33)jayman13 Wrote: When a particular inning is picked it still only plays audio for me and no video. For instance, I picked the bottom of first for toronto/sox game tonight and all I get is audio with 0.1.0...

I should say that I am using file in/out and system default cache. I prefer it that way because I switch between games rather frequently because of fantasy baseball concerns...

I tried using the File In/ File Out mode last night with the system default cache.... and the audio/video was completely out of sync and the video was very choppy. Turning that off and using the 15 second buffer worked flawlessly. Not sure why you prefer the file in/out... the difference in time between when I selected the inning to play and the time that the video began to play was minimal between the two methods, at least from my testing (using system default buffer size).

divingmule - great work! All the settings appear back in the menu, and I can now successfully cancel back to the menu if selecting the incorrect game. I briefly tried a few games last night, and had no issues getting selected innings to playback correctly. I will try again this afternoon on archived games to see if I can reproduce that issue... but it may have just been a 1 time hiccup that I happened to notice.

Back to the File In/ File out mode - what is the difference between buffering with File In/Out turned on and the 15 second buffering with the option turned off?


RE: [Release] MLBMC - a Major League Baseball (video) add-on - dh3lix - 2013-05-03

(2013-05-03, 01:16)divingmule Wrote: Update MLBMC(mlb-hls) - 0.1.0
Download zip -> https://mlbmc-xbmc.googlecode.com/files/plugin.video.mlbmc.hls-0.1.0.zip

Hiya - Any reports of ppl having mlb-hls running on openelec ? I heard some rumours of broken hls pass passthrough tho - havent got the time till today to give it a shot.


[Release] MLBMC - a Major League Baseball (video) add-on - jayman13 - 2013-05-03

(2013-05-03, 15:34)sdsnyr94 Wrote:
(2013-05-03, 01:33)jayman13 Wrote: When a particular inning is picked it still only plays audio for me and no video. For instance, I picked the bottom of first for toronto/sox game tonight and all I get is audio with 0.1.0...

I should say that I am using file in/out and system default cache. I prefer it that way because I switch between games rather frequently because of fantasy baseball concerns...

I tried using the File In/ File Out mode last night with the system default cache.... and the audio/video was completely out of sync and the video was very choppy. Turning that off and using the 15 second buffer worked flawlessly. Not sure why you prefer the file in/out... the difference in time between when I selected the inning to play and the time that the video began to play was minimal between the two methods, at least from my testing (using system default buffer size).

divingmule - great work! All the settings appear back in the menu, and I can now successfully cancel back to the menu if selecting the incorrect game. I briefly tried a few games last night, and had no issues getting selected innings to playback correctly. I will try again this afternoon on archived games to see if I can reproduce that issue... but it may have just been a 1 time hiccup that I happened to notice.

Back to the File In/ File out mode - what is the difference between buffering with File In/Out turned on and the 15 second buffering with the option turned off?

It's a big difference in time when you are going from game to game. It starts very quickly without a buffer and you have to wait 10-15 seconds with the cache...


RE: [Release] MLBMC - a Major League Baseball (video) add-on - divingmule - 2013-05-04

(2013-05-03, 15:34)sdsnyr94 Wrote: Back to the File In/ File out mode - what is the difference between buffering with File In/Out turned on and the 15 second buffering with the option turned off?

The main difference is, with file in/ file out the player knows to wait and buffer if it needs too, without if you have bandwidth issues and can't keep up with the stream, the player will hit the end of file and stop playing.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - dh3lix - 2013-05-04

(2013-05-03, 15:55)dh3lix Wrote:
(2013-05-03, 01:16)divingmule Wrote: Update MLBMC(mlb-hls) - 0.1.0
Download zip -> https://mlbmc-xbmc.googlecode.com/files/plugin.video.mlbmc.hls-0.1.0.zip

Hiya - Any reports of ppl having mlb-hls running on openelec ? I heard some rumours of broken hls pass passthrough tho - havent got the time till today to give it a shot.

To answer my own question: no ... hls does not work at all at least on a fusion openelec build - also the flash mode does cause xbmc to crash alot. will try to get debug logs but most likely all a problem of xbmc/openelec itself here.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - sdsnyr94 - 2013-05-04

(2013-05-04, 10:00)dh3lix Wrote:
(2013-05-03, 15:55)dh3lix Wrote:
(2013-05-03, 01:16)divingmule Wrote: Update MLBMC(mlb-hls) - 0.1.0
Download zip -> https://mlbmc-xbmc.googlecode.com/files/plugin.video.mlbmc.hls-0.1.0.zip

Hiya - Any reports of ppl having mlb-hls running on openelec ? I heard some rumours of broken hls pass passthrough tho - havent got the time till today to give it a shot.

To answer my own question: no ... hls does not work at all at least on a fusion openelec build - also the flash mode does cause xbmc to crash alot. will try to get debug logs but most likely all a problem of xbmc/openelec itself here.

HLS works fine on Openelec. Download the mlbhls binary file from here : http://openelec.tv/forum/90-miscellaneous/28946-extra-software-for-mlbmc-add-on?start=24#70129

Place that file into one of the the following folders:
64-bit - .xbmc/addons/plugin.video.mlbmc.hls/resources/mlbhls/openelec-mlbhls/x86_64
32-bit - .xbmc/addons/plugin.video.mlbmc.hls/resources/mlbhls/openelec-mlbhls/i386

ssh into Openelec, navigate to the above folder, and enter: chmod +x mlbhls (to make sure it is executable)

If it still does not work from there, you may need to specify a Temp Folder in the MLBMC-HLS settings. Point it anywhere where there is read/write access, such as anything within the /storage folder.

If it still does not work, a debug log will help.


RE: [Release] MLBMC - a Major League Baseball (video) add-on - dh3lix - 2013-05-04

(2013-05-04, 14:39)sdsnyr94 Wrote: Place that file into one of the the following folders:
64-bit - .xbmc/addons/plugin.video.mlbmc.hls/resources/mlbhls/openelec-mlbhls/x86_64
32-bit - .xbmc/addons/plugin.video.mlbmc.hls/resources/mlbhls/openelec-mlbhls/i386

If it still does not work, a debug log will help.

Excellent! Thanks a alot - worked out smoothly - also joining into a specific inning seems to work pretty well and seems to be pretty stable overall.

Nonethenless i have one problem ... latest 0.1.0 mlbhls gives me on each exit from a game playback one python script error ... from the debug log:

Code:
16:43:41 T:140598408238848  NOTICE: -->Python Interpreter Initialized<--
16:43:41 T:140599348287232  NOTICE: [MLBMC-0.1.0]: MLB-HLS is Running:  1520 root       0:02 /storage/.xbmc/addons/plugin.video.mlbmc.hls/resources/mlbhls/openelec-mlbhls/x86_64/mlbhls -B aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDEzLzA1LzAzL01MQl9HQU1FX1ZJREVPX1dBU1BJVF9WSVNJVF8yMDEzMDUwMy9tYXN0ZXJfd2lyZWRfd2ViLm0zdTh8MGtlSmNHTjl4eTM4c3pvMGIrTHEvVXZ1Z1RnPXxwbGF5YmFjaz1IVFRQX0NMT1VEX1dJUkVEX1dFQiZjb250ZW50SWQ9MjY3MjA5OTkmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMzQ3MTgzLTIwMTMtMDUtMDMmaXBpZD0zNDA2ODY2NiZzZXNzaW9uS2V5PVFxdzk3WWZwRnNFeUxCakJsQnEwWDdteGd2dyUzRCZwbGF0Zm9ybT1XRUJfTUVESUFQTEFZRVI= -o /storage/downloads/mlbtv.tmp-UUkPIi/Washington_Nationals_Coverage_-_MASN-HD.ts -L -s 3000000 -F 22:59:56
16:43:41 T:140599348287232  NOTICE: [MLBMC-0.1.0]: - killing mlbhls -
16:43:41 T:140599348287232  NOTICE: [MLBMC-0.1.0]: MLB-HLS is Running:  1520 root       0:02 /storage/.xbmc/addons/plugin.video.mlbmc.hls/resources/mlbhls/openelec-mlbhls/x86_64/mlbhls -B aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDEzLzA1LzAzL01MQl9HQU1FX1ZJREVPX1dBU1BJVF9WSVNJVF8yMDEzMDUwMy9tYXN0ZXJfd2lyZWRfd2ViLm0zdTh8MGtlSmNHTjl4eTM4c3pvMGIrTHEvVXZ1Z1RnPXxwbGF5YmFjaz1IVFRQX0NMT1VEX1dJUkVEX1dFQiZjb250ZW50SWQ9MjY3MjA5OTkmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMzQ3MTgzLTIwMTMtMDUtMDMmaXBpZD0zNDA2ODY2NiZzZXNzaW9uS2V5PVFxdzk3WWZwRnNFeUxCakJsQnEwWDdteGd2dyUzRCZwbGF0Zm9ybT1XRUJfTUVESUFQTEFZRVI= -o /storage/downloads/mlbtv.tmp-UUkPIi/Washington_Nationals_Coverage_-_MASN-HD.ts -L -s 3000000 -F 22:59:56
16:43:41 T:140598408238848  NOTICE: [MLBMC-0.1.0]: Mode: 6
16:43:41 T:140598408238848  NOTICE: [MLBMC-0.1.0]: URL: http://mlb.mlb.com/gdcross/components/game/mlb/year_2013/month_05/day_03/master_scoreboard.json
16:43:41 T:140598408238848  NOTICE: [MLBMC-0.1.0]: Name: May 03, 2013 - Friday
16:43:41 T:140599348287232  NOTICE: [MLBMC-0.1.0]: MLB-HLS is Running:  1520 root       0:02 /storage/.xbmc/addons/plugin.video.mlbmc.hls/resources/mlbhls/openelec-mlbhls/x86_64/mlbhls -B aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDEzLzA1LzAzL01MQl9HQU1FX1ZJREVPX1dBU1BJVF9WSVNJVF8yMDEzMDUwMy9tYXN0ZXJfd2lyZWRfd2ViLm0zdTh8MGtlSmNHTjl4eTM4c3pvMGIrTHEvVXZ1Z1RnPXxwbGF5YmFjaz1IVFRQX0NMT1VEX1dJUkVEX1dFQiZjb250ZW50SWQ9MjY3MjA5OTkmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMzQ3MTgzLTIwMTMtMDUtMDMmaXBpZD0zNDA2ODY2NiZzZXNzaW9uS2V5PVFxdzk3WWZwRnNFeUxCakJsQnEwWDdteGd2dyUzRCZwbGF0Zm9ybT1XRUJfTUVESUFQTEFZRVI= -o /storage/downloads/mlbtv.tmp-UUkPIi/Washington_Nationals_Coverage_-_MASN-HD.ts -L -s 3000000 -F 22:59:56
16:43:41 T:140599348287232  NOTICE: [MLBMC-0.1.0]: - killing mlbhls -
16:43:41 T:140599348287232   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.OSError'>
                                            Error Contents: (2, 'No such file or directory', '/storage/downloads/mlbtv.tmp-UUkPIi/Washington_Nationals_Coverage_-_MASN-HD.ts')
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/plugin.video.mlbmc.hls/resources/mlbtv_player.py", line 132, in <module>
                                                stop_subprocess()
                                              File "/storage/.xbmc/addons/plugin.video.mlbmc.hls/resources/mlbtv_player.py", line 48, in stop_subprocess
                                                os.remove(filename)
                                            OSError: (2, 'No such file or directory', '/storage/downloads/mlbtv.tmp-UUkPIi/Washington_Nationals_Coverage_-_MASN-HD.ts')
                                            -->End of Python script error report<--
16:43:41 T:140598408238848  NOTICE: [MLBMC-0.1.0]: getRequest : http://mlb.mlb.com/gdcross/components/game/mlb/year_2013/month_05/day_03/master_scoreboard.json
16:43:41 T:140598408238848  NOTICE: [MLBMC-0.1.0]: Server: Sun-ONE-Web-Server/6.1
                                            Last-Modified: Sat, 04 May 2013 12:33:07 GMT
                                            ETag: "ff2a-ab6dc6c0"
                                            Content-Type: application/json
                                            Vary: Accept-Encoding
                                            Cache-Control: max-age=0
                                            Expires: Sat, 04 May 2013 14:43:41 GMT
                                            Date: Sat, 04 May 2013 14:43:41 GMT
                                            Transfer-Encoding:  chunked
                                            Connection: close
                                            Connection: Transfer-Encoding
16:43:41 T:140598408238848  NOTICE: [MLBMC-0.1.0]: Chi White Sox @ Kansas City  event_id exception
16:43:41 T:140598408238848  NOTICE: [MLBMC-0.1.0]: Chi White Sox @ Kansas City  media_state exception
16:43:41 T:140599348287232  NOTICE: Thread Background Loader start, auto delete: false
16:43:41 T:140598866585344  NOTICE: Thread Jobworker start, auto delete: true

Also one process seems to be left alive around on each playback ... here one example fitting the above log ..

Code:
1520 root       0:05 /storage/.xbmc/addons/plugin.video.mlbmc.hls/resources/mlbhls/openelec-mlbhls/x86_64/mlbhls -B aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDEzLzA1LzAzL01MQl9HQU1FX1ZJREVPX1dBU1BJVF9WSVNJVF8yMDEzMDUwMy9tYXN0ZXJfd2lyZWRfd2ViLm0zdTh8MGtlSmNHTjl4eTM4c3pvMGIrTHEvVXZ1Z1RnPXxwbGF5YmFjaz1IVFRQX0NMT1VEX1dJUkVEX1dFQiZjb250ZW50SWQ9MjY3MjA5OTkmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMzQ3MTgzLTIwMTMtMDUtMDMmaXBpZD0zNDA2ODY2NiZzZXNzaW9uS2V5PVFxdzk3WWZwRnNFeUxCakJsQnEwWDdteGd2dyUzRCZwbGF0Zm9ybT1XRUJfTUVESUFQTEFZRVI= -o /storage/downloads/mlbtv.tmp-UUkPIi/Washington_Nationals_Coverage_-_MASN-HD.ts -L -s 3000000 -F 22:59:56

Allready tried switching to file in-out instead of timed buffering and disabled starttime inning getting - does not make any difference tho.

Any ideas or suggestions how to troubleshoot further is surly welcome ^^

kind regards marcO


RE: [Release] MLBMC - a Major League Baseball (video) add-on - sdsnyr94 - 2013-05-04

DivingMule - DH3LIX's issue is one that I also see but forgot to mention. I think the add-on was originally supposed to clean up behind itself, but the temporary folders are being left behind. I am left with a bunch of empty mlbtv.temp-xxxx folders. Maybe the add-on is having trouble removing those folders?