LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-21-2009, 03:57 AM   #1306
Onip
Member
 
Registered: Apr 2008
Posts: 36

Rep: Reputation: 15

Code:
$ python /home/onip/mlbviewer/mlbviewer.py 
Traceback (most recent call last):
  File "/home/onip/mlbviewer/mlbviewer.py", line 1081, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/onip/mlbviewer/mlbviewer.py", line 910, in mainloop
    u = g.soapurl()
  File "/home/onip/mlbviewer/MLBviewer/mlbtv.py", line 1023, in soapurl
    return self.nexdef_url(game_url)
  File "/home/onip/mlbviewer/MLBviewer/mlbtv.py", line 1050, in nexdef_url
    raise Exception,self.error_str
Exception: Could not parse NexDef stream list.  Try alternate coverage.
log

This time debug is enabled.
 
Old 04-21-2009, 07:58 AM   #1307
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Onip View Post
Code:
$ python /home/onip/mlbviewer/mlbviewer.py 
Traceback (most recent call last):
  File "/home/onip/mlbviewer/mlbviewer.py", line 1081, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/onip/mlbviewer/mlbviewer.py", line 910, in mainloop
    u = g.soapurl()
  File "/home/onip/mlbviewer/MLBviewer/mlbtv.py", line 1023, in soapurl
    return self.nexdef_url(game_url)
  File "/home/onip/mlbviewer/MLBviewer/mlbtv.py", line 1050, in nexdef_url
    raise Exception,self.error_str
Exception: Could not parse NexDef stream list.  Try alternate coverage.
log

This time debug is enabled.
Did you update mlbviewer like I asked you to? I added some additional code to this error message which I don't see here. Can you please update to the latest revision and try again with debug enabled?
 
Old 04-21-2009, 08:19 AM   #1308
JackRubysDog
Member
 
Registered: Feb 2009
Posts: 40

Rep: Reputation: 15
Is MLBviewer supposed to be working "out of the box" yet? Pardon my ignorance, I just want to see what the latest state of play is. I installed the lastest svn last night, then did all the requirements stuff (although both suds and rtmpdump were a bit "on the fly" as I'm still a linux newbie). I managed to get the listings screen up but when I selected an archive game (I know live games still don't work) I got a "URL not found" error. Is this currently expected behaviour? I know MLB.TV are having huge problems with their archive games. I am running Yellow Dog Linux 6.0.

Thanks for all the work on this. You have no idea how much it is appreciated (although you should do ).
 
Old 04-21-2009, 08:32 AM   #1309
Onip
Member
 
Registered: Apr 2008
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
Did you update mlbviewer like I asked you to? I added some additional code to this error message which I don't see here. Can you please update to the latest revision and try again with debug enabled?
That was from r164

Maybe I'm doing something wrong.
  1. start autobahn
  2. start mlbviewer
  3. go to an archived game and press enter

Here'e my config
Code:
user = xxx
pass = xxx

speed = 800

video_player = mplayer -really-quiet %s
top_plays_player = mplayer -cache 800 -really-quiet -xy 2 %s > /dev/null

dvr_record_only=True
dvr_accept_policy=True
dvr_record_dir=/mnt/scambio/MLB/
 
Old 04-21-2009, 08:34 AM   #1310
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by JackRubysDog View Post
Is MLBviewer supposed to be working "out of the box" yet? Pardon my ignorance, I just want to see what the latest state of play is. I installed the lastest svn last night, then did all the requirements stuff (although both suds and rtmpdump were a bit "on the fly" as I'm still a linux newbie). I managed to get the listings screen up but when I selected an archive game (I know live games still don't work) I got a "URL not found" error. Is this currently expected behaviour? I know MLB.TV are having huge problems with their archive games. I am running Yellow Dog Linux 6.0.
Actually, live games do work out of the box now. You will need a couple things, though. First, you need a bleeding-edge copy of mplayer. Some instructions on how to do this on Ubuntu can be found here. You'll probably have to adapt them for YDL.

Next, you need autobahn.jar. Download it and run it like this: 'java -jar autobahn.jar'

It can be downloaded from here:

http://www.mlb.com/nexdef-jars/

Then run ./mlbviewer.py (NOT mlbdvr.py!)

Good luck!
 
Old 04-21-2009, 12:09 PM   #1311
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 166: MANDATORY fix to MediaService.xsd

Mlb.com added "duration" to the media-item element of the soap response but they didn't add it to their own schema description. This is why we are using our own copy of their schema description.

Neither mlbviewer/mlbdvr nor the test tools (soapevent/gamedayaudio/nexdef) will work without following these instructions:

