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 can improve the error reporting (probably not until the weekend) to report this status instead of a "what happened here?" error. But that doesn't really help you. It is strange that games are working for you now but weren't before. Can you retry to other games if they are still in progress? I'm not sure what the fix is. My guess is that MLB.TV support won't help you if you are not using their Flash application.
I haven't been able to watch any live games today, although audio is now working (and I can watch the archived games). You're right that being wrongly blacked out is part of what's going on; to see if they can figure out where you are, go to http://www.mlb.com/mlb/subscriptions/blackout.jsp. I did call up Customer Services to tell them I was getting blackout notices when I shouldn't be; they were perfectly happy to manually tell their system my actual zip code. At that point, though, I got the same debug message, with test/stdnosoap.py output pasted at http://pastebin.com/qbLS31VH. I tried logging in and out on the website and deleting my cookie file, and then started getting test/stdnosoap.py output that mentioned blackouts again. I'm going to try again from work tomorrow, where they should be able to figure out my location (I've run out of games today that I'm not legitimately blacked out from...).
If this is what MLBTV are using, then it sometimes provides randomly bogus results for my IP address (that is, the IP address reported by http://checkip.dyndns.com/ I know to be right, and the one reported by http://www.mlb.com/mlb/subscriptions/blackout.jsp is inconsistent: sometimes right, sometimes wrong). Yesterday evening it said it could not determine where I was (and gave the wrong IP address); 10 minutes ago it said I was on the west coast within the LA blackout zone and also gave the wrong IP address; right now it is giving the correct address, and correctly says that I am in Europe.
Sorry about that. The version on sourceforge is very old. I'll update that soon. In the meantime, go ahead and trash that mlbviewer you just downloaded and use svn to grab the latest development release off the nexdef2010 branch:
Code:
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/branches/nexdef2010 nexdef2010
You'll also need rtmpdump, probably 2.2d but maybe 2.3 works as well. Google it to find it.
Setuptools, pyxml, python-dev, java, that's all good.
Not sure if NEXDEF will work just yet. It's only Opening Day and they haven't been streaming in HD during Spring Training. Set use_nexdef=False in the config file. All the speeds selected with the 'p' key should be supported (but no guarantees this early in the season.)
Just wanted to follow up. First, thanks for the quick reply - the latest version from svn and rtmpdump got me up and running. rtmpdump 2.3 is working fine (which is convenient because as of Ubuntu 10.10 (possibly earlier), it is already in the repositories). Next step is to get this streaming on my LAN (VLC seems to be the way to go here, but I'm open to suggestions) so I can watch it on my TV through my XBox 360. Any pointers on that would be much appreciated.
I can't seem to get NexDef working. I run the autobahn jar, and jetty starts up just fine, but everytime I try to load a stream in nexdef mode it simply tells me "Nexdef reports that requested stream is not available." In debug I get the following traceback:
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 44, in wrapper
return func(stdscr, *args, **kwds)
File "./mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/home/seabold/nexdef2010/MLBviewer/mlbtv.py", line 1365, in url
return self.nexdef_flash_url(self.nexdef_url(game_url))
File "/home/seabold/nexdef2010/MLBviewer/mlbtv.py", line 1387, in nexdef_url
raise Exception,self.error_str
Exception: Nexdef reports that requested stream is not available.
I can't seem to get NexDef working. I run the autobahn jar, and jetty starts up just fine, but everytime I try to load a stream in nexdef mode it simply tells me "Nexdef reports that requested stream is not available." In debug I get the following traceback:
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 44, in wrapper
return func(stdscr, *args, **kwds)
File "./mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/home/seabold/nexdef2010/MLBviewer/mlbtv.py", line 1365, in url
return self.nexdef_flash_url(self.nexdef_url(game_url))
File "/home/seabold/nexdef2010/MLBviewer/mlbtv.py", line 1387, in nexdef_url
raise Exception,self.error_str
Exception: Nexdef reports that requested stream is not available.
rtmpdump streams work just fine.
Is nexdef working with the official flash player yet? In past seasons, nexdef didn't work with the official player until May.
Even so, I'm not sure whether I'll support nexdef this year. It may be a best-effort, as-is feature. They keep changing the way they use the nexdef plugin that it's not as reliable as it was in seasons past. I don't know yet. Stay tuned but don't expect Nexdef working until May.
Just wanted to follow up. First, thanks for the quick reply - the latest version from svn and rtmpdump got me up and running. rtmpdump 2.3 is working fine (which is convenient because as of Ubuntu 10.10 (possibly earlier), it is already in the repositories). Next step is to get this streaming on my LAN (VLC seems to be the way to go here, but I'm open to suggestions) so I can watch it on my TV through my XBox 360. Any pointers on that would be much appreciated.
I hope someone else responds to this because vlc streaming to xbox is beyond the scope of this project. In other words, something I've never tried and not willing to support (unless you want to donate a TV and an Xbox to me.)
But the condensed game functionality doesn't seem to be working. It looks like MLBViewer isn't receiving a URL and tries to call the player command with an empty URL string.
Thanks in advance if you can spare the time to look at it! ;-)
I hope someone else responds to this because vlc streaming to xbox is beyond the scope of this project. In other words, something I've never tried and not willing to support (unless you want to donate a TV and an Xbox to me.)
I didn't mean to imply that I expected you to support this - I'm thankful for all of the work you've put into the project so far. I was more or less hoping that someone else in this thread was a VLC pro or had otherwise already addressed this. I've been unsuccessful so far, but I'll report back if I'm able to get it working.
Im watching the live cubs pirates game (1:05 pm EST 4/2/2011 ) I have tried changing streams (s hot key) between home and away before launching the player, but no matter what comes up with the away (pirates) stream regardless of whether it says "HOME" or "AWAY" in the lower right of the interface. I turned on debug for the player command and this is what i get
I went to mlb.com/mediacenter to check the content id of the cubs stream (chicago sports net) and see that it is 13335885, but mlbviewer is always pulling 13335877.
I am unsure why it is doing this. I have watched yankees games on the home feed and it pulled it fine. Any help is appreciated.
Revision 274 fixes the off by an hour bug in the listings.
---------- Post added 04-02-11 at 11:53 AM ----------
Quote:
Originally Posted by mkomko
The streams are working great.
But the condensed game functionality doesn't seem to be working. It looks like MLBViewer isn't receiving a URL and tries to call the player command with an empty URL string.
Thanks in advance if you can spare the time to look at it! ;-)
Condensed games used 1000K stream last year and are now 1200K. I fixed the pattern to match.
Im watching the live cubs pirates game (1:05 pm EST 4/2/2011 ) I have tried changing streams (s hot key) between home and away before launching the player, but no matter what comes up with the away (pirates) stream regardless of whether it says "HOME" or "AWAY" in the lower right of the interface. I turned on debug for the player command and this is what i get
I went to mlb.com/mediacenter to check the content id of the cubs stream (chicago sports net) and see that it is 13335885, but mlbviewer is always pulling 13335877.
I am unsure why it is doing this. I have watched yankees games on the home feed and it pulled it fine. Any help is appreciated.
Thanks,
Eric
A few things I can think of.
The 'z' key debug will show you the internal representation of the listing. For example, a 1200K dump of this game shows:
Do you see both CSC-HD and ROOT-HD in your 'z' output?
Second, home and away, at least according to the media center, seems to be a premium feature whereas basic only gets one choice. Are you premium or basic?
Third, video_follow config file option overrides this. If you have video_follow configured for 'pit', you'll always get whichever stream is 'pit' regardless of the HOME or AWAY selection using 's' key. I doubt you have done this, but I thought I'd throw it out just for completeness sake.
Are you able to get the away stream from the website?
Finally, since you already know the content-id you are after, you can use the test script to grab that stream:
But the condensed game functionality doesn't seem to be working. It looks like MLBViewer isn't receiving a URL and tries to call the player command with an empty URL string.
Thanks in advance if you can spare the time to look at it! ;-)
Yeah, I saw this too. It seems like the 'playback_scenario' string has slightly changed -- 1200K instead of 1000K. The patch below fixed it for me. Note that this is against the old (non-nexdef2010) branch, but I imagine something similar can be applied to the new branch as well...
Code:
diff -r f918f81f68a9 MLBviewer/mlbtv.py
--- a/MLBviewer/mlbtv.py Sat Jul 31 23:55:27 2010 +0300
+++ b/MLBviewer/mlbtv.py Sat Apr 02 21:36:59 2011 +0300
@@ -775,7 +776,7 @@
self.error_str += '\n\n' + str(detail)
raise
for url in media.getElementsByTagName('url'):
- if url.getAttribute('playback_scenario') == 'FLASH_1000K_640X360':
+ if url.getAttribute('playback_scenario') == 'FLASH_1200K_640X360':
out = str(url.childNodes[0].data)
return out
Yeah, I saw this too. It seems like the 'playback_scenario' string has slightly changed -- 1200K instead of 1000K. The patch below fixed it for me. Note that this is against the old (non-nexdef2010) branch, but I imagine something similar can be applied to the new branch as well...
Code:
diff -r f918f81f68a9 MLBviewer/mlbtv.py
--- a/MLBviewer/mlbtv.py Sat Jul 31 23:55:27 2010 +0300
+++ b/MLBviewer/mlbtv.py Sat Apr 02 21:36:59 2011 +0300
@@ -775,7 +776,7 @@
self.error_str += '\n\n' + str(detail)
raise
for url in media.getElementsByTagName('url'):
- if url.getAttribute('playback_scenario') == 'FLASH_1000K_640X360':
+ if url.getAttribute('playback_scenario') == 'FLASH_1200K_640X360':
out = str(url.childNodes[0].data)
return out
Ha! I fixed this and checked it in already before I saw this.
The old mlbviewer trunk is not being supported. To make matters worse, I will likely create a nexdef2011 branch. At some point this month, I will check in a stable nexdef2011 into mlbviewer trunk and also update the sourceforge release.
I'm actually a tester by trade so I only have so much experience with and motivation for the nuances of version control, branches, trunks, etc.
I didn't mean to imply that I expected you to support this - I'm thankful for all of the work you've put into the project so far. I was more or less hoping that someone else in this thread was a VLC pro or had otherwise already addressed this. I've been unsuccessful so far, but I'll report back if I'm able to get it working.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.