LinuxQuestions.org
Help answer threads with 0 replies.
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 09-21-2008, 11:45 PM   #871
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Quote:
Originally Posted by Teleute View Post
*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...
Optimizing for mplayer isn't a bad idea even if you do use vlc. The mplayer guys were some of the first to really do high quality multimedia on linux. They documented optimization settings like MTRR which would benefit just about any multimedia player even games.

You can check if it's a network issue by exploring the -dumpstream option. Read the documentation on mplayer's website. Run it for a few minutes. If that produces a playable file, then you probably have to tweak your buffer or playback settings. I would stick with mplayer mostly because there are many more settings you can tweak to test different settings.
 
Old 09-21-2008, 11:47 PM   #872
Teleute
Member
 
Registered: Mar 2005
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
You can check if it's a network issue by exploring the -dumpstream option. Read the documentation on mplayer's website. Run it for a few minutes. If that produces a playable file, then you probably have to tweak your buffer or playback settings. I would stick with mplayer mostly because there are many more settings you can tweak to test different settings.
Awesome...thanks! I'll give that a try.
 
Old 09-22-2008, 12:08 AM   #873
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Wolfvorkian View Post
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.
Oooh! I like this idea. With enough donations, maybe I can wake up with a bad head-ache in a real good seat at a game like this guy:

http://www.youtube.com/watch?v=kdnImqDmLqk

You guys don't have to, but I won't turn it away either. You can send donations of appreciation via paypal to my email address, straycat000@yahoo.com.

Thanks to you guys. Your continued feedback and testing has improved mlbviewer far beyond what I would have found useful and necessary. I plan to make continued off-season improvements so be sure to subscribe to this thread.
 
Old 09-26-2008, 06:29 PM   #874
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
anybody knows ho to mute just one of two mplayer opened with mlbviewer?

