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 04-15-2011, 12:56 AM   #3301
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Updated gamedayaudio.py with the "no soap" version. But it needs a content-id which you can get from "z" key debug in mlbviewer.

Example 'z' debug:

Code:
LISTINGS DEBUG FOR 2011/04/14/colmlb-nynmlb-1
───────────────────────────────────────────────────────────────────────────────
getListings() for current_cursor:
({'home': u'nym', 'away': u'col'}, datetime.datetime(2011, 4, 14, 9, 10), [('SNY
-HD', u'121', '13717619', '14-287072-2011-04-14')], [('KOA', u'115', '13717625',
 '14-287072-2011-04-14'), ('WFAN', u'121', '13717629', '14-287072-2011-04-14')],
 [('CG', 0, '13777153', '14-287072-2011-04-14')], 'CG', u'2011/04/14/colmlb-nynm
lb-1', u'media_archive')
After the datetime, the first two media tuples are home video and away video. The next two tuples are home audio and away audio. Within the tuple, it's (call letters, team id, content-id, event-id).

So to play the home audio from above, (call letters = KOA), content-id = 13717625 and event-id = 14-287072-2011-04-14:

Code:
$ test/gamedayaudio.py 14-287072-2011-04-14 13717625
 
Old 04-15-2011, 01:02 AM   #3302
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by rmbellovin View Post
Thanks, I'll check it out tonight.

Also, this morning during the first Mets-Rockies game, I could only get the Rockies radio broadcast. Right now, during the second game, I can only get the Mets radio broadcast.
What do you mean you could only get one or the other? Did the stream not connect, blackout error, or it always gave you one feed or the other no matter the stream ('s' key) selection?

I've verified that I can get both but I'm also working off archived games.
 
Old 04-15-2011, 04:36 AM   #3303
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Revision 283: blackout fixes, login retries

Quote:
Originally Posted by daftcat View Post
What do you mean you could only get one or the other? Did the stream not connect, blackout error, or it always gave you one feed or the other no matter the stream ('s' key) selection?

I've verified that I can get both but I'm also working off archived games.
Okay, I think I see what's going on now. I have some debug code in there that if you hit one of those blackouts again, I'll write a log of the full xml response in ~/.mlb/blackout. But I also see where I messed up in assuming the only listings would be audio listings. I've changed the "if" condition to check for MEDIA_ON (live games) and streamtype='video' which is passed in from the 'a' vs. Enter key rather than parsed from the reply. You shouldn't hit those blackouts anymore. If you do, post the contents of ~/.mlb/blackout to pastebin.com and send me the pastebin.com url.

I have verified that I can get both streams using test/gamedayaudio.py but something is not quite right in mlbviewer code. I'll look into that this weekend.

I also checked in login() retries since I was getting super annoyed by how many times I got the "Login unsuccessful" message. It will now retry the login three times removing the cookie each time it fails until it gets a successful login.

I think we're getting close to wrapping up all the basic and gameday audio bugs.

Might be ready to tackle nexdef soon.
 
Old 04-15-2011, 04:00 PM   #3304
Scottchy800
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by mkomko View Post
You have to use the nexdef2010-branch in the svn repository! Even if you don't want NexDef. The trunk is not maintained at the moment.
Thanks MKomko- not to be too needy, but can you provide a link? Thanks!
 
Old 04-15-2011, 04:27 PM   #3305
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Scottchy800 View Post
Thanks MKomko- not to be too needy, but can you provide a link? Thanks!
Code:
svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/branches/nexdef2010 nexdef2010
 
Old 04-15-2011, 05:00 PM   #3306
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quick update: revision 287

Just did some cleanup and renaming in test directory.

SOAP scripts have been removed.

test/gdaudio.py <event-id> <content-id> to play a gameday audio game
test/mlbgame.py <event-id> [content-id] to play an mlbtv game
test/mlbgamedl.py <event-id> [content-id] to download an mlbtv game

content-id is optional for all but gdaudio.py. event-id and content-id can be found from 'z' key debug in mlbviewer.py. event-id can be found from mlblistings.py as well.

NOTE: Downloading is not supported or encouraged. this script is merely to produce a sample file if you suspect there is an ffmeg/mplayer bug that needs to be reported.
 
Old 04-16-2011, 12:52 PM   #3307
CCRS8
LQ Newbie
 
Registered: Apr 2010
Location: NC, USA
Distribution: Xubuntu
Posts: 29

Rep: Reputation: 1
Is anyone else having problems playing live games right now? I'm on the most up to date revision. When I try to play, for instance, the Blue Jays vs. Red Sox game (home broadcast stream), I get "rtmp server requested close" error. When I play the Texas Rangers vs. Yankees game I get an inmarket blackout error despite not being in the blackout region (I'm watching it now on Extra Innings - I'm in the Nationals/Orioles MASN blackout area). Twice I got a login error when trying to play a game.

Playing archived games and highlights work fine.
 
Old 04-16-2011, 01:04 PM   #3308
itshardertotell
Member
 
Registered: Aug 2008
Posts: 38

Rep: Reputation: 15
Unfortunately I get a "Parser Problem with Listings Page" error when I start mlbviewer in the nexdef2010-branch:

Traceback (most recent call last):
File "mlbviewer.py", line 1545, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 207, in mainloop
raise Exception, detail
KeyError: '2011'

Does anyone have an idea how to fix this?
Thanks,
markus
 
Old 04-16-2011, 01:20 PM   #3309
CCRS8
LQ Newbie
 
Registered: Apr 2010
Location: NC, USA
Distribution: Xubuntu
Posts: 29

Rep: Reputation: 1
Quote:
Originally Posted by CCRS8 View Post
Is anyone else having problems playing live games right now? I'm on the most up to date revision. When I try to play, for instance, the Blue Jays vs. Red Sox game (home broadcast stream), I get "rtmp server requested close" error. When I play the Texas Rangers vs. Yankees game I get an inmarket blackout error despite not being in the blackout region (I'm watching it now on Extra Innings - I'm in the Nationals/Orioles MASN blackout area). Twice I got a login error when trying to play a game.

Playing archived games and highlights work fine.
Actually, I just realized that my archived games cut out after a few minutes. Something definitely going on, but not sure if it is a problem with my account, my computer, mlbviewer, or on MLB's side.
 
Old 04-16-2011, 01:54 PM   #3310
rmbellovin
LQ Newbie
 
Registered: Apr 2010
Posts: 21

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
Quick update: revision 287

Just did some cleanup and renaming in test directory.
Thanks, this seems to have resolved the problems I was having with gameday audio.

Quote:
Is anyone else having problems playing live games right now? I'm on the most up to date revision. When I try to play, for instance, the Blue Jays vs. Red Sox game (home broadcast stream), I get "rtmp server requested close" error. When I play the Texas Rangers vs. Yankees game I get an inmarket blackout error despite not being in the blackout region (I'm watching it now on Extra Innings - I'm in the Nationals/Orioles MASN blackout area).
Yeah, I'm getting rtmp close errors from everything except the Yankees-Rangers game, where I get an inmarket blackout message. But when I run test/mlbgame.py, I don't see any sign of a blackout notice.
 
Old 04-16-2011, 02:03 PM   #3311
CCRS8
LQ Newbie
 
Registered: Apr 2010
Location: NC, USA
Distribution: Xubuntu
Posts: 29

Rep: Reputation: 1
Quote:
Originally Posted by rmbellovin View Post
Yeah, I'm getting rtmp close errors from everything except the Yankees-Rangers game, where I get an inmarket blackout message. But when I run test/mlbgame.py, I don't see any sign of a blackout notice.
OK, looks like you and me are having the same problems. I also ran mlbgame.py and saw no blackout notice.
 
Old 04-16-2011, 03:25 PM   #3312
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by CCRS8 View Post
Is anyone else having problems playing live games right now? I'm on the most up to date revision. When I try to play, for instance, the Blue Jays vs. Red Sox game (home broadcast stream), I get "rtmp server requested close" error. When I play the Texas Rangers vs. Yankees game I get an inmarket blackout error despite not being in the blackout region (I'm watching it now on Extra Innings - I'm in the Nationals/Orioles MASN blackout area). Twice I got a login error when trying to play a game.

Playing archived games and highlights work fine.
Just fixed that and checked it in. Seems there are two "app" settings for the RTMP that work for live games and if I send the wrong one, you get "rtmp server requested close". Fortunately, it's really easy to tell from the rtmp url which app to setting to send.
 
Old 04-16-2011, 03:27 PM   #3313
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Revision 288: Live game fix

See earlier reply for details.

Verified this against both url types (BAL @ CLE and TOR @ BOS as examples of each.)
 
Old 04-16-2011, 03:30 PM   #3314
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by itshardertotell View Post
Unfortunately I get a "Parser Problem with Listings Page" error when I start mlbviewer in the nexdef2010-branch:

Traceback (most recent call last):
File "mlbviewer.py", line 1545, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 207, in mainloop
raise Exception, detail
KeyError: '2011'

Does anyone have an idea how to fix this?
Thanks,
markus
That was the very first bug fixed this pre-season. Make sure you've done an "svn up" or double check that you are actually using the nexdef2010 branch.
 
Old 04-16-2011, 03:33 PM   #3315
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by rmbellovin View Post
Thanks, this seems to have resolved the problems I was having with gameday audio.



Yeah, I'm getting rtmp close errors from everything except the Yankees-Rangers game, where I get an inmarket blackout message. But when I run test/mlbgame.py, I don't see any sign of a blackout notice.
If you are not in the NYY or TEX blackout region, please post the contents of ~/.mlb/blackout to pastebin.com (do not post it here) and then post the pastebin.com URL here. I added the blackout file a couple of days ago to debug these inappropriate blackout issues.
 
  


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:19 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