LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 05-16-2013, 06:05 PM   #4066
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76

Quote:
Originally Posted by BostonPeng View Post
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.)
 
Old 05-17-2013, 03:52 AM   #4067
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by icelancer View Post

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.
 
Old 05-17-2013, 05:02 AM   #4068
icelancer
LQ Newbie
 
Registered: May 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
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
 
Old 05-17-2013, 09:28 AM   #4069
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
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.
 
Old 05-17-2013, 02:21 PM   #4070
chrisVV
Member
 
Registered: Aug 2010
Posts: 110

Rep: Reputation: 1
Quote:
Originally Posted by BostonPeng View Post
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.
 
Old 05-17-2013, 03:03 PM   #4071
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Quote:
Originally Posted by chrisVV View Post
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.
 
Old 05-17-2013, 05:19 PM   #4072
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by BostonPeng View Post
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.
 
Old 05-17-2013, 05:33 PM   #4073
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by icelancer View Post
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.
 
Old 05-18-2013, 09:53 AM   #4074
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
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.
My *_players are set this way:
Quote:
top_plays_player=mplayer2 -cache 64 -really-quiet
video_player=mplayer2 -cache 2048 -really-quiet
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!
 
Old 05-20-2013, 02:15 AM   #4075
icelancer
LQ Newbie
 
Registered: May 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
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.
 
Old 05-20-2013, 03:26 AM   #4076
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by icelancer View Post
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.

Last edited by daftcat; 05-20-2013 at 03:52 AM.
 
Old 05-20-2013, 03:46 AM   #4077
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
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:
  1. 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)
  2. 'M' (capital m) key to open MiLB.TV listings (MILBTV action if you customize keybindings)
  3. 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.
  4. L (lowercase) will return you to MLB.TV mode
  5. Features that work in MiLB.TV mode: live and archived streaming video, box scores, line scores
  6. 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.)
  7. 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.

Last edited by daftcat; 05-20-2013 at 11:50 AM.
 
Old 05-20-2013, 02:24 PM   #4078
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Sourceforge release 5 has been uploaded

Being able to retire milbviewer was good enough reason to integrate MiLB and deserves a new Sourceforge release.

New in sf5:

- MiLB.tv integration
- RSS defaults to favorite= team
 
Old 05-20-2013, 03:31 PM   #4079
icelancer
LQ Newbie
 
Registered: May 2013
Posts: 13

Rep: Reputation: Disabled
Awesome!
 
Old 05-20-2013, 05:07 PM   #4080
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Sourceforge release 6

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.

Now back to bug fixes.
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 11:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM


All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration