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.
I just called up the file and it looks like only the RSS is missing. The Standings is in the file on line 121, so it's not nearly as bad as I was afraid it was from your earlier comment. That's from the latest upload to SF, and Saturday I'll update via svn to get the latest goodies.
One thing I'm noticing, and I'm not sure if it's an issue with my system or my 'net connection or what, but the condensed game is pretty useless to me. It's hanging up so often, and so badly, that I can't even get through the first batter. Looking at last night's Nats v Dodgers game, not logged in and with a speed of 1800K selected for mplayer2, I'm noticing this in the terminal
Using debug mode I get a URL of rtmp://cp65671.edgefcs.net/ondemand/mp4pen/mlbam/2013/05/16/mlbtv_27169291_1800K.mp4
Try setting your speed= parameter back to 1200. I recently changed mlbviewer to select the 1800K stream if speed=1800 or higher. Otherwise, it will request the 1200K stream. If 1200 works and 1800 does not, then it could be your net connection is too slow, the MLB network is too congested, or there could be a problem with the streamed file (remove the -quiet or -really-quiet from video_player= command to see mplayer errors.)
Second question: Do you plan on trying to support milb.tv? I imagine it's the same back-end and the like. If you are interested, I'll buy you a subscription and help with debugging.
Thanks a ton!
You may luck out that I'm stubborn and frequently have insomnia. I have the quick-and-dirty script working. That's usually the hardest part (getting the login, media location request, and formatting the player command string) which is why I start with a quick-and-dirty script first. To see just how dirty these scripts can be, all you have to do is look at one of the scripts in the test/ directory of mlbviewer.
It may still take a few weeks to convert the quick-and-dirty code into the an actual milbviewer worth releasing. If you're interested, I can make something similar to mlblistings.py and check in the quick-and-dirty script so you'll at least have that much while I get it ported to the new MLBviewer framework. I want to leverage some of the base architecture like the scrollable and resizeable listings window, the help and options screens, the customized keybindings, and some of the debug code. Looking at the current state of milbviewer code, it's like a time machine to 2008.
Probably not going to change that since recording is one of those grey areas in the Terms of Service. You should be thankful that %s and %f expansions are actually there at all.
Help me understand why you want to drop the call letters and maybe I can come up with something for you.
I understand. The reason I want to drop the call letters is because I have a job where I can't have Internet access (security policy) but have a lot of downtime. So I dump the files to an external HD and watch the games on my laptop. But I also have a PITCHf/x database, and I wrote a script to match up the pitch data with the videos so I can see a real-time pitch tracker and the like!
The issue is that PITCHf/x uses game IDs which are very close to what you have, but omit the call letters. I can get around it using matching in the software or even a script that renames the files, but I thought there might be a way to drop the call letters using substring replacement in the config file or redirecting to a shell script. No such luck though.
As for the MiLB post you just made, that's awesome! Again I work in a heavy security compound where there is no Internet access available (I think you might be able to guess what kind of place it is!) and so to kill time, I like to code on projects and watch baseball
Quote:
It may still take a few weeks to convert the quick-and-dirty code into the an actual milbviewer worth releasing. If you're interested, I can make something similar to mlblistings.py and check in the quick-and-dirty script so you'll at least have that much while I get it ported to the new MLBviewer framework. I want to leverage some of the base architecture like the scrollable and resizeable listings window, the help and options screens, the customized keybindings, and some of the debug code. Looking at the current state of milbviewer code, it's like a time machine to 2008.
Ha, that would be awesome! Trust me, I am more in the camp of "it just works" than anything else
Try setting your speed= parameter back to 1200. I recently changed mlbviewer to select the 1800K stream if speed=1800 or higher. Otherwise, it will request the 1200K stream. If 1200 works and 1800 does not, then it could be your net connection is too slow, the MLB network is too congested, or there could be a problem with the streamed file (remove the -quiet or -really-quiet from video_player= command to see mplayer errors.)
Setting the speed to 1200K didn't help. I am seeing a complaint about a missing file or directory in the terminal with the condensed game trying to play.
Quote:
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
This laptop uses Intel graphics chips so the nvidia file won't be found, but I'm not sure why that's making the video buffer so much. I'm on a pretty fast 'net connection but when I try to watch the condensed game on the MLB website I get a lot of buffering as well, although not nearly as much as I do in mlbviewer so it may have something to do with the fact that I haven't bought a subscription yet. That's just a guess on my part.
Setting the speed to 1200K didn't help. I am seeing a complaint about a missing file or directory in the terminal with the condensed game trying to play.
This laptop uses Intel graphics chips so the nvidia file won't be found, but I'm not sure why that's making the video buffer so much. I'm on a pretty fast 'net connection but when I try to watch the condensed game on the MLB website I get a lot of buffering as well, although not nearly as much as I do in mlbviewer so it may have something to do with the fact that I haven't bought a subscription yet. That's just a guess on my part.
Possibly this is because you have set the -vo and -va options of mplayer to vdpau in mlbviewer's config file. More likely though you have obtained a binary of mplayer compiled against nvidia's vdpau library, and you do not have that library installed. Either way, this is not a mlbviewer issue.
Possibly this is because you have set the -vo and -va options of mplayer to vdpau in mlbviewer's config file. More likely though you have obtained a binary of mplayer compiled against nvidia's vdpau library, and you do not have that library installed. Either way, this is not a mlbviewer issue.
I must have gotten something compiled against nvidia, although I do see I have libvdpau1 installed so I'm not sure what's up. I was mainly mentioning it because I saw it in the terminal and didn't know if it was important or not. I'll simply ignore it in the future. Thanks for the info, Chris.
Setting the speed to 1200K didn't help. I am seeing a complaint about a missing file or directory in the terminal with the condensed game trying to play.
This laptop uses Intel graphics chips so the nvidia file won't be found, but I'm not sure why that's making the video buffer so much. I'm on a pretty fast 'net connection but when I try to watch the condensed game on the MLB website I get a lot of buffering as well, although not nearly as much as I do in mlbviewer so it may have something to do with the fact that I haven't bought a subscription yet. That's just a guess on my part.
The error messages you see are likely safe to ignore. One will be a no such file or directory related to lirc and the other the vpdau thing.
What is the top_plays_player= and video_player= commands you are using? It's likely top_plays_player is blank and video_player defaults to "-cache 8192". Is the issue with buffering that it takes too long to start a stream? Reduce the -cache size. If it starts and stops too frequently after it has started playing the stream, increase the cache size.
I understand. The reason I want to drop the call letters is because I have a job where I can't have Internet access (security policy) but have a lot of downtime. So I dump the files to an external HD and watch the games on my laptop. But I also have a PITCHf/x database, and I wrote a script to match up the pitch data with the videos so I can see a real-time pitch tracker and the like!
The issue is that PITCHf/x uses game IDs which are very close to what you have, but omit the call letters. I can get around it using matching in the software or even a script that renames the files, but I thought there might be a way to drop the call letters using substring replacement in the config file or redirecting to a shell script. No such luck though.
As for the MiLB post you just made, that's awesome! Again I work in a heavy security compound where there is no Internet access available (I think you might be able to guess what kind of place it is!) and so to kill time, I like to code on projects and watch baseball
Ha, that would be awesome! Trust me, I am more in the camp of "it just works" than anything else
Work around it for now. I may add in some extra substring substitutions later.
MiLB integration sounds kinda nightmarish the more I think about it. I'll likely just copy the code a class at a time as I need it. It really disappoints me that after all these years, the quality is still so crappy, though. It's hard to want to put much effort into it when it doesn't seem like they are putting much effort into it themselves.
The error messages you see are likely safe to ignore. One will be a no such file or directory related to lirc and the other the vpdau thing.
What is the top_plays_player= and video_player= commands you are using? It's likely top_plays_player is blank and video_player defaults to "-cache 8192". Is the issue with buffering that it takes too long to start a stream? Reduce the -cache size. If it starts and stops too frequently after it has started playing the stream, increase the cache size.
Increasing the cache to 8192 made it a lot easier to see the condensed game, getting into the second inning before buffering started, and that's in a Starbucks. I suspect next week when I'm back at the library I'll get even better results on their faster pipe. Thanks for the assist, daftcat!
Work around it for now. I may add in some extra substring substitutions later.
MiLB integration sounds kinda nightmarish the more I think about it. I'll likely just copy the code a class at a time as I need it. It really disappoints me that after all these years, the quality is still so crappy, though. It's hard to want to put much effort into it when it doesn't seem like they are putting much effort into it themselves.
Pretty weird that the two systems are not similar, if not identical. Thanks for all the work you do.
Pretty weird that the two systems are not similar, if not identical. Thanks for all the work you do.
At one point they were fairly similar, but later they diverged in architecture. They are coming closer to each other but still different enough.
Surprisingly, once I worked out the network code, a lot less than I expected needed to change. I decided rather than trying to maintain two separate but very similar code bases, I integrated MiLB.TV support into MLBviewer library and mlbviewer executable. I have created separate milblistings.py and milbplay.py because I knew you would be more likely to use these over mlbviewer given what you've told me about how you use mlblistings and mlbplay.
EDIT: Use milblistings.py to find the game you want. Event-id's are not really used in MiLB.TV. Instead, the content-id's are published directly in the listings and these are used. So milblistings.py will have a C: column in place of the E: column. Similarly, milbplay will require both v=<teamcode> to select a game, but a c=<content-id> can be used to select specific game in the case of double-headers.
SVN revision 480: MiLB.TV support integrated into mlbviewer
Rather than forking the rewrite of mlbviewer to restore support for MiLB.TV, I have integrated MiLB.TV support into mlbviewer itself.
Here's what you need to know:
MiLB.tv support assumes you are using the same email and password as mlbviewer (if you do not, let me know, and I'll expand the config file for milb.tv credentials)
'M' (capital m) key to open MiLB.TV listings (MILBTV action if you customize keybindings)
MiLB.TV only supports one non-nexdef video and only one speed (1000K). Nexdef, coverage (home/away), and speed settings are not used in MiLB.TV mode.
L (lowercase) will return you to MLB.TV mode
Features that work in MiLB.TV mode: live and archived streaming video, box scores, line scores
Features that don't work in MiLB.TV mode: jump to innings, audio, condensed games, highlights, etc (most of these are limitations of MiLB.TV itself.)
Master scoreboard is not supported in MiLB.tv mode - use the L key to return to MLB.com listings before opening master scoreboard.
Some features may just work because I've tried to keep things as similar as possible. Favorite team highlighting should work (find the teamcode as the three letter code in the game id of milblistings.py or from the 'z' key debug.)
Please report any oddities or inconsistencies created with milb.tv integration. MLB.TV is and always will be the primary focus of mlbviewer and the introduction of milb.tv should not break MLB.TV.
EDIT: Line scores and box scores are now supported for MiLB.TV. Master scoreboard, standings, highlights, RSS are not supported yet. Of those, only RSS is likely to get fixed for MiLB.TV support.
Dangit! Just uploaded Sourceforge 5 and already two downloads.
Rather than re-package 5, I uploaded a 2013-sf-6.
New in sf-6:
- Added milb_user= and milb_pass= config options in case milb.tv user and pass are different than mlb.tv user and pass. If they are the same, you don't need to specify milb_user and milb_pass. user= and pass= will be used.
- Added an MiLB-HELP file
I hope I'm done uploading Sourceforge releases for now. I was feeling really annoyed by my lazy limitation of user= and pass= having to be the same between the two products so I needed to fix it for the official download.
By the way, doing an SVN up will get you sf-6 which is SVN rev 490 but will have a version string of 2013rev491+ in the SVN code.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.