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.
Thanks fang2415!
I was thinking of a new config file, too, but didn't know where to get it from. Could you tell me where I can download a new one?
Hmm, probably wherever you got mlbviewer in the first place! (If you've still got the .tar.gz lying around, just extract it again.) In fact it may be almost as easy to simply reinstall mlbviewer altogether -- should be pretty easy now that you've got all the dependencies set up. I can't remember which links are up-to-date, but I assume that the version at http://sourceforge.net/projects/mlbviewer/ will work; alternatively you could search this thread for the most recent few mentions of "svn" and follow the instructions to get a bleeding-edge version with this season's bugfixes.
But yeah: the best way to get the fresh config file back is probably to get it from the original package. And keep a backup next time!
Hm...
Now mlbviewer doesn't work anymore... I get this terminal message:
lars@X64V:~/mlbviewer2012$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1630, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 500, in mainloop
+ len(coveragetoggle.get(cfg['coverage'])) + 2
TypeError: object of type 'NoneType' has no len()
lars@X64V:~/mlbviewer2012$
Please, help...!
Please post your config (without user= and pass=)
That specific line of code does three different look-ups so your problem could be with invalid data for adaptive_stream, coverage, or speed.
I suspect that you placed chc in the coverage field which is incorrect. coverage should either be 'home' or 'away'. The team codes are used in video_follow and audio_follow to automatically select the correct broadcast for a particular team.
As for mlbgamedl.py. As the directory suggests, these are test scripts. The dl scripts were mostly intended to allow users to download a small piece of audio or video (e.g. a few seconds) which can be sent to the ffmpeg/mplayer team when MLB.TV has implemented something that mplayer doesn't support. So while the test scripts can be used for downloading an entire game, they certainly were not intended for that purpose. As such, I will not be implementing the entire feature set in those scripts. I won't be implementing home and away coverage selection or video/audio follow for the test scripts.
There is a way to do it with your video_player command in mlbviewer itself. I forget the specific command but you can either try searching this thread (under Thread Tools) for "mplayer dumpstream" or maybe someone here can share the correct video_player command.
Hmm, probably wherever you got mlbviewer in the first place! (If you've still got the .tar.gz lying around, just extract it again.) In fact it may be almost as easy to simply reinstall mlbviewer altogether -- should be pretty easy now that you've got all the dependencies set up. I can't remember which links are up-to-date, but I assume that the version at http://sourceforge.net/projects/mlbviewer/ will work; alternatively you could search this thread for the most recent few mentions of "svn" and follow the instructions to get a bleeding-edge version with this season's bugfixes.
But yeah: the best way to get the fresh config file back is probably to get it from the original package. And keep a backup next time!
Easiest way to start with a new config:
$ mv ~/.mlb/config ~/.mlb/config.old
Now you have backed up the old config.
Start mlbviewer and it will create a new config with all the default options.
Edit the new ~/.mlb/config and change user and pass and you should be back in business.
(If you need any specific customization like custom video_player commands, you can copy those lines from your backed up config.)
The "easiest way" to start a new config file worked perfectly, mlbviewer is running again...
Now I'll go to bed, and tommorrow I'll compare the new with the old config file to see what might be wrong with the old one. I'll post the "results" here...
comparing new config with the old one I found out, that in the old one there was no "home" or "away" at the coverage option. That might have been the mistake? everything else is equal...
I recently rebuilt my laptop to use the Linux Mint Debian Edition KDE respin and since today's Dodgers/Cards game is the freebie I installed mlbviewer-test again to watch it. I made sure I followed the steps I documented in my blog post but now when I try to watch the game I get
Quote:
Buffering stream/bin/sh: rtmpdump: not found
But I've installed rtmdump four times from git code. Any ideas what may be going wrong?
FWIW, I don't think those are the same problem actually. Lars, I get the same message frequently -- basically any time the stream dies even temporarily, rtmpdump gives that error and stops (I get it all the time if my wifi is flaky). I think all you can do from within mlbviewer is to try again. Alternatively, you could look in the log file at .mlb/log to see the rtmpdump command that mlbviewer last used and run that command manually from the command line. That has several advantages, including being able to properly specify an output file and then resume download to that file if the stream dies again (using rtmpdump's -o and -e options -- do "man rtmpdump" for details); also, it seems that using rtmpdump manually will never trigger a password lock-out, so you can keep retrying as many times as you want.
BostonPeng: ...? It doesn't sound like rtmpdump is in the path (or anywhere else that mlbviewer can find it). Have you tried "which rtmpdump"? Maybe you forgot to copy the rtmpdump binary into /usr/bin/ after compiling? Can you run rtmpdump manually from the command line (even just with some garbage inputs that'll give you rtmpdump's error message)?
I don't recall having to copy the binary when I installed it before but which gave me bupkis so I copied it over. Once I did I was able to snag yesterday's game without a problem. Now I just have to retweak my settings since when I reinstalled LMDE I ended up with a default config file despite leaving my /home partition alone for the install.
It turns out I forgot to move my tutorial over to my new site so when I get it moved over I'll include the copying step, as well as changing the command to make for rtmpdump since for some reason I said to make it for darwin rather than the posix that Linux needs. (The updated post is here, and once I get mlbhls installed I'll include the steps needed for that in an update.)
Thanks again for the assist.
Last edited by BostonPeng; 09-17-2012 at 09:46 AM.
I would like to ask something: These days the WBC qualifiers are on the way and the games are listed in mlbviewer, but it says "no media". Is there any possibility to make them available? It would be more than great...
I would like to ask something: These days the WBC qualifiers are on the way and the games are listed in mlbviewer, but it says "no media". Is there any possibility to make them available? It would be more than great...
Lars
Unless WBC is part of the MLB.TV package, it won't be available through mlbviewer. I visited the WBC website and didn't see an option to watch the games or subscribe to a package to watch the games. So, no, can't be done.
Might be able to support the Top Plays but that's going to require some additional development effort. I can make no promises on when I can get around to this as I currently have a sprained wrist.
Hi daftcat!
Never mind! It just would have been nice to "schedule" viewing by myself with the help of mlbviewer. On worldbaseballclassic.com one can see the games live, but only live, not in a replay... And that's the problem for me as many games are at 1 am in the morning...
So yesterday I tried installing mlbviewer and mlbhls on a new Ubuntu machine. mlbviewer installed without a hitch, but mlbhls kept giving me segfaults. Long story short: after a fair amount of hacking I realized that the trunk version of mlbhls seems broken, but the version in the experimental branch works fine.
That is, downloading the source using the following gave me warnings on compile and a binary that segfaulted every time (even with previous versions):
I haven't seen this documented anywhere and it runs contrary to what's suggested at https://code.google.com/p/mlbtv-hls-...ource/checkout... (I only figured it out when I checked "svn info" on my old system, and then noticed that the good svn link was upthread here.) I know some people have been having trouble installing mlbhls, so hopefully this information will help solve some of those problems. thegryghost, if this is right, maybe it'd help to add it to the mlbhls project page?
I'm generally unavailable for the next seven days or so. Any postseason woes you might have with mlbviewer you should try to help each other with. I will look at what they are doing for postseason this year when I return next week. If last year is any indication, they may offer alternate camera angles for an extra subscription. My code from last year *may* work with the P (uppercase P) key to access the camera angles list.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.