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 am sorry for the hassles you have to go through.
At least I can enjoy the TBS feed, except for the horrible announcers. Europe rocks !!! (not the band)
I just installed mlbviewer for the postseason and when I tested an archived game tonight I get the following error:
Traceback (most recent call last):
File "/usr/local/bin/mlbviewer.py", line 1508, 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 "/usr/local/bin/mlbviewer.py", line 1201, in mainloop
u = g.soapurl()
File "/usr/local/lib/python2.6/dist-packages/MLBviewer/mlbtv.py", line 1261, in soapurl
return self.nexdef_url(game_url)
File "/usr/local/lib/python2.6/dist-packages/MLBviewer/mlbtv.py", line 1271, in nexdef_url
url = nexdef_base + 'describe' + '/base64:' + game_url + '&refetch=true'
TypeError: cannot concatenate 'str' and 'NoneType' objects
This is an upgrade from last year, so it might be leftover crap from the old config file:
# See README for explanation of these settings.
# user and pass are required except for Top Plays
user=**********
pass=**********
is there anyway i can run mlbviewer through a proxy/ssh tunnel? i have a 100/100 server in europe that i could use for this, although i don't know if the latency would be a problem. otherwise i guess i could try to use openvpn, but i have very limited experience with that.
So, I've returned to Linux and am trying to play with this mlbviewer. I've read through a lot of the thread here, but I haven't noticed anyone experiencing this issue. Whenever I try to watch a game, live or archived, all I'm getting is "The game is about to start" or "Commercial break in progress." I've left it running and it never comes back.
Can anyone provide some insight into what I might be missing?
is there anyway i can run mlbviewer through a proxy/ssh tunnel? i have a 100/100 server in europe that i could use for this, although i don't know if the latency would be a problem. otherwise i guess i could try to use openvpn, but i have very limited experience with that.
Sorry, man. It's explicitly against the MLB.TV Terms Of Service to circumvent blackout restrictions under threat of fines, early termination, and possible legal action (BOLD PRINT in the ToS.)
Plus it would be very bad for the project for me to tell you how to do it. That said, it is possible (at least it was last year) but you'd have to mess with the python code. I leave that as an exercise for you and wash my hands clean of this endeavor.
I just installed mlbviewer for the postseason and when I tested an archived game tonight I get the following error:
Traceback (most recent call last):
File "/usr/local/bin/mlbviewer.py", line 1508, 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 "/usr/local/bin/mlbviewer.py", line 1201, in mainloop
u = g.soapurl()
File "/usr/local/lib/python2.6/dist-packages/MLBviewer/mlbtv.py", line 1261, in soapurl
return self.nexdef_url(game_url)
File "/usr/local/lib/python2.6/dist-packages/MLBviewer/mlbtv.py", line 1271, in nexdef_url
url = nexdef_base + 'describe' + '/base64:' + game_url + '&refetch=true'
TypeError: cannot concatenate 'str' and 'NoneType' objects
This is an upgrade from last year, so it might be leftover crap from the old config file:
# See README for explanation of these settings.
# user and pass are required except for Top Plays
user=**********
pass=**********
Read the REQUIREMENTS-2009 file and make sure you do all the steps listed. Also, read the section in the README on SVN and make sure you update to the latest revision (214.) I wasn't planning on updating the Sourceforge release since there's very little of the season left. Also, decide whether you want to do NexDef (Premium subscriber) or rtmpdump (standard) and make sure to follow the appropriate instructions. For NexDef, gmplayer will probably work. For rtmpdump, you probably need to use raw mplayer unless you know for sure that gmplayer supports piping from standard input (e.g. rtmpdump <someurl> | gmplayer -)
So, I've returned to Linux and am trying to play with this mlbviewer. I've read through a lot of the thread here, but I haven't noticed anyone experiencing this issue. Whenever I try to watch a game, live or archived, all I'm getting is "The game is about to start" or "Commercial break in progress." I've left it running and it never comes back.
Can anyone provide some insight into what I might be missing?
Thanks in advance,
CJ
Not a clue. I saw that with 2007 archives last year (only 2009 really works with this year's mlbviewer code) but I haven't seen that this year. Try starting fresh. Backup and remove your ~/.mlb directory and let mlbviewer create the skeleton config. Then fill in your user and pass, and copy the MediaService.* files in.
So, I've returned to Linux and am trying to play with this mlbviewer. I've read through a lot of the thread here, but I haven't noticed anyone experiencing this issue. Whenever I try to watch a game, live or archived, all I'm getting is "The game is about to start" or "Commercial break in progress." I've left it running and it never comes back.
Can anyone provide some insight into what I might be missing?
Thanks in advance,
CJ
This issue has started for me in the playoffs, specifically the "game starting soon" message. I live in Europe so am able to watch playoff games live with the regular TBS feed (not playoffs.tv). I've been a user of mlbviewer for the last two years and have never had this issue before. I use nexdef as I have not had any luck installing rtmpdump.
I've tried to see if using the test scripts etc helps but they have not. I noticed that the starttime may be incorrect (although probably not). For example last nights LAD vs STL game had a start time of 56230000. I assume this is a milliseconds since midnight in the Eastern time zone? This also is happening when I try to watch the archived game. Same start time, just watching the blue screen of boredom.
I changed the start time manually while the COL PHI game was on then rerun the mplayer command I didn't see the "Starting Soon" screen but about 3 seconds of actual gameplay before mplayer stopped.
daftcat, if you know a quick hack to the code that might work I have no issue editing my local copy so you don't have to go through the full effort of testing and committing an svn change. I am using svn revision 214 and my live_from_start variable is not set in my config file.
Thanks so much for your great effort in creating mlbviewer! It has drastically reduced the rage I feel towards mlbam and their inferior products.
I upgraded to thelatest svn as you suggested, deleted the .mlb directory and started over with it, and have already read through the 2009 file. For some reason mlbviewer is trying to play the flash stream, and does not appear to see the other streams. How can I continue to troubleshoot? Any suggestions?
I upgraded to thelatest svn as you suggested, deleted the .mlb directory and started over with it, and have already read through the 2009 file. For some reason mlbviewer is trying to play the flash stream, and does not appear to see the other streams. How can I continue to troubleshoot? Any suggestions?
Are you trying to get the postseason.tv working with the camera angles?
That's not supported...yet.
If you live in one of the blackout areas (US, Canada, Virgin Islands, etc.), you will only be able to watch the archived games which are available about 90 minutes after game finishes.
I have other priorities during the week. If I get a chance, I'll try to support postseason.tv. In the meantime, if you can't wait for the archives, I suggest picking the least annoying camera angle (probably the home plate press box) and just watch one of those using the flash player on the mlb.com website. Your other option is to try the steps posted about a page back here.
Are you trying to get the postseason.tv working with the camera angles?
That's not supported...yet.
Nope, just the regular TBS feed, either the nextdef one or the standard feed (nextdef would be nice, but I just want something better than the flash player on the website at this point).
Quote:
If you live in one of the blackout areas (US, Canada, Virgin Islands, etc.), you will only be able to watch the archived games which are available about 90 minutes after game finishes.
I'm in New Zealand and the games are definitely *not* blacked out here.
Quote:
I have other priorities during the week. If I get a chance, I'll try to support postseason.tv. In the meantime, if you can't wait for the archives, I suggest picking the least annoying camera angle (probably the home plate press box) and just watch one of those using the flash player on the mlb.com website.
The flash player on the website has been working for me for the standard and nextdef feeds but the video is extremely choppy. I am hoping that mlbviewer with mplayer will not have the choppiness (yeah, I know I have to recompile mplayer from svn as per the 2009 file, but I'm just trying to get it working here).
Nope, just the regular TBS feed, either the nextdef one or the standard feed (nextdef would be nice, but I just want something better than the flash player on the website at this point).
I'm in New Zealand and the games are definitely *not* blacked out here.
The flash player on the website has been working for me for the standard and nextdef feeds but the video is extremely choppy. I am hoping that mlbviewer with mplayer will not have the choppiness (yeah, I know I have to recompile mplayer from svn as per the 2009 file, but I'm just trying to get it working here).
I'll look into that as well, thanks.
Okay, thanks for the info.
So what's the problem you are still facing?
For nexdef, you need the autobahn.jar file and you're starting it as "java -jar autobahn.jar"?
Also for nexdef, you should set max_bps in your config file and also use_nexdef:
Quote:
# in bits per sec so high def is 3 million
max_bps=3000000
# you can also use the 'n' key to toggle this
use_nexdef=True
The max_bps setting is equivalent to saying, start with the highest quality stream that doesn't exceed this setting. Mapped to the bars, it's roughly 3M (7 bars), 2.2M (6 bars), 1.8M (5 bars), 1.2M (4 bars), 800K (3 bars), 500K (2 bars), 164K (1 bar). In the mlbviewer window, the view changes to a nexdef screen after a stream is selected. From here, you can select a different speed or lock in the speed you have (equivalent of unchecking the auto-adjust in the flash player.)
With svn revision 214, you should be picking up the main tbs stream only.
I have an early hack to support postseason.tv for those of us in the blackout areas. You don't need to pay mlbam an additional $10 for the package if you are already an mlb.tv subscriber.
Here's the thing, though. Since I live on the west coast, nearly all of those post-season games which are in ET are very inconvenient times for me for testing. I lucked out that there was still a game on last night when I hacked up this code. Unfortunately, the game was over by the time I got the camera switching code finally working. And I can't test again until the next live broadcast that is also convenient for me on the west coast (game 5 tomorrow if there is one or the LCS games this weekend.) I'll likely miss all of today's game.
Here's what I'm going to do.
I'm going to check in the code in another hour or two (when I get a chance to go home and plug in the laptop.) There will be a new file called postseason.py (a fork of mlbviewer.py) and a few library changes. For those who can watch the game live today, please help me out with some testing. I'll have more howto details when I check in the code.
Check back here before the start of the game today.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.