LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 08:10 PM   #1321
edouble312
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 16

Quote:
Originally Posted by sruchris View Post
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
yup that's the same error i'm getting. it means you've logged into mlb.tv too many times in an alloted time period. if you were to try the website right now, it would tell you the same thing and not let you watch/listen to anything!

(homer simpson voice)that's hoooow they geeetcha!!
 
Old 04-21-2009, 08:18 PM   #1322
sruchris
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
I was successfully listening to Gameday audio via the web site. Then while still listening I tried mlbdvr.py, Sign-on Restriction Error. Closed out of the game I was listening to, tried mlbdvr.py, Sign-on Restriction Error. Then I clicked back on Gameday audio via the web site and the audio stream resumed. Strange.
 
Old 04-21-2009, 08:22 PM   #1323
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by daftcat View Post
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.
Gotcha. To my surprise, this actually doesn't work. mplayer spews network errors and if a player window ever does appear, it doesn't play in real time. Buggy container problem rears its ugly head again.

But if you're going to work rtmpdump into the equation anyway, why bother writing the file to a web directory and pointing mplayer there rather than just pointing mplayer right at the local file?
 
Old 04-21-2009, 08:23 PM   #1324
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by sruchris View Post
I was successfully listening to Gameday audio via the web site. Then while still listening I tried mlbdvr.py, Sign-on Restriction Error. Closed out of the game I was listening to, tried mlbdvr.py, Sign-on Restriction Error. Then I clicked back on Gameday audio via the web site and the audio stream resumed. Strange.
You already had a valid cookie on the website. Log out of the website, then log back on and see what happens.
 
Old 04-21-2009, 08:24 PM   #1325
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by edouble312 View Post
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?
They don't have 720p feeds for every game. It depends on their source feed.
 
Old 04-21-2009, 08:34 PM   #1326
sruchris
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
Quote:
You already had a valid cookie on the website. Log out of the website, then log back on and see what happens.
I signed out of the web site, cleared all my cookies, closed Firefox and tried Gameday audio via the site. It let me in and I'm listening right now.
 
Old 04-21-2009, 09:16 PM   #1327
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by sruchris View Post
I was successfully listening to Gameday audio via the web site. Then while still listening I tried mlbdvr.py, Sign-on Restriction Error. Closed out of the game I was listening to, tried mlbdvr.py, Sign-on Restriction Error. Then I clicked back on Gameday audio via the web site and the audio stream resumed. Strange.
If you mix and match the website with the mlbviewer tools (mlbdvr, mlbviewer, gamedayaudio, etc), the servers detect that you are using two different session keys. There might be a way to read firefox's cookies to synchronize the two but it's probably more work than it's worth. If the website is working for you, you can remove your mlbviewer cookies/session key:

Code:
$ rm ~/.mlb/cookie
$ rm ~/.mlb/sessionkey
This may or may not work. If it doesn't work, try logging out of the website. If logging out of the website and removing cookie/sessionkey still results in Sign-On Restriction (or status code -3500), then you'll just have to wait it out. I believe it's about 20 to 30 minutes this year. Not nearly as bad as the 24-hour concurrent use jail they had last year.

I plan on implementing real sessions with mlbviewer/mlbdvr where we login once when the application starts and logout when the application exits and remain logged in for all requests in between. This should cut down on the login/logout churn that might be pissing them off.

Even the regular flash player users are running into this so it can't be completely my fault.
 
Old 04-21-2009, 09:25 PM   #1328
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
Gotcha. To my surprise, this actually doesn't work. mplayer spews network errors and if a player window ever does appear, it doesn't play in real time. Buggy container problem rears its ugly head again.

But if you're going to work rtmpdump into the equation anyway, why bother writing the file to a web directory and pointing mplayer there rather than just pointing mplayer right at the local file?
Hmm, I started typing out my rational only to realize that mplayer actually makes no distinction in the command-line between:

Code:
$ mplayer http://path/to/file.mp4
and...

Code:
$ mplayer /path/to/file.mp4
So the video_player command will work regardless of whether I dump it and play it or dump it and stream it.

I guess the next step is move all that nasty rtmpdump code into the library and return the /path/to/file.mp4 as the stream url for basic service. I've already got a parameter for use_nexdef in GameStream so I can select whether to return a nexdef url or a local filename. I'll see about merging the mlbdvr.py and mlbviewer.py code in the next couple of days (read this as, "I'm a stubborn code monkey and will probably get this done tonight even if I lose sleep over it." )

Now a better question is whether we can get mplayer/ffmpeg guys to continue improvements on the files so that we can get a decent experience whether it's dumped or streamed from nexdef?

I'm also having mixed luck on my lower end machine playing from nexdef and the dumpstream from nexdef was useless.

I just wish mplayer would support rtmp already.
 
Old 04-21-2009, 09:30 PM   #1329
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
They don't have 720p feeds for every game. It depends on their source feed.
I'm not convinced that setting max_bps alone is doing the trick. I'll be playing around with adding the control messages and seeing if we can lock on specific streams. I might do something like, based on your max_bps setting, I pick the largest stream size less than or equal to it and say that's the only stream I want to accept. That may not come until the weekend though.

