Kodi Community Forum

Full Version: MLB.TV®
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I went to check about a lower bitrate but nothing is working now, including highlights that were working earlier today, so I don't know what to say.

Every episode says "not available" and I get the Playback failed message.

EDIT 2 - It seems that when I change the bitrate from either "best available" or HD (4500 kbps) it won't let me open the stream.

When I open I also tried to go to SD (1800 KBPS) it does work better. This is better than nothing as I would give the quality still a 6/10 or 7/10...though I of course wish it would work on HD. Maybe what someone asked about the firestick not having enough juice is true?

I sincerely thank everyone who has helped me with my issues in this thread.
Why does this addon when you go to a game and watch then if you decide to check another game when you go back to the first game you watched its GONEHuhHuhHuh It reappears after a while am I missing something here? Or anyone else seeing the same thingHuh?
(2016-04-02, 20:17)Sublime40oz Wrote: [ -> ]Was working earlier in the week, but now im getting "playback failed". Audio streams play fine. Any one have a fix? Im on osmc on a raspberry pi 2.

I'm experiencing the exact same thing with the exact same setup.
I'm running OSMC (updated today, 16.0) and it's working fine for me at 4500K. I had the MLB HLS addon installed before. Maybe that helps it play? Also, it's possible the exhibition games aren't all broadcast in HD.
(2016-03-15, 19:44)GriffeyJuni0r Wrote: [ -> ]
(2016-03-15, 14:31)eracknaphobia Wrote: [ -> ]
(2016-03-15, 05:12)GriffeyJuni0r Wrote: [ -> ]You're a much better coder than you thought - Looks like you already are parsing the audio streams. If you go into the audio settings once a game is playing you can switch the audio stream. I think these are the radio broadcasts. Right now, however, they are all listed as 'Unknown' so it would be awesome to get the names on the streams. Additionally, it would be great to select the particular video/audio stream on game select.

Interesting, although I can't take the credit for that Kodi is doing most of the work for me Wink I'll look into refining this in the next release.

You're amazing - Thanks!!

All working perfectly on opening day! Did you have any luck with naming the audio stream and refining the game select/audio combination menu?
I just installed Kodi and the repository file, installed it, and signed in with my MLB.tv account. When I try to watch today's PIT/STL game, I keep getting the following error message:

Playback failed
One or more items failed to play. Check the log for more information about this message.

Apologies in advance if this has been solved elsewhere; I've been looking at the forms and can't figure this out. Thanks!
Disregard; I logged out, re-entered my user ID and password, and all is good.
Third inning of Cardinals/Pirates, video freezes. I restart the stream and 60 fps is gone....I so dislike the people at MLB.
Thank you for the add-on, by the way.
MASTER_FILE_TYPE = 'master_wired60.m3u8'

in globals.py, otherwise bandwidth settings are ignored.
Just installed on Kodi 16.0 running on an Intel i7 quad core with 16GB memory with OpenSuse linux and mysql db

Seems to work fine for watching shows in ID with mlb.tv login

BUT, it crashes Kodi every time when a show is stopped. One of the last messages in the log is the plugin trying to save the file state that tries to insert into the Files table of the video database of Kodi.

Mysql execute: insert into files (idFile, idPath, strFileName) values(NULL, 5428, ' .... a very, very long string which is more than the 512 varchar field strFileName in the FIles table')

The above is called during processing of

plugin://plugin.video.mlbtv/?url=&mode=104&name=" .. a very, very, long string ..."

Note url parameter is not defined/empty.

It doesn't crash the DB just Kodi.

It is then followed by the invocation on main.py of the plugin

11:11:32 T:140376052131584 DEBUG: -->Python Interpreter Initialized<--
11:11:32 T:140376052131584 DEBUG: CPythonInvoker(16, /home/XXXXXXX/.kodi/addons/plugin.video.mlbtv/main.py): the source file to load is "/home/XXXXXXX/.kodi/addons/plugin.video.mlbtv/main.py"

And the log ends there as Kodi crashes.

The problem might be either the NULL for the idFile (which is defined non-nullable in the table) or the very long string for strFileName (I have seen the latter problem with many addons when their authors don't take into account that the field when a DB is in use is limited to 512 characters).

The database update will fail for the above statement, so I am not sure if the plugin is the culprit when this happens or the Kodi library for the database is the culprit when handling the db error. Something in main.py might be crashing Kodi too when the update for saving state fails.

Please take a look at this part of the plugin to make it a bit more robust and save sensibly rather than dump such a large state into the DB. May have to handle URL parameter being empty in the call to the script above as well.

Thanks for putting this add-on together.

PS: For people with T-Mobile cellular service in the US, there is a free one year promo going for MLB.TV starting today and ending Apr 10th for signing up. Works great with this add-on except for the problem above.

http://www.t-mobile.com/mlb.html
(2016-04-03, 20:27)Zilding Wrote: [ -> ]MASTER_FILE_TYPE = 'master_wired60.m3u8'

in globals.py, otherwise bandwidth settings are ignored.

Thanks, I've made the edit but still doesn't look like 60 fps to me. Do you know how I'd check the frame rate?
(2016-04-03, 20:40)architeuthis Wrote: [ -> ]
(2016-04-03, 20:27)Zilding Wrote: [ -> ]MASTER_FILE_TYPE = 'master_wired60.m3u8'

in globals.py, otherwise bandwidth settings are ignored.

Thanks, I've made the edit but still doesn't look like 60 fps to me. Do you know how I'd check the frame rate?

Press the 'o' key while watching the stream.
(2016-04-03, 20:52)MetalChris Wrote: [ -> ]
(2016-04-03, 20:40)architeuthis Wrote: [ -> ]
(2016-04-03, 20:27)Zilding Wrote: [ -> ]MASTER_FILE_TYPE = 'master_wired60.m3u8'

in globals.py, otherwise bandwidth settings are ignored.

Thanks, I've made the edit but still doesn't look like 60 fps to me. Do you know how I'd check the frame rate?

Press the 'o' key while watching the stream.

Thanks, my frame rate is '29.970'..Just amazing, the spring training games I watched were all 60 fps.
The home feed was only 30fps all time. The Away Feed 60fps at the beginning. Now i must restart and here also 30 fps.
there ist no 4500er Stream at the serverHuh

Yesterday Games working with 60fps