LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-23-2008, 12:28 AM   #856
cnystrom
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0

Quote:
Originally Posted by daftcat View Post
When you say it doesn't connect, where does it fail? Does it retrieve the listings? Does it authenticate and retrieve a media url? Is mplayer failing to connect to the media stream? Is mplayer installed?

If you can browse the web, I wouldn't expect it to fail until it launches mplayer. If it's mplayer that's not connecting, then you need to find out if mplayer supports proxies and how to configure that in either your mplayer configuration file (I'm away from my home pc so I can't tell you which file that is) or the command-line via the video_player line in your $HOME/.mlb/config. If it's failing on the listings, I would try updating or reinstalling your python. Use 2.5 or later.
I am getting the listing. I believe the issue is with the mplayer proxy support. mplayer supports the http_proxy environment variable. I believe the problem is that mplayer is not being passed an http URL, but instead is being passed an mms URL and thus does not invoke its own proxy support.
 
Old 08-23-2008, 03:04 AM   #857
cnystrom
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by cnystrom View Post
I am getting the listing. I believe the issue is with the mplayer proxy support. mplayer supports the http_proxy environment variable. I believe the problem is that mplayer is not being passed an http URL, but instead is being passed an mms URL and thus does not invoke its own proxy support.
According to this:

http://bugzilla.mplayerhq.hu/show_bug.cgi?id=225

The MMS protocol does not work through an http proxy as it is a UDP protocol, and instead mplayer needs to fallback to mmshttp protocol, but it is apparently a very low priority enhancement.

I wonder if mlb.tv even has mmshttp support? I assume it does because mlb.tv works on windows boxes through the http firewall. I wonder if mlbviewer could have an option to convert URLs from mms to mmshttp?
 
Old 08-24-2008, 04:19 PM   #858
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
Quote:
from official forum of mlb.tv:
"I have just been informed that MLB.TV Premium subscribers will be able to choose to watch either Home or Away video feeds in September"
What about mlbviewer and that?
 
Old 08-25-2008, 01:06 AM   #859
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by lephio View Post
What about mlbviewer and that?
Depends on how they implement it. We'll when it's here. It may be do-able, it may not, and it will very likely break us until I figure out how to handle it.
 
Old 08-26-2008, 08:18 AM   #860
redseventyseven
LQ Newbie
 
Registered: May 2008
Posts: 16

Rep: Reputation: 0
Just dropping by to say I am still avidly using the mlbviewer program and still very very happy with it, though there's one feature which I'd like to request.

Is it possible to change the behaviour so that when you return from the top plays screen to the listings, the highlight stays with the game you were on before instead of returning to the top of the list?

thanks!
 
Old 08-28-2008, 12:23 PM   #861
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by redseventyseven View Post
Just dropping by to say I am still avidly using the mlbviewer program and still very very happy with it, though there's one feature which I'd like to request.

Is it possible to change the behaviour so that when you return from the top plays screen to the listings, the highlight stays with the game you were on before instead of returning to the top of the list?

thanks!
I could do that. It will be awhile. I'm still on vacation.
 
Old 09-05-2008, 01:46 AM   #862
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by redseventyseven View Post
Just dropping by to say I am still avidly using the mlbviewer program and still very very happy with it, though there's one feature which I'd like to request.

Is it possible to change the behaviour so that when you return from the top plays screen to the listings, the highlight stays with the game you were on before instead of returning to the top of the list?

thanks!
Now I remember why I don't do that. There's a lot of re-used GUI code and the current_cursor variable is the same whether it's a listings screen, a top plays screen, or a bookmarks screen. If one of these screens had more lines than the one it was returning to, there would be an index error.

