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.
won't know until the season starts. cross your fingers.
btw, it sounds like they've abandoned silverlight and flash might work with firefox again. still, it would be nice to remain with mlbviewer. especially since this year, they are offering dvr service which would allow me to officially release a copy of mlbviewer i've been using the better part of last year that implemented recording.
and technically, they've been doing flash this year as well. it was the debug messages they embedded in the flash code that was picked up by firebug that enabled folks to figure out how to make mlbviewer.
anyway, like i said, if this season is anything like previous seasons, we probably won't see how they're going to do anything until opening day. even spring training might not really give us an idea of how they'll do it in the regular season.
I think he meant "flash video" in the sense of .flv rather than .wmv. I really, really hope this is the case as Hulu and other sites have demonstrated that 720p h264 content can be streamed in real time to broadband connected machines. If they have indeed abandoned Silverlight (loser), that might mean HD baseball games in Linux! Yippee!
If they do indeed do this, and depending on the protocol they use, rtmpdump may be worth a look.
The listings show that games will be available beginning Thu Feb 26.
I can't tell you if this means it will work for the regular season. Rather than using Spring Training to test the new players like every other team does, MLB.TV seems to wait until Opening Day to roll out the new lineup. But, it's looking like you'll have at least one month of functional baseball.
The problem with Feb 25 listings was an exhibition game between the Boston Red Sox and Boston College. BC is an unknown team code. I've added a handler for unknown team codes and added BC to the TEAMCODES dictionary. If there are any other unknown team codes, you should see "Unknown Teamcode" and the team code in the listings screen. Post that listing date and the teamcode to this group and I'll add it to the dictionary.
You may update your svn with svn update or check out the latest svn code using the procedure documented in the README.
Also added to the svn sometime late last season is the 'z' key debug. Since not every listing has all media types (or even any media types in some cases), it's useful to see, without having to visit the mlb.com pages, what media is available. I know the 'z' screen isn't the most readable but you're looking for a field called 'pid:' (displayed as u'pid:'.) If that value immediately following is 'mlb_ga' (or u'mlb_ga'), that means there is or will be gameday audio stream available. If the value is 'mlb_lg', that stream identifies a live game listing. You can access streams directly using mlbgameid.py in the test directory by finding the stream id. That field is 'w_id:' (displayed as u'w_id:' in the 'z' screen.) The six digit numeric value (without the u or the '') is the stream id.
Looking forward to seeing if Spring Training 2009 will work with mlbviewer tomorrow!
Guess I'll know tomorrow when I try to watch my Marlins take on the Mets in Spring Training. MLB.TV seems to work flawlessly in Ubuntu at the moment (when I last tried, it didn't). I haven't set anything up *specially* (not that I know of, but I'm a bit of a Ubuntu noob) but once you're through the launch window mplayer launches and plays the stream. Live streams may be a different matter.
Fingers crossed. I have a dual-boot OS/Yellow Dog PS3 and a dual-boot Windows/Ubuntu PC, so I think I have all my bases covered! The order I'm going for is:
(1) PS3 internet browser (unlikely to work)
(2) Yellow Dog, Firefox (just out of interest)
(3) Yellow Dog, mlbviewer (preferred option)
(4) Ubuntu, Firefox (as my Ubuntu PC is connected to a 19" monitor, whilst PS3 is to TV)
(5) Ubuntu, mlbviewer
(6) Windows, TVersity to PS3
(7) Windows
Good news is gameday audio works for Spring Training for the one game I tested. It will be several more hours before the first game video I can watch. Unfortunately, the first one in the lineup is in my blackout region. I wonder if they are really still going to enforce blackout when all the teams are in Arizona and Florida at the moment....
But I must warn that results in Spring Training aren't necessarily guarantees that regular season will share those results. It's been my experience that MLB.TV doesn't use Spring Training to try out their new players like every other team in the league. Instead they wait til Opening Day and it takes them about a month to get their act together. So, enjoy Spring Training, and be hopeful and patient in April.
Spring Training, part 2 (or figuring out which streams are really available)
So the listings I get are different from the mlb.tv listings page (though presumably they both come from the same source.) I'm going to put up a php page later that will have the option to go to the current day's listings or pick a day's listings so you can see the raw listing.
I also said that Spring Training listings have all the games but don't have streams listed for all the games.
Kind of messy, eh? This is a python dump of the data structure after the listings code has cooked the raw data. Without getting too much into it, look for the u'pid:' field (the u stands for unicode, it's just a data type and can be ignored.) The next field is u'mlb_ga' (or simply mlb_ga, I'm going to ignore the 'u's from this point forward.)
The pid:s are:
mlb_ga = Gameday audio
mlb_lg = Live Game
I think there are a few others. I also think that archived games use the mlb_lg pid as well.
So from this listing we can see that there is a gameday audio stream available. There are no other pid's.
Let's move to the next listing, Boston College at Boston Red Sox.
Code:
LISTINGS DEBUG FOR 2009/02/25/bocbbc-bosmlb-1
───────────────────────────────────────────────────────────────────────────────
getListings() for current_cursor:
({'home': u'bos', 'away': u'bc'}, datetime.datetime(2009, 2, 25, 11, 5), None, N
one, u'I', u'2009/02/25/bocbbc-bosmlb-1')
There are no pid's so there are no streams available for this game.
This has two pid:s. The first is mlb_lg meaning there is a video stream available. The second is a mlb_ga, an audio stream. Now looking closer at the video stream, about 4 name value pairs later, there is a 'fid:' field. The fid: is mlb_lg400. This means this stream is a 400K stream. Since there is no mlb_lg800, 400K is all that's available for this game. If you're configured for 800K, mlbviewer falls back to 400K if that's all that is available.
Finally, if you have problems with any of the streams, you can test outside of mlbviewer with the mlbgameid.py script. Looking at either stream, there is a w_id: field. That's the stream id. (mlbgameid.py should really be named mlbstreamid.py but I don't feel like changing that now.) Take the six digit number that follows the w_id: field and give that as an argument to mlbgameid.py:
Code:
% test/mlbgameid.py 906653
Finally, if you suspect mlbviewer is masking an error like saying "parser problem with the listings page", you can enable debugging with the 'd' key. Any error that would normally be caught by mlbviewer will drop right through and raise a python exception. These exception traces (the full trace with code line numbers) are necessary for me to find any problems.
Note the 'z' screen method of finding what streams are available is really only necessary for spring training. Once the regular season gets under way, they should have all stream types for all games.
i bought my mlb subscription today and did reinstall mlb viewer, which worked just fine all of last season. but now when i start the program the terminal always shuts down and i get this info. that means so far i can't watch anything. does anyone have any ideas on how to fix it? much appreciated!
thanks,
markus
Quote:
Traceback (most recent call last):
File "mlbviewer.py", line 704, 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 154, in mainloop
available =
mysched.getListings(cfg['speed'],cfg['blackout'],cfg['audio_follow'])
File "/home/mrks/Programme/mlbviewer-0.1alpha7/MLBviewer/mlbtv.py",
line 334, in getListings
listings = self.trimList()
File "/home/mrks/Programme/mlbviewer-0.1alpha7/MLBviewer/mlbtv.py",
line 247, in trimList
' at ' +\
KeyError: u'bc'
i bought my mlb subscription today and did reinstall mlb viewer, which worked just fine all of last season. but now when i start the program the terminal always shuts down and i get this info. that means so far i can't watch anything. does anyone have any ideas on how to fix it? much appreciated!
It should work fine today but you should update to the latest svn just in case. See the README file for instructions on how to check out and update the code using svn. Things are likely to get a little wonky next month with the World Baseball Classic so it's best to subscribe to this thread. I'll announce when new fixes are checked into svn.
Well, tried the Giants/Indians game, this is what I got:
(1) PS3 internet browser (unlikely to work)
(2) Yellow Dog, Firefox (just out of interest)
(3) Yellow Dog, mlbviewer (preferred option)
(4) Ubuntu, Firefox (as my Ubuntu PC is connected to a 19" monitor, whilst PS3 is to TV)
(5) Ubuntu, mlbviewer
(6) Windows, TVersity to PS3
(7) Windows
SVN Revision 105: Media availability in status line and WBC team codes
SVN revision 105 fixes a bug that will happen with Mar 6 listings. Mar 6 listing has a game where both teams are listed as "null". Without SVN revision 105, mlbviewer may be unavailable that day, e.g., it may crash on the listings screen.
Although, presumably by Mar 6, they'll have figured out which teams are playing in that WBC game.
Also in revision 105, I have added media availability indications to the status line. If there is no video, no audio, or neither video or audio available for a particular listing (like many of the Spring Training games), The status line will show "(No video available)", "(No audio available)", or "(No media available)", respectively. In other words, you no longer need to hurt your eyes on the 'z' screen or consult the MLB.com listing page to figure out if your game has media available.
Finally, revision 105 contains a lot of the WBC team codes so they'll show up as "WBC China at WBC Japan" instead of "Unknown Team Code at Unknown Team Code." As the WBC progresses, I expect I'll have to add a few more team codes but these should carry you until at least March 11 according to the listings available today.
Please refer to the README on how to update (or checkout) mlbviewer using SVN.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.