LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 05-06-2009, 10:03 PM   #1696
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76

Quote:
Originally Posted by dols View Post
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/
 
Old 05-06-2009, 11:07 PM   #1697
eveostay
LQ Newbie
 
Registered: Apr 2008
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
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)

Last edited by eveostay; 05-06-2009 at 11:10 PM.
 
Old 05-07-2009, 02:25 AM   #1698
Teleute
Member
 
Registered: Mar 2005
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by dols View Post
What does "java -version" say? Try using Sun's JVM instead of Gnu's JVM.
java version "1.5.0"
gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

I'll poke around at some different JVMs, then report back. Thanks!

Last edited by Teleute; 05-07-2009 at 02:27 AM.
 
Old 05-07-2009, 02:35 AM   #1699
Teleute
Member
 
Registered: Mar 2005
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
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".
 
Old 05-07-2009, 03:30 AM   #1700
JackRubysDog
Member
 
Registered: Feb 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by Teleute View Post
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.
 
Old 05-07-2009, 04:05 AM   #1701
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by Teleute View Post
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.
 
Old 05-07-2009, 04:18 AM   #1702
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by eveostay View Post
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:

http://subversion.tigris.org/

Step 2: Download the latest MPlayer source via svn:

$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

Step 3: Run the configure script with, at a minimum, the following options:

$ cd mplayer
$ sh configure --enable-dynamic-plugins --prefix=/usr

It's very important you use --prefix=/usr as you want to install this new
version of mplayer over your pre-distributed package.

Step 4: Run 'make'

$ make

Step 5: (as root), run 'make install'

$ make install

 
Old 05-07-2009, 11:45 AM   #1703
chomiak
LQ Newbie
 
Registered: Apr 2009
Posts: 28

Rep: Reputation: 15
archived games but not live

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.
 
Old 05-07-2009, 12:10 PM   #1704
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by chomiak View Post
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.
 
Old 05-07-2009, 02:37 PM   #1705
chomiak
LQ Newbie
 
Registered: Apr 2009
Posts: 28

Rep: Reputation: 15
Archived games but not live

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.
Attached Files
File Type: txt nexdef.txt (59.6 KB, 4 views)
 
Old 05-07-2009, 03:21 PM   #1706
itshardertotell
Member
 
Registered: Aug 2008
Posts: 38

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
Awesome! I love to hear to when it all works.

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)
 
Old 05-07-2009, 04:20 PM   #1707
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by itshardertotell View Post
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.
 
Old 05-07-2009, 04:30 PM   #1708
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by chomiak View Post
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.

Code:
blackout-status = 
    (blackout-status){
       locationCannotBeDeterminedStatus = ""
    }
I can look at this more later.
 
Old 05-07-2009, 06:16 PM   #1709
Teleute
Member
 
Registered: Mar 2005
Posts: 62

Rep: Reputation: 16
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!
 
Old 05-07-2009, 06:40 PM   #1710
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
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?
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 11:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM


All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration