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.
is this normal? What do you mean by "press l instead of enter"
The error you see, you're trying to check out an svn revision of mlbviewer on top of the "unversioned" official release.
Change the svn checkout command to:
Code:
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-svn
Now your svn revision is in a directory called mlbviewer-svn. Don't mix these up. In fact, you can remove the release directory if you want since this revision is newer. You'll be able to keep it up to date as I check in revisions with the "svn up" command rather than waiting for sourceforge releases.
To activate the jump to innings interface, instead of using "enter" (or "return") to select a highlighted game, you will use the "i" key (i for innings.) This interface follows all the same stream preference logic as "enter" so you'll want to select your preferred home vs. away stream before you select the inning to jump to.
Brilliant! Got to cover up the spoilers. When I watch an archived game, it's most commonly because I want to see the game before I know what happened in the game, as if it were live. I can still remember using the flash player a couple years ago and having to cover up the side of the screen where the scores would show until I got the game full-screened.
Probably next month or later this summer I plan to implement a toggle for spoilers mode where I can display scores in the status bar and show line scores. Sometimes I come home and I already know my teams have lost (or I've already watched their games) and I just want to watch some game with a silly football score or some monster inning like the Bos 12 run inning the other day. So I could enable spoilers mode, scroll down the list and see the scores, open the innings interface and see the line score, and jump to the monster inning.
But for now, "no spoilers" is the norm for mlbviewer.
Two things you can try to really get at the root of this.
Option One) Run the gamedayaudio.py test tool and copy the output (all of it!) to pastebin.com.
[...]
Option Two) rebuild your mplayer and perform Option One.
I decided to build mplayer first, and...success. I guess the old version was older than you've seen. Anyway -- thanks for your patience, help and advice. And, of course, all your hard work.
i am trying to get this set up on macos leopard. i followed the instructions in the install and requirements files. i installed the codecs, and python libraries, downloaded autobahn, and put my email/pass in the .mlb config file. i also built mplayer from the instructions, but haven't used it to see if that is working.
here are the issues i am having so far:
1-- python mlbviewer.py can only be run as root. when i run it as a regular user i get:
Quote:
Traceback (most recent call last):
File "mlbviewer.py", line 1250, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 382, in mainloop
+ len(coveragetoggle.get(cfg['coverage'])) + 2
TypeError: object of type 'NoneType' has no len()
2-- when i run it as root, it seems to load up fine, but when i try to select a game, i get an authorization error. if i put it in debug, here is the error:
Quote:
Traceback (most recent call last):
File "mlbviewer.py", line 1250, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1018, in mainloop
u = g.soapurl()
File "/Users/jason/Downloads/mlbviewer/MLBviewer/mlbtv.py", line 1148, in soapurl
File "/Users/jason/Downloads/mlbviewer/MLBviewer/mlbtv.py", line 1001, in workflow
File "/Users/jason/Downloads/mlbviewer/MLBviewer/mlbtv.py", line 979, in login
MLBviewer.mlbtv.MLBAuthError: Login was unsuccessful.
3-- i cannot get java -jar autobahn.jar to run properly. i get the following:
Quote:
Time to init SSL: 101
22:54:33.127 EVENT Starting Jetty/4.2.x
22:54:33.144 EVENT Started HttpContext[/]
22:54:33.144 EVENT Started HttpContext[/protected]
22:54:33.146 WARN!! Failed to start: SocketListener@127.0.0.1:8001
Exiting in 30 seconds
Exiting
22:55:03.352 EVENT Stopped HttpContext[/]
22:55:03.352 EVENT Stopped HttpContext[/protected]
22:55:03.353 EVENT Stopped org.mortbay.http.HttpServer@c4a5ec
so that is where i am at. i assume i need to get autobahn running, and then once i can select a game without the autho error, i will see if i have mplayer working ok.
i am trying to get this set up on macos leopard. i followed the instructions in the install and requirements files. i installed the codecs, and python libraries, downloaded autobahn, and put my email/pass in the .mlb config file. i also built mplayer from the instructions, but haven't used it to see if that is working.
here are the issues i am having so far:
1-- python mlbviewer.py can only be run as root. when i run it as a regular user i get:
Never heard of this limitation. I suspect that you initially ran it as root and now the config file/directory is owned by root? I'm not sure. Make sure your user has ownership and read/write access to ~/.mlb.
Quote:
2-- when i run it as root, it seems to load up fine, but when i try to select a game, i get an authorization error. if i put it in debug, here is the error:
Auth errors happen more than I'd like and I'm re-working that code. Check the ~/.mlb/log for what the login result page looks like. It appears sometimes I get the "Welcome to your MLB.com page" I was getting last year and other times I get the "My MLB.com" profile page which is actually a successful login but I'm not matching on that...yet. My only suggestion, once you've verified your email and pass are correct is to keep trying until you don't get an auth error.
Quote:
3-- i cannot get java -jar autobahn.jar to run properly. i get the following:
By any chance do you still have autobahn installed from the official MLB.com Mac OS X NexDef installer? If you do, you don't need to run autobahn.jar separately as it is already running as part of the NexDef plugin.
Quote:
so that is where i am at. i assume i need to get autobahn running, and then once i can select a game without the autho error, i will see if i have mplayer working ok.
i appreciate the help!
You'll actually get a different error when NexDef isn't working but I think it's actually already running on your system if you installed NexDef through the Flash player this year.
Another option you can try is to use the tools in the test directory. They produce a whole lot of debug output that might help you figure out if things are really as bad as they seem. I would start with nexdef.py.
Run it as:
Code:
$ cd test
$ nexdef.py 14-244678-2009-05-12
The only problem with nexdef.py is that it defaults to mplayer -dumpstream whereas you probably want the second DEFAULT_PLAYER line in the file to see that your mplayer actually works.
I decided to build mplayer first, and...success. I guess the old version was older than you've seen. Anyway -- thanks for your patience, help and advice. And, of course, all your hard work.
I told you in the REQUIREMENTS file that you would need to rebuild mplayer. We received a fix only a couple of weeks ago. Plus most distributions bundle a very old mplayer which doesn't even support the h264 or aac even without the fix we received. I should probably add to that section in the REQUIREMENTS that it takes more time to figure out your mplayer is too old than it does to rebuild it.
I know, it can be scary to rebuild mplayer but it's actually a lot less painful than I would have thought (and my target machine for mlbviewer is a 750 MHz laptop with 256 MB RAM.) I actually keep mine up-to-date with svn and rebuild it two or three times a week hoping that one of these weeks they'll fix one issue or another we still have with mplayer and the MLB streams (difficulty seeking, "Consumed only x bytes" errors, non-NexDef live streams aren't playable, and probably others.)
1-- python mlbviewer.py can only be run as root. when i run it as a regular user i get:
Code:
Traceback (most recent call last):
File "mlbviewer.py", line 1250, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 382, in mainloop
+ len(coveragetoggle.get(cfg['coverage'])) + 2
TypeError: object of type 'NoneType' has no len()
This Traceback is weird. Which version of mlbviewer are you using? Is it the latest svn revision or the sourceforge release?
You can probably fix this in your configuration file with:
Code:
coverage=home
Can you post your configuration file here? You can remove the email/pass. I don't need to see those.
I've got a problem trying to get rtmpdump1.5 working. After running Patch.py ( it says everything is okay and then tells me to run make clean prior to make.
Fine, I navigate to rtmpdump and do the make clean command & then make and it doesn't work. I get error messages like below.
Code:
[mike@arch rtmpdump]$ make clean
rm -f *.o
[mike@arch rtmpdump]$ make
g++ -Wall -c -o bytes.o bytes.cpp
g++ -Wall -c -o log.o log.cpp
g++ -Wall -c -o rtmp.o rtmp.cpp
g++ -Wall -c -o AMFObject.o AMFObject.cpp
In file included from AMFObject.cpp:34:
AMFObject.h:93: error: ‘int16_t’ does not name a type
AMFObject.cpp: In member function ‘int RTMP_LIB::AMFObjectProperty::Decode(const char*, int, bool)’:
AMFObject.cpp:493: error: ‘m_nUTCOffset’ was not declared in this scope
AMFObject.cpp: In member function ‘void RTMP_LIB::AMFObjectProperty::Dump() const’:
AMFObject.cpp:584: error: ‘m_nUTCOffset’ was not declared in this scope
make: *** [AMFObject.o] Error 1
The 'readme' for 1.5 says the command is 'make rtmpdump' instead of just 'make' like in 1.4. I do that and get the exact same error message as the one above.
2-- when i run it as root, it seems to load up fine, but when i try to select a game, i get an authorization error. if i put it in debug, here is the error:
I haven't a clue about why it wants you to run as root, but the authorization problem when running as root sounds like a missing config file. If you run as root, I think it would look for the config file in root's home directory rather than yours.
I've been experiencing an issue with MPlayer SVN and the MP4 files produced via NexDef.
I can skip forward past the between-inning breaks successfully for about six or seven innings. However, at around the middle of the sixth inning, MPlayer will no longer skip forward, but will actually skip back about 1-2 seconds.
It happens consistently across games and SVN builds. I can certainly open a bug ticket with MPlayer, but wasn't certain if anyone else is seeing this behavior.
I've been experiencing an issue with MPlayer SVN and the MP4 files produced via NexDef.
I can skip forward past the between-inning breaks successfully for about six or seven innings. However, at around the middle of the sixth inning, MPlayer will no longer skip forward, but will actually skip back about 1-2 seconds.
It happens consistently across games and SVN builds. I can certainly open a bug ticket with MPlayer, but wasn't certain if anyone else is seeing this behavior.
Open a ticket with MPlayer. Although you may have to open it with ffmpeg as well since they support the x264 code.
I'm not sure what's the deal with these streams but they are not very well supported with mplayer/ffmpeg. It seems like they are more tolerated than supported.
I've got a problem trying to get rtmpdump1.5 working. After running Patch.py ( it says everything is okay and then tells me to run make clean prior to make.
Fine, I navigate to rtmpdump and do the make clean command & then make and it doesn't work. I get error messages like below.
Code:
[mike@arch rtmpdump]$ make clean
rm -f *.o
[mike@arch rtmpdump]$ make
g++ -Wall -c -o bytes.o bytes.cpp
g++ -Wall -c -o log.o log.cpp
g++ -Wall -c -o rtmp.o rtmp.cpp
g++ -Wall -c -o AMFObject.o AMFObject.cpp
In file included from AMFObject.cpp:34:
AMFObject.h:93: error: ‘int16_t’ does not name a type
AMFObject.cpp: In member function ‘int RTMP_LIB::AMFObjectProperty::Decode(const char*, int, bool)’:
AMFObject.cpp:493: error: ‘m_nUTCOffset’ was not declared in this scope
AMFObject.cpp: In member function ‘void RTMP_LIB::AMFObjectProperty::Dump() const’:
AMFObject.cpp:584: error: ‘m_nUTCOffset’ was not declared in this scope
make: *** [AMFObject.o] Error 1
The 'readme' for 1.5 says the command is 'make rtmpdump' instead of just 'make' like in 1.4. I do that and get the exact same error message as the one above.
Wonder what I'm doing wrong?
Add the following into AMFObject.h:
Code:
#include <stdint.h>
Stick it with the other #include's after the GPL comment block.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.