I would say rather than adding even more if-else code (we're already getting pretty ugly on that front), I'll save it for the new architecture which I plan to have ready for next Spring Training (it will be my off-season project.) I doubt they'll roll out anything new until the actual season starts. After all, why try out new prospects and additions in Spring Training with the rest of MLB when you can wait til Opening Day to really piss things up?

[The new architecture will use panels--a curses data structure--to manage each of the screens as separate entities which can keep state even when not the current screen on display. Functionally, you'll see no difference--well, maybe a small speed performance as there will be less code branches to navigate--but code-wise, it will be a lot easier to manage and add new screens--like if I ever decide to pull in the work I once did on a scoreboard applet or maybe a pitching match-up screen or something...]

Last edited by daftcat; 09-05-2008 at 01:48 AM.
 
Old 09-09-2008, 12:32 AM   #863
yakyu
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
clickable linescores

Hi,

I am not currently a subscriber to MLBtv, but I have been watching the free archives for a long time now. Recently, they seemed to have blocked the access of the archives except through the new clickable linescores; from the scoreboard page, this new feature allows you to watch the game half inning by half inning (this does not require a subscription, paid or otherwise). This gives the added benefit of being able to skip the "commercial" breaks.

Anyway, I was wondering what the chances are that you would be able integrate this new feature into mlbviewer, similar to the top plays function? This would allow all of us non-subscribers to still access the archived games through linux/mlbviewer, without having to use silverlight.

Thanks for all of your work on the program!!
 
Old 09-10-2008, 12:24 AM   #864
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by yakyu View Post
Hi,

I am not currently a subscriber to MLBtv, but I have been watching the free archives for a long time now. Recently, they seemed to have blocked the access of the archives except through the new clickable linescores; from the scoreboard page, this new feature allows you to watch the game half inning by half inning (this does not require a subscription, paid or otherwise). This gives the added benefit of being able to skip the "commercial" breaks.

Anyway, I was wondering what the chances are that you would be able integrate this new feature into mlbviewer, similar to the top plays function? This would allow all of us non-subscribers to still access the archived games through linux/mlbviewer, without having to use silverlight.

Thanks for all of your work on the program!!
Short answer:

Not going to happen this season.

Long answer:

Clickable linescores come from XML pages we don't parse. XML is a pain in the butt because the syntax is fast and loose. In fact, XML is pretty much a build your own syntax language. This means you have to tell python how to translate someone else's syntax into a data structure. Trust me! It's a huge pain.

By contrast, mlbviewer uses JSON which has a much stricter syntax and very easily translates into python data structures with the simplejson package.

HTML pages, basically anything you see on mlb.com is completely out of the question. MLB.com's HTML is a rat nest of javascript, CSS, tables, and all kinds of crap that makes XML seem like a walk in the park. I'd have to write a browser class that would translate all that markup into python data structures. I sooner see Kansas City winning the AL Central before I try to parse mlb.com web pages into python data structures.

Sorry. It's probably pretty cheap now to buy the rest of the season.
 
Old 09-11-2008, 06:16 PM   #865
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
home and away video feeds for premium customers

Good news is the way they implemented it won't break current mlbviewer code.

Bad news is that I have to decide how I'm going to support it. I'm leaning towards a video_follow feature to work the same way as the audio_follow feature.

As an added bonus, I'm also looking into a radio_follow feature for supporting the alternate audio feeds such as spanish language stations.

I'll try to have something ready for the video_follow for Monday's games, if not sooner.

Last edited by daftcat; 09-11-2008 at 06:17 PM.
 
Old 09-15-2008, 02:49 AM   #866
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Not going to happen anytime soon

Quote:
Originally Posted by daftcat View Post
Good news is the way they implemented it won't break current mlbviewer code.

Bad news is that I have to decide how I'm going to support it. I'm leaning towards a video_follow feature to work the same way as the audio_follow feature.

As an added bonus, I'm also looking into a radio_follow feature for supporting the alternate audio feeds such as spanish language stations.

I'll try to have something ready for the video_follow for Monday's games, if not sooner.
Work's picked up so I'm not going to do any new development. Only bug fixes.

Anyway, mlbtv isn't consistent about which games have dual coverage. Nor are they consistent about how they identify the alternate stream (other than TV station call letters.)

Maybe if they're serious about it, next year's implementation will be more consistent.

In the meantime, if you want to view an alternate stream, visit the mlb.tv listings page and mouse over the listing you want to view. You're looking for the part that says "w_id: 123456" The w_id is the stream identifier. Use the mlbgameid.py script packaged in the test directory to watch the stream by stream id.

For example, to watch the stream with w_id: 123456

Code:
python test/mlbgameid.py 123456
A whole lot of debug output and raw html page output will fly by and eventually, it will connect to the requested stream (assuming there's no trouble with the stream at the media server.)

Also, I apologize if anyone's games were below the scrolling point on Saturday. We never anticipated a day with 20 games scheduled. To implement proper scrolling (and not just that hack I put into bookmarks) will take a redesign that I'll do in the off-season. If you're game was below the fold (the point where scrolling would break mlbviewer), you can use the method above to find your stream ID and use the mlbgameid.py tool to watch that game.
 
Old 09-16-2008, 03:04 AM   #867
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
i upgraded to svn 100, what's new?

welcome back everybody!
 
Old 09-17-2008, 12:11 AM   #868
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by lephio View Post
i upgraded to svn 100, what's new?

welcome back everybody!
Added debug code just for me.

Pressing 'z' on a listing will dump the data structure for the listing. This isn't something I'm going to document (but I guess I just did.)

I guess I should roll up 100 into an official release. It might be the last until the off-season re-design.
 
Old 09-19-2008, 02:01 PM   #869
Teleute
Member
 
Registered: Mar 2005
Posts: 62

Rep: Reputation: 16
*sigh* Nearly three months since this stopped working for me - I haven't been able to watch more than 2 minutes of a game since. I understand that it's probably not a problem with mlbplayer, but just in case anyone has had a similar problem that they were able to solve, I'm posting here again.

Basically, everything used to work perfectly for me. But, since the beginning of July, I just can't watch any games! I connect, it finds the stream, it launches the player, it plays for a minute or two, and then dies. I've tried both speeds, I've tried mplayer and vlc, I've tried updating everything I could update, and nothing makes a difference at all.

In mplayer, if I leave the screen small so that I can see the terminal window behind it, I see an error flash by saying something about "cannot read" and "resource temporarily unavailable".

In vlc, I get errors right at the beginning "access_mms access error: error while asking for file -1" and "access_mms access error: cannot read file". It then seems to play out the buffer and freeze.

Another strange thing is that I can't seem to play the game using the test script. (in the /test/ dir) I find the game id, and enter the command as shown in the README. It gives me all the HTML from the login, and then it stops. Doesn't try to launch the video or anything.

Other factors of note: this is a machine with a wired connection. My windows laptop which connects wirelessly through the same router has no issues playing the games (except that logistically, I really can't do that, which is why I really want it to work on the *nix box).

I know earlier someone had suggested optimizing mplayer, or something, but I have to admit I have no idea how to do that, and googlefu has not been useful. Also, is that still a likely fix when it fails so epically on vlc, too?

Thank you so much to anyone that has any suggestions...
 
Old 09-21-2008, 12:35 AM   #870
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Been an excellent year baseball/linux wise due to mainly straycat and Jesse. Others helped a lot too. The fellow who suggested using Firebug to find the url and the guy who wrote the greasemonkey script and probably others who I'm missing, my apologies to whoever I may have neglected to mention.

Probably next year on the first day of the season we'll need help again and will be pleading for someone to descramble the mess MLB once again has shoved our way. Hopefully we can meet here again on opening day and straycat or a protege will be able foil their efforts.

Suggestion I've got is for daftcat to post a palpal number or someway we can all send him a few bucks to show our appreciation for such a marvelous little program. You know something like $5-$25 apiece; enough for him to have a bad head-ache after a night on the town from his MLBViewer admirers or a real good seat at a game next year or a cheap whore should that be his thing. Thanks again.
 
  


Reply

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



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 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:25 PM.

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
Open Source Consulting | Domain Registration