My highest priority is to get mlbviewer and mlbdvr code merged so I only have to support mlbviewer again.
 
Old 04-21-2009, 09:33 PM   #1330
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by daftcat View Post
I'm also having mixed luck on my lower end machine playing from nexdef and the dumpstream from nexdef was useless.
Does your low end machine have a spare PCI slot? :-D
 
Old 04-21-2009, 09:33 PM   #1331
edouble312
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
If you mix and match the website with the mlbviewer tools (mlbdvr, mlbviewer, gamedayaudio, etc), the servers detect that you are using two different session keys. There might be a way to read firefox's cookies to synchronize the two but it's probably more work than it's worth. If the website is working for you, you can remove your mlbviewer cookies/session key:

Code:
$ rm ~/.mlb/cookie
$ rm ~/.mlb/sessionkey
This may or may not work. If it doesn't work, try logging out of the website. If logging out of the website and removing cookie/sessionkey still results in Sign-On Restriction (or status code -3500), then you'll just have to wait it out. I believe it's about 20 to 30 minutes this year. Not nearly as bad as the 24-hour concurrent use jail they had last year.

I plan on implementing real sessions with mlbviewer/mlbdvr where we login once when the application starts and logout when the application exits and remain logged in for all requests in between. This should cut down on the login/logout churn that might be pissing them off.

Even the regular flash player users are running into this so it can't be completely my fault.
I agree with all that and hope for the login/logout issues with mlbviewer to get resolved. I personally have been in mlb.tv "jail" all night since around 7:15 CST. I'm starting to wonder if I should call them up.

edit: ok, i am now totally confused. I've been trying to login on my laptop, and cannot do so in firefox or mlbviewer. I'm watching the end of the cardinals game on my desktop pc, just in mlb's viewer. it's playing fine. when I exit, I cannot use mlbviewer on the desktop, although it's not giving me the sign-on restriction, it just won't even connect to swarmcast:

No stream found to handle url http://local.swarmcast.net:8001/prot...2309usdohsodge (etc)



edit#2: now it appears nextdef is down for many streams, and they're also having audio problems.

Last edited by edouble312; 04-21-2009 at 10:18 PM.
 
Old 04-21-2009, 10:09 PM   #1332
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
Does your low end machine have a spare PCI slot? :-D
It's a laptop. Think it will fit in the PCMCIA slot? :-D

I think that card is as powerful as the laptop itself (567 Mhz vs. 750 Mhz, and 512mb VRAM vs. 256 mb laptop memory.)

I'm actually contemplating replacing the mobo in my old higher end laptop (1.4 Ghz, 1 gb ram) even though I'd sacrifice a DVD-RW drive if I switched laptops. Might be a small compromise to make if I want to watch baseball without the stream burps that plagued me last year.
 
Old 04-22-2009, 11:47 AM   #1333
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Great job with all the new updates. This is getting pretty sweet. I'm not able to save the streams with VLC yet, but I can play the mplayer saved streams .

Has anyone ever had problems with the ncurses hiding the typed input in the terminal after mlbviewer is quit? I use konsole on KDE 4.1.3 on Opensuse 11.1 x86_64. I've just ignored it to this point, I figured it was affecting other people, but this may not be the case.

Thanks again for everything.
 
Old 04-22-2009, 12:43 PM   #1334
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by poorboywilly View Post
Great job with all the new updates. This is getting pretty sweet. I'm not able to save the streams with VLC yet, but I can play the mplayer saved streams .

Has anyone ever had problems with the ncurses hiding the typed input in the terminal after mlbviewer is quit? I use konsole on KDE 4.1.3 on Opensuse 11.1 x86_64. I've just ignored it to this point, I figured it was affecting other people, but this may not be the case.

Thanks again for everything.
I suspect konsole isn't behaving like a normal xterm so the curseswrapper function that is supposed to reset the terminal back to sane settings isn't working on konsole. Try mlbviewer within a proper xterm and see if you get the same result.

The h264 code needed to be patched in ffmpeg. You may need to file a bug report with VLC to get the patch integrated into vlc code.

I'm also hoping that vlc will improve their rtmp code to support command-line options for the connect/createStream parameters since these can't always be deduced from the rtmp url itself. But that's a fight for another day.
 
Old 04-22-2009, 12:51 PM   #1335
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 168: Ability to start an In Progress game from current position

When I first implemented nexdef support, I set a start_time of the game start time for all games. This meant 'In Progress' games began from the start rather than the current time. (Boston game is currently in the 5th inning but if I select it in mlbviewer, I'll start from the first.)

In revision 168, for 'In Progress' games, I will pick up the game from the current position (from the 5th instead of the 1st in the Boston example.) As a convenience for anyone who liked the ability to pick it up from the start (and I admit I rather do like that...except for when nexdef craps out in the third and I don't want to watch the first three innings again), I added a config file option:

Code:
live_from_start=True
will pick up a live game from the first.

Also in revision 168, I've improved the highlight url selection to always choose the best quality available (which is usually 800K but sometimes only the 400K highlights are available.) I'm still looking for how to find the Game Recaps (without parsing actual web pages.)

Last edited by daftcat; 04-22-2009 at 02:05 PM.
 
  


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 11:31 AM.

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