if i press "m" on a window, it mutes each of two windows! (i'd like to see and listen the Twins on a big window and at the same time keep an eye to the white sox..)
 
Old 09-27-2008, 05:16 AM   #875
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by lephio View Post
anybody knows ho to mute just one of two mplayer opened with mlbviewer?

if i press "m" on a window, it mutes each of two windows! (i'd like to see and listen the Twins on a big window and at the same time keep an eye to the white sox..)
Hmm, I wonder if it's because Linux manages the sounds globally instead of on a per application basis because this works in Windows. You could try using the '9' and '0' keys to reduce the volume. But it may just reduce the global volume instead of an application volume. Are you using alsa? oss? esd?
 
Old 09-30-2008, 03:20 AM   #876
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
that's an extremely urgent feature!

this is the problem. Here in italy i usually watch games in the (italian) morning, so "the day after". Now during the playoffs is extremely important to start the listings in the last day i'm "up-to-date". Just to be not spoilered.

And it's urgent because tonight Twins will play the "playoff game" and tomorrow in the morning i don't want to be spoilered like today without watching DET@CWS game. (listings begin with MIN@CWS)

Can you put a "start date" on config file? Or any other cool idea?
 
Old 09-30-2008, 11:37 PM   #877
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by lephio View Post
that's an extremely urgent feature!

this is the problem. Here in italy i usually watch games in the (italian) morning, so "the day after". Now during the playoffs is extremely important to start the listings in the last day i'm "up-to-date". Just to be not spoilered.

And it's urgent because tonight Twins will play the "playoff game" and tomorrow in the morning i don't want to be spoilered like today without watching DET@CWS game. (listings begin with MIN@CWS)

Can you put a "start date" on config file? Or any other cool idea?
I'm probably not going to get to this feature before the off-season is over. Today was a special circumstance. But from here on out, there will be at least one off day between series. The only spoilers I can think of from here on out would be if you were expecting a game 4 and the team swept in three, then you might figure out that game 4 wasn't needed before you get a chance to watch game 3.

I might be able to get this done over the weekend but right now I'm too busy with taking work home. :-( I'm on a tight schedule. I'll see what I can this weekend.
 
Old 10-02-2008, 04:45 AM   #878
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
The only spoilers I can think of from here on out would be if you were expecting a game 4 and the team swept in three, then you might figure out that game 4 wasn't needed before you get a chance to watch game 3.
This is *exactly* what i mean for "spoiler". From game 3+ i can be spoilered everyday!!!

In 2006 i spoilered the world series in this way!!!

Quote:
I'll see what I can this weekend.
ok.. thanks in advance!
 
Old 10-03-2008, 12:34 AM   #879
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by lephio View Post
This is *exactly* what i mean for "spoiler". From game 3+ i can be spoilered everyday!!!

In 2006 i spoilered the world series in this way!!!



ok.. thanks in advance!
Work hit a snag so I gave it a go.

I checked in some code into svn that should work but test it out and report any bugs or errors.

I started initial support for name=value arguments but right now the only supported name is startdate.

If you specify a startdate in mm/dd/yy format as:

Code:
matthew@tango:~/mlbtv/svn/mlbviewer$ ./mlbviewer.py startdate=06/02/08
the listings will begin on my birthday (paypal donations are accepted next year .)

If you don't specify any name=value arguments, the listings will start on the current day just like they always have.

I should have the exceptions handled like using an invalid name (foo=06/02/08) or an invalid value (startdate=foo/bar/moo) but you're welcome and encouraged to test these for me and report any errors.

P.S. I made an official release of 0.1alpha8 last weekend just to have the most recent features, bookmarking and favorite team highlighting on sourceforge, so this next svn revision should read 0.1alpha8svn in case you notice and wonder.

Last edited by daftcat; 10-03-2008 at 12:36 AM.
 
Old 10-04-2008, 05:10 AM   #880
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
aaaaaaaaaah!!!!!!! GREAT JOB MAN!!! it works!!!!

thanks a lot.
 
Old 10-05-2008, 10:28 PM   #881
fancyclown
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Rep: Reputation: 0
osx

Hi! Found this awesome thing today and got it working on Leopard, finally fullscreen on secondary monitor (plasma) without the need to boot into Vista!!!!!

My question is, perhaps it have been answered, if it's possible to get the 1.2m streams to work? On mac the Nexdef is available but you can only watch the high quality stream in awful awful Silverlight. Thanks
 
Old 10-05-2008, 11:57 PM   #882
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by fancyclown View Post
Hi! Found this awesome thing today and got it working on Leopard, finally fullscreen on secondary monitor (plasma) without the need to boot into Vista!!!!!

My question is, perhaps it have been answered, if it's possible to get the 1.2m streams to work? On mac the Nexdef is available but you can only watch the high quality stream in awful awful Silverlight. Thanks
No. First, there's no listing for 1200 in the listings page that mlbviewer uses (Hint: we do not parse any html pages so any pages you see on mlb.com are not used by mlbviewer.) Even pulling the stream id from the mlb.com page and using test/mlbgameid.py, there's a protocol for talking with the plugin that mplayer doesn't support. I was able to get it working with Windows Media Player on my XP laptop, but that sounds like it would defeat the purpose. WMP isn't available on osx, is it? Also, I use "working" loosely. It played a few seconds, and then stalled. Then it would play a few more seconds, and then stalled again. I couldn't imagine trying to watch a game like this.

Besides, 800K is beautiful. Also, archive streams aren't available in 1200 so it's pretty much useless now...unless you happen to be one of the lucky SOB's who both lives outside of the blackout region and lives in a timezone where watching the post-season live makes sense.

Anyway, even when I did have mosaic installed, 1200 isn't all it's cracked up to be. It stalled out frequently just like it's doing for me now.
 
Old 10-06-2008, 12:24 AM   #883
fancyclown
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
No. First, there's no listing for 1200 in the listings page that mlbviewer uses (Hint: we do not parse any html pages so any pages you see on mlb.com are not used by mlbviewer.) Even pulling the stream id from the mlb.com page and using test/mlbgameid.py, there's a protocol for talking with the plugin that mplayer doesn't support. I was able to get it working with Windows Media Player on my XP laptop, but that sounds like it would defeat the purpose. WMP isn't available on osx, is it? Also, I use "working" loosely. It played a few seconds, and then stalled. Then it would play a few more seconds, and then stalled again. I couldn't imagine trying to watch a game like this.

Besides, 800K is beautiful. Also, archive streams aren't available in 1200 so it's pretty much useless now...unless you happen to be one of the lucky SOB's who both lives outside of the blackout region and lives in a timezone where watching the post-season live makes sense.

Anyway, even when I did have mosaic installed, 1200 isn't all it's cracked up to be. It stalled out frequently just like it's doing for me now.
Alrighty then, I just wondered because I've been watching the 1200 streams on Vista using this workaround. No stalling for me and yes I do live outside the blackout region and watching live makes sense to me, insomnia is bliss.

Anyway, I really have no idea about the technical stuff behind these kind of things and depend on googling for guides just to get the streams playing, so maybe I should be happy with what I get.... and i am
 
Old 10-07-2008, 01:14 AM   #884
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by fancyclown View Post
Alrighty then, I just wondered because I've been watching the 1200 streams on Vista using this workaround. No stalling for me and yes I do live outside the blackout region and watching live makes sense to me, insomnia is bliss.

Anyway, I really have no idea about the technical stuff behind these kind of things and depend on googling for guides just to get the streams playing, so maybe I should be happy with what I get.... and i am
Here's what you can try.

1. Set your config file for speed=800.
2. Open mlbviewer and highlight your game (don't hit 'a' or 'enter' though.)
3. Instead hit 'z' (without the single-quotes), and you should get the debug output like the following:

Code:
getListings() for current_cursor:
({'home': u'bos', 'away': u'ana'}, datetime.datetime(2008, 10, 6, 17, 37), {u'fi
d': u'mlb_lg800', u'url': u'/2008/mlb_!/mlbam/2008/10/06/mlbtv_anabos_home_800k.
wmv', u'pid': u'mlb_lg', u'mid': u'200810033587133', u'gid': u'2008/10/06/anamlb
-bosmlb-1', u'w_id': u'876568', u'w': u'/2008/mlb_!/mlbam/2008/10/06/mlbtv_anabo
s_home_800k.wmv', u'v': u'3', u'login': u'Y', u'id': u'876568', u'authorization'
: u'Y'}, {u'fid': u'h12', u'url': u'http://web.servicebureau.net/conf/meta?i=111
3065073&c=1234&m=was&u=/w2.xsl', u'pid': u'mlb_ga', u'mid': u'200809293573114',
u'gid': u'2008/10/06/anamlb-bosmlb-1', u'w_id': u'873962', u'w': u'http://web.se
rvicebureau.net/conf/meta?i=1113065073&c=1234&m=was&u=/w2.xsl', u'v': u'2', u'lo
gin': u'Y', u'id': u'873962', u'authorization': u'Y'}, u'F', u'2008/10/06/anamlb
-bosmlb-1')
If the z key doesn't display this, then download the latest mlbviewer from sourceforge. 0.1alpha8 should have this functionality.

4. Yeah, pretty ugly. The fields are u (unformatted) plus the field name. Look for the one the first 'w_id'. Up there, this is 876568.

5a. Add one to it to get 876569. This is the stream id for the 1200 stream.

5b. You can also mouse-over the 1.2M stream on the mlb.com listings page to get see a javascript url such as:

Code:
javascript:void(playMedia2({mid:'200810033587124',w_id:'876562',
w:'/2008/mlb_!/mlbam/2008/10/06/mlbtv_tbacha_home_800k.wmv',
pid:'mlb_lg',gid:'2008/10/06/tbamlb-chamlb-1',
fid:'mlb_lg800',cid:'mlb',v:'3'}))
In this case, you wouldn't add 1. You would just use that w_id. (Except this particular example is the 800k stream since they don't archive the 1.2 so you would add 1 to this w_id.)

6. Use test/mlbgameid.py to select that stream, e.g.

Code:
bash$ test/mlbgameid.py 876569
That should get you that long mms:// url that begins with mms://127.0.0.1:8001 meaning the NexDef plugin. You can try setting your video player to whatever video players you have on OS X. I tested with mplayer and it didn't work. Maybe vlc or one of the OS X specific players will work.

------------

mlbgameid.py is a test script I wrote back when we were having problems with the network code. It was easier to test the network code without all the curses interface. Now it's become a very useful test tool for unsupported features like this. It will produce a ton of output but it should finally end with a line like this:

Code:
The game url parsed is:
mms://a1919.v108691.c10869.g.vm.akamaistream.net/7/1919/10869/v0004
/mlb.download.akamai.com/10869/2008/mlb_!/mlbam/2008/10/06/mlbtv_anabos_home_800k.wmv?
auth=ca.bEbobrcybXc6cidPdKd_bDdmc_cOaJdy-bi6V2E-bA-VfhvmM9x-
lelam7mdmakkmaldl6jhm6kckfkalakelflbm7mhm6kgmalc&
aifp=v0004&ct5=07-Oct-08&ct1=mlb&ct3=12263517&ct7=876568&
ct4=mlb&ct6=76.102.16.234&ct8=1
(I purposely broke up that url which is really one long url so that it doesn't stretch this page making it a pain in the ass to read my responses. )

And the command string for your video_player setting plus any output it produces. In this example, again, I'm using the 800K stream since the 1.2M stream is not archived. The 1.2M stream url will begin with mms://127.0.0.1:8001.

Good luck! If you get it to work on OS X using mlbgameid.py, the NexDef plugin and some video player, let me know which video player.

Thanks!

Last edited by daftcat; 10-07-2008 at 01:26 AM.
 
Old 10-07-2008, 01:21 AM   #885
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
In the 'z' output, there are two w_id's. You want the first one. The second one is for the audio stream. You can tell you have the right one because the next field is 'w' and either ends in .wmv for video or .xsl for audio.
 
  


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