LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-08-2011, 03:22 PM   #3346
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Quote:
Originally Posted by kweisen View Post
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.
 
Old 05-08-2011, 09:15 PM   #3347
kweisen
Member
 
Registered: May 2006
Location: Englewood, Fl
Distribution: MInt 17
Posts: 57

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
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.
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.
 
Old 05-08-2011, 10:17 PM   #3348
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by kweisen View Post
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.
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.
 
Old 05-09-2011, 06:41 PM   #3349
kweisen
Member
 
Registered: May 2006
Location: Englewood, Fl
Distribution: MInt 17
Posts: 57

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

Again, thanks for the work you put into this.
 
Old 05-09-2011, 06:55 PM   #3350
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
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?
 
Old 05-09-2011, 06:56 PM   #3351
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
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.
 
Old 05-09-2011, 07:00 PM   #3352
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
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.
 
Old 05-10-2011, 04:38 AM   #3353
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Revision 302: Sourceforge release

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.
 
Old 05-13-2011, 05:37 PM   #3354
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
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.
 
Old 05-13-2011, 08:36 PM   #3355
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
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.
 
Old 05-13-2011, 11:37 PM   #3356
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Wolfvorkian View Post
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.
 
Old 05-14-2011, 01:14 AM   #3357
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
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.
 
Old 05-14-2011, 04:32 AM   #3358
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Wolfvorkian View Post
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.
 
Old 05-14-2011, 11:36 AM   #3359
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
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).
 
Old 05-14-2011, 12:34 PM   #3360
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

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


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 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 09:34 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