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 did try the suggestion posted by deftcat back on page 208 - rm .mlb/cookie - but get the same error. I have both a fedora and a ubuntu distro and seem to have a similar issue with both.
I finally got the chance to take a closer look at why I can't get this working. I get the same error on both my distro's and I haven't changed the ubuntu since last year. Here's what I'm wondering - with the changes that may have been made by MLB, could it have anything related to I'm only 'Gameday Audio'? When I look at the log in .mlb, I'm getting an html message for "Alert to New Customers: If you would like to watch the video, please purchase the subscription to the right."
Or perhaps I'm doing something wrong in logging in in using the nexdef branch? Should using that still be ok?
I've done a fresh install on my Fedora - not sure what I did wrong but this is what I'm getting:
Traceback (most recent call last):
File "mlbviewer.py", line 1545, 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 1239, in mainloop
u = g.url()
File "/home/kweisen/nexdef2010/MLBviewer/mlbtv.py", line 1289, in url
'sessionKey': urllib.unquote(self.cookies['ftmu']),
KeyError: 'ftmu'
Thanks for any thoughts -
Sorry - I meant to include the above message in the window:
I finally got the chance to take a closer look at why I can't get this working. I get the same error on both my distro's and I haven't changed the ubuntu since last year. Here's what I'm wondering - with the changes that may have been made by MLB, could it have anything related to I'm only 'Gameday Audio'? When I look at the log in .mlb, I'm getting an html message for "Alert to New Customers: If you would like to watch the video, please purchase the subscription to the right."
Or perhaps I'm doing something wrong in logging in in using the nexdef branch? Should using that still be ok?
Please follow the procedure in post # 3216 for providing me a debug log.
I'm pretty sure it's going to fail somewhere because these scripts are meant for video, not audio. However, it also seems like you are failing during login which is even earlier than video stream selection.
At least using this method will show me what the authentication response pages look like.
Please follow the procedure in post # 3216 for providing me a debug log.
I'm pretty sure it's going to fail somewhere because these scripts are meant for video, not audio. However, it also seems like you are failing during login which is even earlier than video stream selection.
At least using this method will show me what the authentication response pages look like.
Thanks!
thanks daftcat for looking at this:
This is from running the script:
[kweisen@localhost nexdef2010]$ test/stdnosoap.py 14-286891-2011-04-2 | tee /tmp/mlb.log
no sessionkey file found.
These are the cookies we have received so far :
0 : <Cookie SESSION_1=wf_flowId%3D%3D%3Dregistration.wizard%7Ewf_c_id%3D%3D%3Dmlb%7Estage%3D%3D%3D3%7EflowId%3D% 3D%3Dregistration.wizard for .mlb.com/>
Traceback (most recent call last):
File "test/stdnosoap.py", line 147, in <module>
cj.save(COOKIEFILE,ignore_discard=True)
File "/usr/lib/python2.7/_LWPCookieJar.py", line 83, in save
f = open(filename, "w")
IOError: [Errno 13] Permission denied: 'mlbcookie.lwp'
And from the file /tmp/mlb.log
no sessionkey file found.
These are the cookies we have received so far :
0 : <Cookie SESSION_1=wf_flowId%3D%3D%3Dregistration.wizard%7Ewf_c_id%3D%3D%3Dmlb%7Estage%3D%3D%3D3%7EflowId%3D% 3D%3Dregistration.wizard for .mlb.com/>
Did I run this correctly. I made several attempts and on a couple the tmp/mlb.log was empty?
Also, I see this (but not everytime - I think it depends on how logging is setup) in .mlb/log
And this is from the .mlb/log
[kweisen@localhost .mlb]$ cat log
DEBUG>> home coverage = col away coverage = ari
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = ['']
2011-04-02 22:53:21.567078
Logged in successfully!
I'm having weird errors here; any time I try to use mlbviewer itself to view a live game, I get either the 'Login was unsuccessful' traceback, or the:
game_url = reply.getElementsByTagName('url')[0].childNodes[0].data
IndexError: list index out of range
error. However, test/stdnsoap.py and the web flash viewer all work fine, consistently. Not using nexdef (although on nexdef branch>).
With about a quarter or third of the live games, I get one or other of these errors. In all these cases MLBTV appears to think that I am within the blacklisting zone for the game, causing mlbviewer to generate this error. It appears to be a problem at their end, which with a bit of luck they may sort out in a few days/weeks.
You say the flash viewer works fine. In my case if I go to MLB mediacenter and try to view a game which is rejected by mlbviewer, I get told that the game is blacklisted. However I am then given an opportunity to log in manually (rather than by cookie) and if I do that it will override the blacklisting and allow me to watch the game. I suspect this shows that MLBTV know they have a problem, by allowing this manual override.
Do you have to do an explicit login to watch the faulting games via the flash plugin?
I also am having trouble watching Away streams. I had to watch both Red Sox games this weekend on the Texas station. I've set video_follow=bos and also tried pressing 's' to switch streams, no luck.
I can watch the NESN Boston streams no problem through the website, and I am a premium subscriber.
(edit) watching NESN live right now... not sure what changed since yesterday but it works fine.
Although I'm having my own problems getting up and running this year, I was able last year, for Gameday Audio only, get vlc to work by using this in the config file:
audio_player=vlc --file-caching=2048
You might try searching this thread for vlc - I know this topic has come up before.
Sorry. I don't think my request was very clear. I have been able to get the games to stream through VLC. What I'm trying to do is "re-stream" the game through uShare to my XBox so I can watch it on my TV (which is understandably not an official feature of mlbviewer as this falls more in the scope of VLC's functionality). It's not a huge deal - worst case scenario, I can always plug a laptop into my TV. I just thought this would be a convenient way to get it all set up.
Do you have to do an explicit login to watch the faulting games via the flash plugin?
Just tested with PIT/CHC today - I'm in NC, so obvs. not blacked out. Still get the list index traceback with mlbviewer, test/stdnsoap works (I get the WGN stream). I then go to mlb.com for the flash player, and it worked ok after the 'regular' login. (Didn't happen to be logged in before.)
Anybody else caching to file and getting an error? This will happen anywhere from 2% to 25% of the way through the game (I've never made it further).
Quote:
ERROR: RTMP_ReadPacket, failed to read RTMP packet body.
Using the flash player, the playback will sometimes hang and restart, and I wonder if it's related. Does anyone know of a way to restart the download at the end of the cache? (Just to be clear, I'm talking about archived games, not live)
Last edited by mchapter; 04-03-2011 at 04:57 PM.
Reason: clarity
Anybody else caching to file and getting an error? This will happen anywhere from 2% to 25% of the way through the game (I've never made it further).
Using the flash player, the playback will sometimes hang and restart, and I wonder if it's related. Does anyone know of a way to restart the download at the end of the cache? (Just to be clear, I'm talking about archived games, not live)
When you say cache to file, do you mean you have video_player with -dumpstream option? This is not supported. I have seen through every version of rtmpdump that it will crap out around 25-30% when allowed to go full throttle. Back around v1.5 or v1.6, rtmpdump supported streaming to standard output and something magical happened. When mplayer was throttling rtmpdump, e.g. could only read as fast as it could play (plus buffer), the game could be watched from start to finish without rtmpdump crapping out. This is how I recommend doing it and will no longer attempt to support raw rtmpdump or rtmpdump piped to -dumpstream.
Please follow this procedure when reporting errors.
1. Tell me the date, the game, and the stream selected (home or away).
2. If it's gameday audio or nexdef, tell me that too.
3. If you have video_follow or audio_follow for one of the teams, tell me that too.
4. MOST IMPORTANT: Collect a log using the test tool and paste the log, NOT HERE, but at pastebin.com. Post the pastebin.com URL here.
How to collect a log:
Find the event-id (E: ) from mlblistings.py
Run test/stdnosoap.py with the event-id as: test/stdnosoap.py 14-286925-2011-04-03 | tee /tmp/mlb.log
Post the contents of /tmp/mlb.log to pastebin.com
Post the pastebin.com URL for your paste to the forum with the infromation above (steps 1 - 3)
Without the log, there is nothing I can do for you unless I can reproduce the issue myself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.