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 04-02-2011, 07:49 PM   #3241
kweisen
Member
 
Registered: May 2006
Location: Englewood, Fl
Distribution: MInt 17
Posts: 57

Rep: Reputation: 0

Quote:
Originally Posted by kweisen View Post
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?

Thanks for any help on this -
 
Old 04-02-2011, 07:52 PM   #3242
kweisen
Member
 
Registered: May 2006
Location: Englewood, Fl
Distribution: MInt 17
Posts: 57

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

Thanks for any help on this -
 
Old 04-02-2011, 08:25 PM   #3243
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
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!
 
Old 04-02-2011, 08:36 PM   #3244
splattered
LQ Newbie
 
Registered: Apr 2011
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
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>).
 
Old 04-02-2011, 10:13 PM   #3245
kweisen
Member
 
Registered: May 2006
Location: Englewood, Fl
Distribution: MInt 17
Posts: 57

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
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!
 
Old 04-02-2011, 10:30 PM   #3246
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
I would say "permission denied" is pretty important. Check the permissions on that cookie file.

And while I'm here, is video follow not working for anyone else?
 
Old 04-03-2011, 06:01 AM   #3247
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by splattered View Post
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?
 
Old 04-03-2011, 06:20 AM   #3248
etamme
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Rep: Reputation: 0
I am a premium member, and if i go to mlb.com/mediacenter I can select which stream i want to watch and it works fine.

I checked the available streams with z and I do see a chc stream available - for todays game this is the z output i get

Code:
getListings() for current_cursor:
({'home': u'chc', 'away': u'pit'}, datetime.datetime(2011, 4, 3, 15, 20), [('WGN-HD', u'112', '13339617', '14-286936-2011-04-03'), ('ROOT-HD', u'134', '13339621', '14-286936-2011-04-03')], [('WPGB', u'134', '13339611', '14-2
86936-2011-04-03'), ('WGN', u'112', '13339609', '14-286936-2011-04-03')], [], 'P', u'2011/04/03/pitmlb-chnmlb-1', u'media_off')
I did not set pit as my video_follow stream. I did try setting chc as my video follow, and still got the Pittsburgh stream.

Thanks for your help.
 
Old 04-03-2011, 10:51 AM   #3249
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
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.

Last edited by snowday; 04-03-2011 at 01:02 PM.
 
Old 04-03-2011, 11:03 AM   #3250
akhill44
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by kweisen View Post
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.
 
Old 04-03-2011, 03:30 PM   #3251
splattered
LQ Newbie
 
Registered: Apr 2011
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by chrisVV View Post
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.)
 
Old 04-03-2011, 04:06 PM   #3252
CCRS8
LQ Newbie
 
Registered: Apr 2010
Location: NC, USA
Distribution: Xubuntu
Posts: 29

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
Revision 274 fixes the off by an hour bug in the listings.
Yes it does - thanks!
 
Old 04-03-2011, 04:28 PM   #3253
mchapter
Member
 
Registered: Apr 2010
Location: austin, tx
Distribution: osx 10.8.3
Posts: 46

Rep: Reputation: 17
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
 
Old 04-03-2011, 05:42 PM   #3254
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by mchapter View Post
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.
 
Old 04-03-2011, 05:48 PM   #3255
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Please!!! Error reporting procedure

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:
  1. Find the event-id (E: ) from mlblistings.py
  2. Run test/stdnosoap.py with the event-id as: test/stdnosoap.py 14-286925-2011-04-03 | tee /tmp/mlb.log
  3. Post the contents of /tmp/mlb.log to pastebin.com
  4. 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.
 
  


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 05:13 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