Code:
1. Update to revision 166.
2. Copy the MediaService.xsd to $HOME/.mlb/
3. Remove the suds cache directory : rm -r /tmp/suds
As a special bonus, revision 166 has early test code for Highlights. These should work the same as last year. 't' key for "Top Plays" and if there is a top_plays_player in your configuration, it will use that. Otherwise, it will use your video_player (with the small caveat that I'm not supporting %f expansion for highlights yet.)
 
Old 04-21-2009, 04:59 PM   #1312
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
An experiment for theophile (or anyone really)

Someone was nice enough to lend me a non-premium account to do some snooping around and the results aren't good. The non-premium users are not allowed to access the swarmcast network at all so mlbviewer is pretty useless right now.

But on the whole, nexdef is nothing more than a proxy server. Sure it does some fancy stuff to smooth out playback and such but in the end, mplayer is getting an FLV via HTTP.

This is where you come in Theophile (if you want to give it a try).

Have you tried using soapevent.py to dump a game to a web server directory and then point mplayer at an HTTP url where that file is?

If this works, I'd be happy to code up a nexdef dummy that handles rtmpdump and returns a web stream to mlbviewer for mlb.tv basic and gameday audio subscribers. This way I don't have to maintain two separate but nearly identical programs or one giant if / else mess for premium and basic subscribers.

I hope this works! I won't be able to test it myself until much later tonight but you seem to be on here during my daytime.
 
Old 04-21-2009, 05:03 PM   #1313
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by daftcat View Post
Have you tried using soapevent.py to dump a game to a web server directory and then point mplayer at an HTTP url where that file is?
I'm not sure I understand what you mean. soapevent.py saves a local copy using rtmpdump. Where does a webserver come in?
 
Old 04-21-2009, 05:47 PM   #1314
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
I'm not sure I understand what you mean. soapevent.py saves a local copy using rtmpdump. Where does a webserver come in?
Using soapevent.py, dump the file to a directory in your apache path

Code:
# cp soapevent.py /var/www
# cd /var/www
# ./soapevent.py 14-244356-2009-04-18
While that's happening, start mplayer as:

Code:
mplayer -autosync 30 -cache 8192 http://127.0.0.1/14-244356-2009-04-18.mp4
(I find autosync does help a little in getting the video and audio synced up.)

I'm wondering if mplayer will perform the necessary flow control to keep itself from choking on more stream then it absolutely needs.

The thought here is that if this works, then I can write a dummy web-server that performs the rtmpdump code on the back-end and serves up the media file to mplayer on a web stream. It's a bit klugey but it would be a reasonable mimic of what nexdef does so that a lot fewer lines of mlbviewer would have to change to support mlb.tv basic and gameday audio subscribers.
 
Old 04-21-2009, 06:45 PM   #1315
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I swear Sidney Ponson is our Brett Tomko this year. I'm glad to see Banny is back and Hor Ram is out of the rotation. Now we need to bring Hochevar back and send Ponson packing to anywhere but here.
 
Old 04-21-2009, 07:25 PM   #1316
sruchris
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
autobahn.jar

Do I need to install autobahn.jar for Gameday audio? I ask becasue when I select a game using mlbdvr.py, I get:

An error occured locating the game stream. Uncaught error.

When I try mlbviewer.py, I get:

An error occured locating the game stream. No stream available.

Any ideas? Keep up the good work!
 
Old 04-21-2009, 07:33 PM   #1317
sruchris
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
Here's what I get in the log:

DEBUG>> home coverage = phi away coverage = mil
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = []
2009-04-21 20:30:25.444499
Logged in successfully!
ERROR:suds.bindings.unmarshaller:Schema:0x1f397e8
(raw)
<xs:schema elementFormDefault="qualified" targetNamespace="http://services.bamnetworks.com/media/2.0" attributeFormDefault="unqualified">
<xs:import schemaLocation="MediaService.xsd" namespace="http://services.bamnetworks.com/media/types/2.0"/>
</xs:schema>
(model)
 
Old 04-21-2009, 07:47 PM   #1318
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by sruchris View Post
Here's what I get in the log:

DEBUG>> home coverage = phi away coverage = mil
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = []
2009-04-21 20:30:25.444499
Logged in successfully!
ERROR:suds.bindings.unmarshaller:Schema:0x1f397e8
(raw)
<xs:schema elementFormDefault="qualified" targetNamespace="http://services.bamnetworks.com/media/2.0" attributeFormDefault="unqualified">
<xs:import schemaLocation="MediaService.xsd" namespace="http://services.bamnetworks.com/media/types/2.0"/>
</xs:schema>
(model)
Is this all there was in the log?

First, if you haven't already, upgrade to SVN revision 166, install the new MediaService.xsd, and remove the suds cache. This step is mandatory for everyone because mlb.com changed their schema definition (They also haven't fixed their errors in their schema definition so we're using a modified copy of their definition.)

Code:
$ cp MediaService.xsd ~/.mlb
$ rm -r /tmp/suds
If you've already done this, then I need the full output of the suds error. You can get that with

Code:
$ test/gamedayaudio.py 14-244395-2009-04-21 | tee suds-error.log
Now, gamedayaudio.py doesn't do stream selection and audio follow like mlbdvr.py does. If you're hooked on a particular broadcast team, I suggest using mlbdvr.py once you've got the suds errors worked out.

Gameday audio doesn't use nexdef so mlbviewer is useless for 2009 audio at the moment. I'm looking into different ways to bridge the gap. It's getting really annoying that I can't have all the pieces working in a single solution like last year.
 
Old 04-21-2009, 07:53 PM   #1319
edouble312
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 16
geesh i logged in 2 or 3 times and got the "sign-on restriction error"

Can ANYBODY actually TELL ME what the exact rules are for signing on? or does mlb just decide on a whim if you've been logging in too much? If I knew the exact limit I would know what not to do. It's one thing to get banned when there's no games on, but when there's live games going on... grrr

also, I set the max_bps to 3000000, yet i wasn't getting the top-tier stream like i was before. anyone else notice that?
 
Old 04-21-2009, 08:05 PM   #1320
sruchris
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
Thanks for the quick reply daftcat. After following your directions I now get this error when I select a game using mlbdvr.py:

An error occured locating the game stream.
Sign-on Restriction Error.


Here's the very last bit of the output of

$ test/gamedayaudio.py 14-244395-2009-04-21 | tee suds-error.log


no session-key found in reply
Event-id = 14-244395-2009-04-21 and content-id = 4225005
(reply){
entitlements[] =
"",
status-code = "-3500"
}
File "test/gamedayaudio.py", line 262, in <module>
game_url = reply[0][0]['user-verified-content'][0]['user-verified-media-item'][0]['url']
TypeError: string indices must be integers
 
  


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 01:40 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