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 made these edits to mlbviewer.py and also got the URL error:
File "/home/kweisen/nexdef2010/MLBviewer/mlbtv.py", line 1466, in url
raise Exception,self.error_str
Exception: Stream URL not found in reply. Stream may not be available yet.
Definitely a lot closer.
I've also upgraded to svn 275.
I'm not sure if it's relevant, because I did not try this previously, but on my Fedora linux, where I made these edits, I can see the condensed video version of previous games. On my Ubuntu, where I did not make these edits, I get a parser error.
275?
Please try 295. You can keep this version that you're hacking away at by checking out to a different directory:
Code:
$ mkdir official
$ cd official
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/branches/nexdef2010 nexdef2010
You will get that stream url error when the session key is not present.
Please try 295. You can keep this version that you're hacking away at by checking out to a different directory:
Code:
$ mkdir official
$ cd official
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/branches/nexdef2010 nexdef2010
You will get that stream url error when the session key is not present.
Sorry, my mistake - I am at 295.
Put back in the lines for session key and back to the ftmu error:
File "mlbviewer.py", line 1613, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1303, in mainloop
u = g.url()
File "/home/kweisen/nexdef2010/MLBviewer/mlbtv.py", line 1428, in url
'sessionKey': urllib.unquote(self.cookies['ftmu']),
KeyError: 'ftmu'
I worked outside all day so too tired to 'play' with this tonight. But will keep trying. Thanks for your help.
Put back in the lines for session key and back to the ftmu error:
File "mlbviewer.py", line 1613, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1303, in mainloop
u = g.url()
File "/home/kweisen/nexdef2010/MLBviewer/mlbtv.py", line 1428, in url
'sessionKey': urllib.unquote(self.cookies['ftmu']),
KeyError: 'ftmu'
I worked outside all day so too tired to 'play' with this tonight. But will keep trying. Thanks for your help.
I spent the $20 and bought a gameday audio subscription with a different email address. I think there's enough of you audio only users having problems that if I fix this, a small $5 donation from each of you could pay for my extra account.
I checked in revision 296 which has an experimental "fix" for both the subject and sessionKey portions of the request. Either the subject doesn't matter that much or it hasn't been a problem for others but it seems the subject should be MLBCOM_GAMEDAY_AUDIO rather than LIVE_EVENT_COVERAGE. As for the sessionKey, if I don't have one, I send a blank sessionKey in the request. No guarantees that this will fix it, but at least you'll have a different error than 'ftmu' now if it doesn't.
If this does fix it, please consider a donation. If it doesn't, please try the following:
Code:
$ test/gdaudio.py 14-287403-2011-05-08 14407907 | tee /tmp/mlb.log
Please post the contents of /tmp/mlb.log to pastebin.com and post the pastebin url here. This is much easier than trying to read logs directly on LQ.
I spent the $20 and bought a gameday audio subscription with a different email address. I think there's enough of you audio only users having problems that if I fix this, a small $5 donation from each of you could pay for my extra account.
I checked in revision 296 which has an experimental "fix" for both the subject and sessionKey portions of the request. Either the subject doesn't matter that much or it hasn't been a problem for others but it seems the subject should be MLBCOM_GAMEDAY_AUDIO rather than LIVE_EVENT_COVERAGE. As for the sessionKey, if I don't have one, I send a blank sessionKey in the request. No guarantees that this will fix it, but at least you'll have a different error than 'ftmu' now if it doesn't.
If this does fix it, please consider a donation. If it doesn't, please try the following:
Code:
$ test/gdaudio.py 14-287403-2011-05-08 14407907 | tee /tmp/mlb.log
Please post the contents of /tmp/mlb.log to pastebin.com and post the pastebin url here. This is much easier than trying to read logs directly on LQ.
daftcat:
YOU ARE THE MAN! It works!
Thanks for your work on this. I've been meaning to make a donation for a while now anyway to support all the effort you put into this. As soon as I get my paypal updated (imagine, they actually want money), it will be on its way.
Quick question. Trying to use test/mlbgame.py to no avail:
Code:
theophile@monkey:~/Desktop/Downloads/nexdef2010/test$ ./mlbgame.py 14-287416-2011-05-09 14408155
These are the cookies we have received so far :
0 : <Cookie SESSION_1= for .mlb.com/>
1 : <Cookie appacc=mlb for .mlb.com/>
2 : <Cookie fprt=MTMwNDk4NDU5MTM5MHxlbWFpbC1wYXNzd29yZHw4aFhIcWVHR0l0QmVCaWQxeWxUK3RTcFdXY0U9 for .mlb.com/>
3 : <Cookie ipid=8820296 for .mlb.com/>
Here are the headers of the page :
Server: Oracle-iPlanet-Web-Server/7.0
Date: Mon, 09 May 2011 23:53:41 GMT
Content-type: text/html;charset=ISO-8859-1
Set-cookie: SESSION_1=; Domain=.mlb.com; Path=/
Transfer-encoding: chunked
These are the cookies we have received so far :
0 : <Cookie SESSION_1= for .mlb.com/>
1 : <Cookie appacc=mlb for .mlb.com/>
2 : <Cookie fprt=MTMwNDk4NDU5MTM5MHxlbWFpbC1wYXNzd29yZHw4aFhIcWVHR0l0QmVCaWQxeWxUK3RTcFdXY0U9 for .mlb.com/>
3 : <Cookie ipid=8820296 for .mlb.com/>
Traceback (most recent call last):
File "./mlbgame.py", line 191, in <module>
raise Exception,page
Exception:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link href="/style/global.css" rel="stylesheet" type="text/css"/>
<link href="/style/mlb.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
body {background:#fff;}
.errorBlock {width:600px; margin:50px auto; font:normal 16px Arial,Helvetica,sans-serif; text-align:center;}
.errorBlock h1 {font:normal 32px Arial,Helvetica,sans-serif; color:#999; }
</style>
<script type="text/javascript">
var isBeta=false;
function tailErrors() {var win=window.open("/core/taillogs.jsp?b="+isBeta+"#bottom","","status=0, statusbar=0, location=0, directories=0, resizeable=1, resizable=1, scrolling=1, scroll=1, scrollbars=1, height=600, width=800");}
</script>
</head>
<body>
<form action="#" onsubmit="return false">
<div class="errorBlock">
<a href="http://mlb.mlb.com/index.jsp"><img src="/images/logo_mlb_lg.gif" width="370" height="90" border="0" alt="MLB.com" /></a>
<p><strong>We are sorry, but you have reached this page in error.</strong></p>
<p>Please try the action again and, if the problem continues, contact Customer Service.</p>
</div>
</form>
</body>
</html>
So with the latest revision, does this cover it now for the basic and gameday audio? If so, please do the following:
Quote:
$ grep Paypal README
and consider making a donation for my time and effort.
I am shifting my focus now to Nexdef and hope to have that completed by the end of the month.
I will also check in this current revision into the mlbviewer trunk, update the sourceforge release, and create a new nexdef2011 branch. I will let you know when all of this happens.
Quick question. Trying to use test/mlbgame.py to no avail:
Code:
theophile@monkey:~/Desktop/Downloads/nexdef2010/test$ ./mlbgame.py 14-287416-2011-05-09 14408155
These are the cookies we have received so far :
0 : <Cookie SESSION_1= for .mlb.com/>
1 : <Cookie appacc=mlb for .mlb.com/>
2 : <Cookie fprt=MTMwNDk4NDU5MTM5MHxlbWFpbC1wYXNzd29yZHw4aFhIcWVHR0l0QmVCaWQxeWxUK3RTcFdXY0U9 for .mlb.com/>
3 : <Cookie ipid=8820296 for .mlb.com/>
Here are the headers of the page :
Server: Oracle-iPlanet-Web-Server/7.0
Date: Mon, 09 May 2011 23:53:41 GMT
Content-type: text/html;charset=ISO-8859-1
Set-cookie: SESSION_1=; Domain=.mlb.com; Path=/
Transfer-encoding: chunked
These are the cookies we have received so far :
0 : <Cookie SESSION_1= for .mlb.com/>
1 : <Cookie appacc=mlb for .mlb.com/>
2 : <Cookie fprt=MTMwNDk4NDU5MTM5MHxlbWFpbC1wYXNzd29yZHw4aFhIcWVHR0l0QmVCaWQxeWxUK3RTcFdXY0U9 for .mlb.com/>
3 : <Cookie ipid=8820296 for .mlb.com/>
Traceback (most recent call last):
File "./mlbgame.py", line 191, in <module>
raise Exception,page
Exception:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link href="/style/global.css" rel="stylesheet" type="text/css"/>
<link href="/style/mlb.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
body {background:#fff;}
.errorBlock {width:600px; margin:50px auto; font:normal 16px Arial,Helvetica,sans-serif; text-align:center;}
.errorBlock h1 {font:normal 32px Arial,Helvetica,sans-serif; color:#999; }
</style>
<script type="text/javascript">
var isBeta=false;
function tailErrors() {var win=window.open("/core/taillogs.jsp?b="+isBeta+"#bottom","","status=0, statusbar=0, location=0, directories=0, resizeable=1, resizable=1, scrolling=1, scroll=1, scrollbars=1, height=600, width=800");}
</script>
</head>
<body>
<form action="#" onsubmit="return false">
<div class="errorBlock">
<a href="http://mlb.mlb.com/index.jsp"><img src="/images/logo_mlb_lg.gif" width="370" height="90" border="0" alt="MLB.com" /></a>
<p><strong>We are sorry, but you have reached this page in error.</strong></p>
<p>Please try the action again and, if the problem continues, contact Customer Service.</p>
</div>
</form>
</body>
</html>
Am I doing something wrong?
No. Remove the mlbcookie.lwp file. You can also edit this script and just below the "COOKIEFILE = os.blahblahblah " line, add this line:
Code:
os.remove(COOKIEFILE)
It seems like trying to re-use the cookie is no longer a good idea. I will continue to write the cookie file in case we need to debug cookie issues, but I'll be adding this cookie removal code prior to each login attempt in mlbviewer and all the test scripts.
The latest nexdef2010 revision (296?) has been merged onto the trunk and is now available for download via svn as revision 302 and also available through Sourceforge.
You can check it out from svn with the following (please do this outside of your nexdef2010 directory):
Code:
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer
A new nexdef2011 branch will be created in the next few days. This will contain some changes I've been playing around with (mostly a reorganization of the library code) as well as a config file option to use librtmp in mplayer directly rather than piping through rtmpdump/flvstreamer. Also, nexdef2011 will contain any new code to support Nexdef for 2011.
To summarize:
1. nexdef2010 branch is now mlbviewer trunk. Any basic service and gameday audio bug fixes will be committed to the trunk. No new functionality will be committed to the trunk (until nexdef support is finished.)
2. nexdef2010 branch is being frozen. Nothing new will be checked into this branch.
3. In a few days, you will have a choice to make. You can either check out the trunk and remain on the trunk for bug fixes only. Or you can check out the nexdef2011 branch when it becomes available and pick up any new functionality including Nexdef support for 2011.
There will be more messages like this as nexdef2011 branch becomes available.
Has anyone checked out from the new mlbviewer trunk (or downloaded from sourceforge) and verified it is working?
PS New nexdef2011 branch coming this weekend. Nexdef2010 branch will be frozen completely. Not even bug fixes will be checked into it.
I tried it but reverted back to nexdef293 because I was having the same issues of mplayer locking up or nothing playing in it all. Prior to 293, I believe I was having the same mplayer problems with both mlbviewer and nexdef.... I'm fuzzy memory-wise on this.
I tried it but reverted back to nexdef293 because I was having the same issues of mplayer locking up or nothing playing in it all. Prior to 293, I believe I was having the same mplayer problems with both mlbviewer and nexdef.... I'm fuzzy memory-wise on this.
That's strange because there has been no change in the media handling code at all this season. Any variations you see between revisions is likely coincidental and even more likely all on MLB.TV's end. You're saying 293 works but nothing older or newer? I'll have a look into 293 this weekend.
That's strange because there has been no change in the media handling code at all this season. Any variations you see between revisions is likely coincidental and even more likely all on MLB.TV's end. You're saying 293 works but nothing older or newer? I'll have a look into 293 this weekend.
Sorry to be so vague but I've had a lot of problems using any version of Mlbviewer this year. Nexdef293 has worked best. I too suspect that "revisions is likely coincidental and even more likely all on MLB.TV's end." I'll try Mlbviewer out tomorrow again on some live streams and if I still have the same luck as today and I'll get back with a report hopefully with more detail.
Sorry to be so vague but I've had a lot of problems using any version of Mlbviewer this year. Nexdef293 has worked best. I too suspect that "revisions is likely coincidental and even more likely all on MLB.TV's end." I'll try Mlbviewer out tomorrow again on some live streams and if I still have the same luck as today and I'll get back with a report hopefully with more detail.
Have you been trying to use Nexdef (the plugin)? Because I haven't had much luck since last year with it since they switched to a proxy interface. I'm in exploratory mode right now to see if I can improve on mlbviewer's Nexdef support.
Also, if you're willing to build the latest mplayer from source, nexdef2011 branch will have the option to use mplayer's built-in libRTMP. VLC would probably work too since that code is really in the FFmpeg base. But building VLC from source is such a pain that I can't test that unless there's a recent VLC binary that has it built-in.
Does anyone know what revision of mplayer added librtmp?
Also, in case anyone's interested, I've been helping test an in-the-works MLB.TV plugin for XBMC, based on mlbviewer. We finally have it working for live games, so if you use XBMC, check it out here (scroll down to the last post on that page).
Does anyone know what revision of mplayer added librtmp?
Also, in case anyone's interested, I've been helping test an in-the-works MLB.TV plugin for XBMC, based on mlbviewer. We finally have it working for live games, so if you use XBMC, check it out here (scroll down to the last post on that page).
It's actually in ffmpeg and I can't say what revision. But I've been upgrading my Ubuntu from 9.04 to 11.04 and each mplayer binary has librtmp but it doesn't work correctly unless I build it from source.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.