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've got a mac and a appletv. AppleTV's limited. it doesn't have a lot of unix utilities and I couldn't get autobahn to launch. On the mac, you can just "open Library/App Support/.../MLBNextDef.app"
On mac, you can run the autobahn.jar just the same as we do on Linux.
Code:
$ java -jar autobahn.jar
The jar file is actually from the Mac version of NexDef and can be fetched from mlb.com directly at http://mlb.com/nexdef-jars/
xterm -e won't work anymore for audio because I stream rtmpdump output directly into mplayer input.
Oooh! I see your error. Remove -playlist.
Thanks. Just tried that. No joy. I also added the new config items for this year (though they don't seem to apply to audio). I also re-read the REQUIREMENTS and the README.
So, same result -- the counter just goes for a while, then it stops and nothing else happens.
I do see, in the console, something like:
Warning -- too small audio packet (0 bytes)
Is that a clue?
I also removed xterm -e.
Is there another audio player I can install instead of trying to build mplayer from scratch (which I might do aanyway because I don't know what to do).
Current audio line is
audio_player=mplayer -cache 128 -quiet
(also tried -really-quiet)
-eveostay (at least the Phillies are in New York, so I could just take it easy during the game and watch tv)
I hear Sun JVM works, possibly IBM's, and definitely OpenJDK:
Okay, I've got OpenJDK up, and when I run the jar now, I get:
Time to init SSL: 465
00:31:11.787 EVENT Starting Jetty/4.2.x
00:31:11.820 EVENT Started HttpContext[/protected]
00:31:11.820 EVENT Started HttpContext[/]
00:31:11.867 EVENT Started SocketListener on 127.0.0.1:8001
00:31:11.868 EVENT Started org.mortbay.http.HttpServer@f84386
And then it just sits there. Is that what's supposed to happen?
Since it was just sitting there, I went to another terminal window and ran mlbviewer. I tried to go to a game, and still get "An error occured in loading the game stream: Uncaught error".
Okay, I've got OpenJDK up, and when I run the jar now, I get:
Time to init SSL: 465
00:31:11.787 EVENT Starting Jetty/4.2.x
00:31:11.820 EVENT Started HttpContext[/protected]
00:31:11.820 EVENT Started HttpContext[/]
00:31:11.867 EVENT Started SocketListener on 127.0.0.1:8001
00:31:11.868 EVENT Started org.mortbay.http.HttpServer@f84386
And then it just sits there. Is that what's supposed to happen?
Since it was just sitting there, I went to another terminal window and ran mlbviewer. I tried to go to a game, and still get "An error occured in loading the game stream: Uncaught error".
Yes, that's what's supposed to happen with autobahn. It means it's opened the socket at 8001 and is listening for input/output. You usually do not get any other messages from it unless it fouls up. Gij does not work with autobahn.
MLB.TV/nexdef seemed a little dodgy yesterday - I tried several times to watch CIN@FLA but no joy. Tried this morning and it was okay.
Okay, I've got OpenJDK up, and when I run the jar now, I get:
Time to init SSL: 465
00:31:11.787 EVENT Starting Jetty/4.2.x
00:31:11.820 EVENT Started HttpContext[/protected]
00:31:11.820 EVENT Started HttpContext[/]
00:31:11.867 EVENT Started SocketListener on 127.0.0.1:8001
00:31:11.868 EVENT Started org.mortbay.http.HttpServer@f84386
And then it just sits there. Is that what's supposed to happen?
Since it was just sitting there, I went to another terminal window and ran mlbviewer. I tried to go to a game, and still get "An error occured in loading the game stream: Uncaught error".
You can (and should) get a more detailed error message by enabling debugging with the 'd' key and then selecting a game. This should cause a crash with a Traceback. Please post the full text of the Traceback to here or pastebin.com. I'm going to change that error message to say something to the same effect. Basically, uncaught error is the initialized value of the error string in the GameStream class. If I run into an error that I anticipated, I can catch that error in the GameStream class, set the error string, and then re-raise it. The "gui" code catches the error again and prints the error string to the screen. This is so the "gui" code doesn't need to know what the library (class) is doing, just that an error occurred, and this is the error message. Unfortunately, there are many places in the library where I haven't caught the error and set the error string. In the gui code, if the debug flag is set (using the 'd' key), any error is re-raised without being caught. It's allowed to drop right through and crash mlbviewer with a Traceback that allows me to determine where in the code the original error occurred.
Suffice it to say that "Uncaught error"s are totally useless to me but the Tracebacks that debug produce are absolutely vital to fixing the underlying error.
Oh, and NexDef was down tonight.
Finally, since one other user ran into this, you need to copy the MediaService.* files to your ~/.mlb directory. This can also be the source of "Uncaught error"s. I'll write some code to check for this.
Thanks. Just tried that. No joy. I also added the new config items for this year (though they don't seem to apply to audio). I also re-read the REQUIREMENTS and the README.
So, same result -- the counter just goes for a while, then it stops and nothing else happens.
I do see, in the console, something like:
Warning -- too small audio packet (0 bytes)
Is that a clue?
I also removed xterm -e.
Is there another audio player I can install instead of trying to build mplayer from scratch (which I might do aanyway because I don't know what to do).
Current audio line is
audio_player=mplayer -cache 128 -quiet
(also tried -really-quiet)
-eveostay (at least the Phillies are in New York, so I could just take it easy during the game and watch tv)
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.
Code:
$ test/gamedayaudio.py 14-244607-2009-05-06 | tee /tmp/audiolog.txt
Paste /tmp/audiolog.txt to pastebin.com and post the url here.
Let that run for about five or ten seconds (enough to record several seconds worth of audio file.)
Then Ctrl-C out and try to play the file with mplayer:
Code:
$ mplayer 14-244607-2009-05-06.mp3 | tee /tmp/mplayer.log
Then post the output of mplayer.log to pastebin.com.
This will at least give me an idea if mplayer is the problem.
Option Two) rebuild your mplayer and perform Option One.
From the REQUIREMENTS doc:
Quote:
If you don't have subversion, you can download it from your distribution's
package management system (e.g. apt-get install subversion if you're using
Ubuntu or Debian), or you can get it here:
I confirmed last night that I can now get archived mlb.tv games but not live. But I'm not sure this is a mlbviewer problem as I'm having the same problem on my mac.
I may try getting output from the nex.def.py script but will have to wait for live games when I'm home to do this.
I confirmed last night that I can now get archived mlb.tv games but not live. But I'm not sure this is a mlbviewer problem as I'm having the same problem on my mac.
I may try getting output from the nex.def.py script but will have to wait for live games when I'm home to do this.
Are you a premium subscriber? autobahn.jar / nexdef.py are only for premium subscribers.
Non-premium subscribers will need rtmpdump version 1.5 and the patch I supply in the Patches directory. Also, there's an open issue with ffmpeg/mplayer for live games. It would be possible to hear the audio portion if you add -novideo to your video_player option, but the video stream makes mplayer very unhappy.
Also, if you are a premium subscriber, NexDef was down for part of last night.
Yes, I am a premium subscriber. I'm trying to attach my nexdef.py results; sorry but I couldn't figure out a way to paste so attached file. Audio for this game works but still no live tv when pressing enter. I uploaded the attachment but am not sure it's attached so you can access it or not.
Most of the time, I only hear about it when it doesn't work.
well, i was excited too early. now it doesn't work anymore. i tried both mplayer and vlc. i get similar output errors. this is from vlc... i also can't watch archived games, but top plays work just fine. any ideas? thanks so much!
Code:
Quote:
STREAM: MLB_GAME_VIDEO_SEAKCA_HOME_20090507_MLB_FLASH_600K_STREAM
BPS : 600
MS : 55064014[flv @ 0xb1ce3110]Unsupported video codec (7)
well, i was excited too early. now it doesn't work anymore. i tried both mplayer and vlc. i get similar output errors. this is from vlc... i also can't watch archived games, but top plays work just fine. any ideas? thanks so much!
Unsupported codec means the version of ffmpeg included in your distribution's vlc or mplayer is too old for the H.264/AAC streams from MLB.TV.
You MUST recompile your media player from the latest sources. Additionally, we received a fix from the ffmpeg team on April 15 so it's even more important to build from latest sources to get this fix.
See the REQUIREMENTS document for rebuilding mplayer.
I'll test with VLC tonight and get instructions included in that document if it works for me.
Yes, I am a premium subscriber. I'm trying to attach my nexdef.py results; sorry but I couldn't figure out a way to paste so attached file. Audio for this game works but still no live tv when pressing enter. I uploaded the attachment but am not sure it's attached so you can access it or not.
That's very strange. You are not getting a URL from the SOAP requests. The only thing I notice right now (I can look closer later) is that MLB can't figure out where you are to apply blackout rules. I don't know if this is why you are not getting a url though.
Well, it may have been the nexdef issues last night causing me a problem, but no more "Uncaught errors" at the moment.
One thing down, onto the next...*g* I hit enter on the game, mplayer comes up, and I get:
"[flv @ 0x8da2120] skipping flv packet: type 18, size 141, flags 0
[h264 @ 0x8d97b20] AVC: Consumed only 1 bytes instead of 5346
vidixlib: PROBING: cyberblade
[cyberblade] Error occured during pci scan: Operation not permitted"
and so on...
then
"vidixlib: no suitable driver can be found"
I did rebuild mplayer exactly as in the instructions... Obviously this is far more likely an mplayer issue than mlbviewer, and I'm looking there as well, but if anyone's encountered this or has any advice, I'm all ears. Thank you!
mplayer is attempting to use the xvidix output driver, something that is a very bad idea. Try adding "-vo xv" to the mplayer string. Actually, try just playing a local video file using that command:
mplayer -vo xv filename.avi
If that doesn't work, then mplayer isn't compiled with the xvideo extension and you'll need to recompile it. Which instructions did you use and what distro are you running?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.