Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As a non-nexdef user, do live games work? (with rtmpdump I assume) and if they do, are there any problems with them. You seemed to say that they were not working well, but that would imply that they are at least working. If they are working, how do you get them up, just the normal way with mlbviewer.py?
Consider live games not working for rtmpdump.
Rtmpdump can download the stream but mplayer can't play it smoothly. That is, it plays about 1 frame every 5 seconds.
Archived games work well, though.
I would recommend upgrading to premium or using the flash player for live games. I would recommend upgrading to premium anyway because it's beautiful on Linux with mlbviewer. Most of the development work will be towards supporting premium/nexdef users unless a better solution for rtmp comes along.
For live and archived games, mlbviewer.py gives this error on selection:
Code:
An error occurred in locating the game stream:
Requested stream is not available.
Requested coverage association: 145
Available content list =
[]
I enabled debug and it died with this:
Code:
Traceback (most recent call last):
File "./mlbviewer.py", line 1173, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "./mlbviewer.py", line 960, in mainloop
u = g.soapurl()
File "/home/theophile/mlbviewer/MLBviewer/mlbtv.py", line 1140, in soapurl
raise Exception,self.error_str
Exception: Requested stream is not available.
Requested coverage association: 136
Available content list =
[]
Sorry guys. I had the same code working just fine last night and this morning.
Can't really do anything about it right now. If it can wait a few hours, I'll look at later tonight after work. If you need your fix, try one of the debug tools in the test directory.
It appears the live games aren't including a streamHead element in the XML. That's only really necessary for archived games and live_from_start=True.
Still don't know what's up with the empty content lists, though.
I also suspect MLB's going to have a problem with Seattle-Chicago game because at the slice server level, there is no indicator of which game they are asking for. It appears only as:
Okay, I think I have a fix for the empty content list but I don't totally understand it.
It seems the nexdef media-state is now MEDIA_OFF which I was previously excluding back when we were having JiBX marshalling errors. Since I wasn't looking for anything but MEDIA_DONE, MEDIA_ARCHIVE, or MEDIA_ON, I was returning an empty content list (e.g. no content in a playable state.)
I don't understand why these are marked as MEDIA_OFF unless they really were having Swarmcast network issues and wanted to tell the Flash player not to use the Swarmcast network. Which could still very well be the case.
I'm still at work so all I can do is verify that mplayer latched onto a stream and that Nexdef control tells me which stream it latched onto.
I can't tell you anything about the quality of that stream except that I'm not getting anything above 1200 at the moment.
Still, the fix is checked in and you all can test it with the caveat that, "there may be a reason MLB.com set these to OFF."
Okay, I think I have a fix for the empty content list but I don't totally understand it.
It seems the nexdef media-state is now MEDIA_OFF which I was previously excluding back when we were having JiBX marshalling errors. Since I wasn't looking for anything but MEDIA_DONE, MEDIA_ARCHIVE, or MEDIA_ON, I was returning an empty content list (e.g. no content in a playable state.)
I don't understand why these are marked as MEDIA_OFF unless they really were having Swarmcast network issues and wanted to tell the Flash player not to use the Swarmcast network. Which could still very well be the case.
I'm still at work so all I can do is verify that mplayer latched onto a stream and that Nexdef control tells me which stream it latched onto.
I can't tell you anything about the quality of that stream except that I'm not getting anything above 1200 at the moment.
Still, the fix is checked in and you all can test it with the caveat that, "there may be a reason MLB.com set these to OFF."
Even in the flash player, there are several games that say "media error, this is temporarily unavailable, please try again in a few minutes" or something, so it is an MLB problem, and not just nexdef either, these games are unavailable for some reason.
Even in the flash player, there are several games that say "media error, this is temporarily unavailable, please try again in a few minutes" or something, so it is an MLB problem, and not just nexdef either, these games are unavailable for some reason.
The strange thing is that these games were available yesterday. I can't check any games from work but I know I've been testing the Bos-Cle game yesterday and this morning and it's one that's been marked with media_off now.
My testing, at least remotely, seems to indicate that these streams really are available but mlb.com has marked them as unavailable.
The media error or temporarily unavailable errors you are seeing in the flash player may very well be the player reacting to the media_off state in the SOAP content replies. As I said, they may be doing some maintenance or something on those servers and so they are purposely diverting traffic off of them.
Wouldn't it be great if they are doing a Swarmcast upgrade to improve the performance of the dropped and downshifted streams?
If that's the case, I kind of feel guilty letting you guys pound on 'em when they might have a valid reason for turning us away.
Of course, they should really do this crap in the middle of the night so I have less sympathy.
Maybe I'll add a config file option, ignore_media_off so those of you who are truly evil and addicted to baseball can pound away and the majority of the sourceforge users who probably won't show up in this thread once my code is released will play by "the rules."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.