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.
Small thing, but thought you'd want to know. For extra inning games, the line score shows only the 9 innings. The final score is correct. Good example is the Boston-Tampa Bay game of April 13. It went 10 innings and the Red Sox scored the winning run in the bottom of the tenth. The line score shows nine innings of scoring (so they add up to a 1-1 game) and then the total runs shows the Sox with 2.
Not sure how difficult it would be to show the extra inning(s) and in any event, the total scores are right.
The Master Scoreboard feature is great! Love at the end of the Phillies games being able to quickly find the one that's a good one to tune in and listen.
Small thing, but thought you'd want to know. For extra inning games, the line score shows only the 9 innings. The final score is correct. Good example is the Boston-Tampa Bay game of April 13. It went 10 innings and the Red Sox scored the winning run in the bottom of the tenth. The line score shows nine innings of scoring (so they add up to a 1-1 game) and then the total runs shows the Sox with 2.
Not sure how difficult it would be to show the extra inning(s) and in any event, the total scores are right.
I am aware of this issue. I am not entirely sure how to implement the horizontal scrolling necessary to expand the line score into extra innings. I have a loose idea of how to do it. Maybe I can work it out this week.
EDIT: Turned out to be easier than I thought. Checked in a fix for this. For games that have extra innings, left and right arrow keys will let you navigate through the extra frames. I tested it with several games this season and even going back to a 20-inning game on 4/17/10.
SVN revision 423: Fixed line score view to handle extra innings
Left and right arrow keys in line score view will now let you scroll through extra innings.
I also changed the name of prepareMediaPlayer() method in MediaStream to prepareMediaStreamer() to more accurately describe what the routine does. Shouldn't change anything unless you are writing your own code with MLBviewer library.
SVN revision 426: Changed jump to innings to fix jump to extra innings
Reworked internal data structures for jump to innings to support jump to any inning, not just the first 10.
Prior to 426:
MLBSchedule.parseInningsXml() returned a list of tuples of (inning, is_top, time) and MLBInningWin had a hack to to store top innings as 1-10 and bottom innings as 11-20. It made creating the availability frames a little easier but it also limited the jumps to the first 10 innings.
Change in 426:
The list of tuples is replaced with a dictionary of innings[inning]['away'] and innings[inning]['home']. This dictionary is built in MLBSchedule.parseInningsXml() rather than MLBInningWin. Two major benefits to this are that extra inning jumps can go directly to the desired half inning (e.g. "b16" will go to bottom 16th rather than only having "e" to go to top of 10th) and mlbplay support for innings will be a lot easier (coming soon.)
(If you like extra implementation details, the ~/.mlb/log file will contain a link to the innings XML that was parsed and entering "D" for the half inning to jump to will give you a debug dump of the parsed innings file.)
Two things I also changed with this:
If game is in progress and in extra innings, "Last available half inning" will display the actual last half extra inning available (e.g. Top 16.)
If game is completed in extra innings, "Last available half inning" will only display "Game Completed", not "Extra Innings".
Quick poll: For those who use jump to innings feature, do you want to know about extra innings at all? Seems to me that it would be a spoiler for an archived game. However, if the game is still in progress, it would seem like a good thing to know, especially if it's gone to 16+ innings. You may just want to jump in and watch to the end rather than sitting through the first 16. What do you think?
If you are experiencing any problems with either jump to inning or starting an archived nexdef game (uses the same code to find the start of broadcast), please tell me the date, game, nexdef or not, and half inning.
Quick poll: For those who use jump to innings feature, do you want to know about extra innings at all? Seems to me that it would be a spoiler for an archived game. However, if the game is still in progress, it would seem like a good thing to know, especially if it's gone to 16+ innings. You may just want to jump in and watch to the end rather than sitting through the first 16. What do you think?
Although I have yet to test it, I am pleased you have fixed the jump to extra innings. It was not unknown for a stream to drop out during extra innings with no easy way back, particularly when not using nexdef.
Unless it has changed, if you don't want to see the innings played, you could always set show_inning_frames=0 in the config file. I have always done that to prevent an extra inning spoiler: in previous versions, although jump to extra innings didn't work, the innings frames still indicated whether there were extra innings.
Although I have yet to test it, I am pleased you have fixed the jump to extra innings. It was not unknown for a stream to drop out during extra innings with no easy way back, particularly when not using nexdef.
Unless it has changed, if you don't want to see the innings played, you could always set show_inning_frames=0 in the config file. I have always done that to prevent an extra inning spoiler: in previous versions, although jump to extra innings didn't work, the innings frames still indicated whether there were extra innings.
After the latest edit, the only indication that there are extra innings is if you catch the game while it is still in progress and in extra innings. I think this is fair because I cannot think of another fair or accurate way to mask that. Once the game is completed, there will be no spoilers even with the innings frames displayed.
BTW, I have checked in a new revision of mlbplay that supports 'i' flag with the same syntax as the inning screen: 't' or 'b' plus inning, e.g. t8; 'e' for top 10; or 'd' for debug dump (cross-reference with innings xml URL written to ~/.mlb/log if you have doubts about how a game was parsed.)
After the latest edit, the only indication that there are extra innings is if you catch the game while it is still in progress and in extra innings. I think this is fair because I cannot think of another fair or accurate way to mask that. Once the game is completed, there will be no spoilers even with the innings frames displayed.
Think this is definitely the way to go. Went to watch the Giants/Cubs game from from Sunday last night, and when I saw there was Extra Innings it felt a little spoilery to know the game would definitely be tied after 9, so I just jumped to the top of the tenth. Just tested T10 on that game with the latest revision and everything went as it should. Another great feature, thanks.
'x' key or BOX_SCORE action if you're customizing keybindings (see README on how to do that.)
I am aware that the screen size often breaks the box score in inconvenient places (like header on the last line, then all the stats continued on the next page) but I'm not sure how to fix that yet. I currently build the box score line by line into a list and by the time it gets drawn to the screen, I am not checking the contents of that list. Give me some time to use it, play with it, get seriously annoyed with that limitation, and I'll probably come up with a fix eventually.
I'm on rev 438. Today I'm trying to catch the phillies @ reds. The game was rain delayed for 1.25 hr, my feed dropped out. The game is currently in the t7, when I go to the innings selector, try to get the t4 I get:
Traceback (most recent call last):
File "./mlbviewer.py", line 677, in <module>
curses.wrapper(mainloop, mycfg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "./mlbviewer.py", line 405, in mainloop
mediaUrl = mediaStream.locateMedia()
File "/Users/mchapter/mlbviewer/MLBviewer/mlbMediaStream.py", line 159, in locateMedia
content_list = self.parseMediaReply(reply)
File "/Users/mchapter/mlbviewer/MLBviewer/mlbMediaStream.py", line 183, in parseMediaReply
raise Exception,self.error_str
Exception: Other Undocumented Error
I looked int ~/.mlb/log...
2013-04-16 21:13:41.410054
UNSUCCESSFUL MEDIA REQUEST: status-code: -1500 , event-id = 14-346942-2013-04-16
See /Users/mchapter/.mlb/unsuccessful-1.xml for XML response.
session-key from cookie file: UE%2B8%2BfmrTv8cf6dSETEvudgrpYc%3D
parseInningsXml(): url = http://mlb.mlb.com/mlb/mmls2013/346942.xml
unsuccessful-1.xml is zero bytes and empty
EDIT: started working again, I guess it was on mlb's end.
Last edited by mchapter; 04-16-2013 at 09:18 PM.
Reason: more info
I'm on rev 438. Today I'm trying to catch the phillies @ reds. The game was rain delayed for 1.25 hr, my feed dropped out. The game is currently in the t7, when I go to the innings selector, try to get the t4 I get:
Traceback (most recent call last):
File "./mlbviewer.py", line 677, in <module>
curses.wrapper(mainloop, mycfg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "./mlbviewer.py", line 405, in mainloop
mediaUrl = mediaStream.locateMedia()
File "/Users/mchapter/mlbviewer/MLBviewer/mlbMediaStream.py", line 159, in locateMedia
content_list = self.parseMediaReply(reply)
File "/Users/mchapter/mlbviewer/MLBviewer/mlbMediaStream.py", line 183, in parseMediaReply
raise Exception,self.error_str
Exception: Other Undocumented Error
I looked int ~/.mlb/log...
2013-04-16 21:13:41.410054
UNSUCCESSFUL MEDIA REQUEST: status-code: -1500 , event-id = 14-346942-2013-04-16
See /Users/mchapter/.mlb/unsuccessful-1.xml for XML response.
session-key from cookie file: UE%2B8%2BfmrTv8cf6dSETEvudgrpYc%3D
parseInningsXml(): url = http://mlb.mlb.com/mlb/mmls2013/346942.xml
unsuccessful-1.xml is zero bytes and empty
EDIT: started working again, I guess it was on mlb's end.
mlb.com must have been having problems tonight because scores weren't updating. I was watching the video of the KC game and watching them give up HR after HR but the master scoreboard and line scores were frozen. Even the website and the iPhone scores were frozen in that one brief moment of 2-2 tie where we might have had a chance....
Not sure why unsuccessful-1.xml was empty though. That's something I can look into (review the code) but not sure how to reproduce it.
EDIT: File descriptor was not closed after writing and before crashing. Checked in a fix for that as well as displaying an error message instead of crashing.
SVN rev 438: Various improvements to line score and master scoreboard for Delayed games
Made a lot of little changes and a lot of check-ins to resolve errors with line scores and master scoreboard for Delayed and Suspended games.
Delayed/Suspended/Postponed games now show up as Delayed/Suspended/Postponed in master scoreboard with the last half inning played for Delayed (Suspended and Postponed are treated as Game Over.) There's also a Delayed/Suspended/Postponed reason like "Snow" or "Rain" which gets attached to the status in line score view. For make up games and double headers, mlb.com indicates as much in their scores. Now line score view shows the same.
So how are you guys liking the box scores?
Last edited by daftcat; 04-16-2013 at 10:50 PM.
Reason: Checked changes into 441 for Suspended status
SVN revision 444: Various bug fixes (including use_librtmp and condensed games)
Jump to Innings:
* Removing an extra frame (bottom 10th) for in progress extra-innings game - moved the > 9 check outside of the ( 'home', 'away' ) loop
MediaStream:
* Changed prepareMplayerCmd to prepareLibrtmpCmd to more accurately describe what it does
* Added check for streamtype == condensed and use_librtmp to prepareMediaStreamer
* Added extra checks to prepareLibrtmpCmd to not construct a librtmp url for use_nexdef=True and streamtype == video
mlbviewer.py
* Fix for media debug from box score
* Fix for media debug from one of the new screens (can't remember which it was that didn't work but it's fixed now)
Any other nagging bugs that need attention? Looks like I'm done with new features for awhile and just looking at bug fixes now.
Speaking of new features, anyone try out box scores yet?
Speaking of new features, anyone try out box scores yet?
A great addition. I don't mind the scrolling/breaks in odd places. If you're used to reading box scores, I don't think it will be much of a problem. But it's wonderful to be able to see the box for all games that you don't necessarily want to watch. Combined with the line scores, it makes it easy to decide which innings you might want to see.
It's amazing how much time you have dedicated to mlbviewer this year. Thank you very much!
Quote:
Originally Posted by daftcat
Any other nagging bugs that need attention?
Apparently I'm the only one with this problem:
It regularly happens that I need many tries to get a game started. It's not really a mlbviewer problem, since mlbviewer is able to get the media URL just fine. But then rtmpdump just can't get the stream going. The error messages are usually along the lines of:
ERROR: DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!
ERROR: HandleInvoke, error decoding invoke packet
Code:
WARNING: Received FLV packet before play()! Ignoring.
WARNING: HandleInvoke, Sanity failed. no string method in invoke packet
When it happens, it takes me anywhere from 5 to 30 tries to get the stream going. Often, when I wait a while, it works on the first try. Sometimes it works on the first try right away. I don't know why it's happening. It happens on all games and all speeds (no nexdef, no librtmp).
I have tried different rtmpdump versions including the current git version and different mplayer/mplayer2 versions.
Am I the only one this happens to? Any ideas why this could be happening?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.