LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-05-2010, 06:25 PM   #2881
kweisen
Member
 
Registered: May 2006
Location: Englewood, Fl
Distribution: MInt 17
Posts: 57

Rep: Reputation: 0
Smile


Quote:
Originally Posted by daftcat View Post
I'm sorry. I meant what does your audio_player line look like:

Code:
$ grep audio_player ~/.mlb/config
Depending on what you have in the audio_player line, it takes a little while for cache to fill before playback starts. But we already saw in a previous quote that mplayer wasn't happy and we have to figure out why.

Try this line in your config since this seemed to work when playing a regular file:

Code:
audio_player=mplayer -ao alsa -cache 128
This should take about 2-4 seconds of rtmpdump output before mplayer begins playback.

Another thing you can try is this.

I have just checked in a fix for test/gamedayaudio.py which is a test script that runs outside of the curses "gui" and provides a LOT more detail. It also simply writes the audio stream to the disk. This is helpful in this case because you can record a few seconds of audio, and then run mplayer over that file on disk to get only the mplayer relevant messages.

Try this:

Code:
$ cd mlbviewer-svn/
$ test/gamedayaudio.py 14-264187-2010-05-03
This will start downloading the audio stream rather quickly. So Ctrl-C it after just a few seconds worth of audio is downloaded. That's all we need.

Now do the following:

Code:
$ mplayer 14-264187-2010-05-03.mp3 | tee mplayer.log
If that works, then simply change your config to audio_player=mplayer. You can always fine tune it with cache options and -ao alsa later. If that doesn't work, post mplayer.log here.
daftcat:

I keep trying different things, but in answer to your last message:

grep audio_player ~/.mlb/config
audio_player=mplayer -cache 64 -really-quiet


Then, I did modify this line as your suggested, still did not work.

I then ran your test script and got this:

:~$ cd mlbviewer-svn
kim@debian:~/mlbviewer-svn$ test/gamedayaudio.py 14-264187-2010=05-03
These are the cookies we have received so far :
0 : <Cookie SESSION_1=flowId%3D%3D%3Dregistration.wizard%7Ewf_c_id%3D%3D%3Dmlb%7Ewf_flowId%3D%3D%3Dregistration. wizard%7Estage%3D%3D%3D3 for .mlb.com/>
1 : <Cookie appacc=mlb for .mlb.com/>
2 : <Cookie ipid=6910222 for .mlb.com/>
Traceback (most recent call last):
File "test/gamedayaudio.py", line 125, in <module>
cj.save(COOKIEFILE,ignore_discard=True)
File "/usr/lib/python2.5/_LWPCookieJar.py", line 83, in save
f = open(filename, "w")
IOError: [Errno 13] Permission denied: 'mlbcookie.lwp'

so, no audio streaming.

Any thoughts?
 
Old 05-06-2010, 12:16 AM   #2882
JimSquire
LQ Newbie
 
Registered: May 2010
Location: St. Louis, MO
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
Works fine on XP Pro. That's what I've tested with.
OK, thanks. I installed Cygwin, but for some reason I can't do much of anything in the command window when I run it, so I'll probably just uninstall and start over.
 
Old 05-06-2010, 10:56 AM   #2883
edouble312
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 16
Quote:
Originally Posted by JimSquire View Post
OK, thanks. I installed Cygwin, but for some reason I can't do much of anything in the command window when I run it, so I'll probably just uninstall and start over.
just remember you have to install the packages with the cygwin installer, not in the command windows...
 
Old 05-06-2010, 01:14 PM   #2884
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by kweisen View Post
daftcat:

I keep trying different things, but in answer to your last message:

grep audio_player ~/.mlb/config
audio_player=mplayer -cache 64 -really-quiet


Then, I did modify this line as your suggested, still did not work.

I then ran your test script and got this:

:~$ cd mlbviewer-svn
kim@debian:~/mlbviewer-svn$ test/gamedayaudio.py 14-264187-2010=05-03
These are the cookies we have received so far :
0 : <Cookie SESSION_1=flowId%3D%3D%3Dregistration.wizard%7Ewf_c_id%3D%3D%3Dmlb%7Ewf_flowId%3D%3D%3Dregistration. wizard%7Estage%3D%3D%3D3 for .mlb.com/>
1 : <Cookie appacc=mlb for .mlb.com/>
2 : <Cookie ipid=6910222 for .mlb.com/>
Traceback (most recent call last):
File "test/gamedayaudio.py", line 125, in <module>
cj.save(COOKIEFILE,ignore_discard=True)
File "/usr/lib/python2.5/_LWPCookieJar.py", line 83, in save
f = open(filename, "w")
IOError: [Errno 13] Permission denied: 'mlbcookie.lwp'

so, no audio streaming.

Any thoughts?
Bingo!

Have you been switching between root and your normal user account?

Try this:

Code:
$ sudo chown -R kim mlbviewer-svn
$ sudo chown -R kim ~/.mlb
Then try again with the test script to produce a few seconds of audio (Ctrl-C after a few seconds), and run mplayer over that and post that log here.
 
Old 05-06-2010, 07:15 PM   #2885
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by edouble312 View Post
just remember you have to install the packages with the cygwin installer, not in the command windows...
Edouble, thanks for the 'how to do'. It was obviously top notch because I know next to nothing about computers yet I was able to get Mlbviewer running in Cygwin ..Windows 7. Everything works fine except for condensed games as they crap out ( mplayer locks up ) after a minute or so.

Major frustration was a permission problem with rtmpdump. I'm not going to tell anyone how long it took me to figure that out when even the the terminal was almost telling me exactly what was was wrong.

And Straycat, besides throwing the usual juice your way for Mlbviewer, I want to thank your baseball team for being so rotten that even the Palehose can win a series off of them. That Billy Butler should break the all-time record for GIDP in a season by the middle of August at the rate he is going.
 
Old 05-06-2010, 11:42 PM   #2886
edouble312
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 16
Quote:
Originally Posted by Wolfvorkian View Post
Everything works fine except for condensed games as they crap out ( mplayer locks up ) after a minute or so.
I had this problem with mplayer loading the rtmp stream, but since the last revision with rmtpdump support for condensed games, it seems to work just fine now...
 
Old 05-07-2010, 01:04 PM   #2887
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Wolfvorkian View Post
Edouble, thanks for the 'how to do'. It was obviously top notch because I know next to nothing about computers yet I was able to get Mlbviewer running in Cygwin ..Windows 7. Everything works fine except for condensed games as they crap out ( mplayer locks up ) after a minute or so.

Major frustration was a permission problem with rtmpdump. I'm not going to tell anyone how long it took me to figure that out when even the the terminal was almost telling me exactly what was was wrong.

And Straycat, besides throwing the usual juice your way for Mlbviewer, I want to thank your baseball team for being so rotten that even the Palehose can win a series off of them. That Billy Butler should break the all-time record for GIDP in a season by the middle of August at the rate he is going.
Hey! Watch what you say about my boys in blue. I can always trim out the palehoes from the listings in the next revision.

But man, Soria, what the heck happened last night?
 
Old 05-12-2010, 10:58 AM   #2888
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Mlb down?

I haven't been able to get anything but audio and that was nearly 12 hours ago. This morning, around noon EDT, they are still timing out everywhere as far as I can tell. Now I can't get even audio or get into the forum to read their cleanup for another screwup.

Anybody know anything other than it's broken? I got a game to watch in around an hour.
 
Old 05-12-2010, 06:17 PM   #2889
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Wolfvorkian View Post
I haven't been able to get anything but audio and that was nearly 12 hours ago. This morning, around noon EDT, they are still timing out everywhere as far as I can tell. Now I can't get even audio or get into the forum to read their cleanup for another screwup.

Anybody know anything other than it's broken? I got a game to watch in around an hour.
Sh!t happens.

But it looks like games are streaming again.
 
Old 05-12-2010, 06:49 PM   #2890
mchapter
Member
 
Registered: Apr 2010
Location: austin, tx
Distribution: osx 10.8.3
Posts: 46

Rep: Reputation: 17
So I'm trying to catch the first game of PHI@COL using soapevent.py wrapped in a juicy script to get the eventid, with a light pepper sauce, and because mlblistings.py returns two events delimited by a space (yay doubleheader!) the soapevent.py fails. That's just a tip for anybody else trying the same thing..

Recently I've only been able to either select 800k or 1200k but not any of the lower or higher bitrates for live or archived games. Any thoughts? I'm pretty sure nothing has changed on my end.
 
Old 05-12-2010, 08:29 PM   #2891
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Quote:
Originally Posted by mchapter View Post
Recently I've only been able to either select 800k or 1200k but not any of the lower or higher bitrates for live or archived games. Any thoughts? I'm pretty sure nothing has changed on my end.
They haven't been archiving the 1800k streams. Lower bit rates, I haven't looked at, but for a few weeks now all the (archived) games I've looked at only have 1200k streams.
 
Old 05-13-2010, 12:16 AM   #2892
vclawson
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
mplayer: No such file or directory

When running mlbviewer I am getting to the listings but when I try to play a game I am getting the following:
mplayer: could not connect to socket
mplayer: No such file or directory

I'm a complete noobie here so please help. I have searched through the thread for this but was unable to find a solution.
 
Old 05-13-2010, 01:18 AM   #2893
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
Sh!t happens.

But it looks like games are streaming again.
"Sh!t happens"!!! Absolutely no sympathy from our guru for the predicament I found myself in this morning. You wouldn't see this blase attitude out of him if he was getting "server error... try again later" if he was trying to tune into his beloved KC 'boils.

It fixed itself as suddenly as it broke. Calls to Mlb.techs around Dallas and then Manila didn't help any however the IP tech for my internet provider was able to login in under my userid and password and Voila!!, the games started streaming again. Go figure.
 
Old 05-13-2010, 09:53 AM   #2894
CCRS8
LQ Newbie
 
Registered: Apr 2010
Location: NC, USA
Distribution: Xubuntu
Posts: 29

Rep: Reputation: 1
Uh-oh...Big Papi's average hit .200:
http://sports.espn.go.com/boston/mlb...ory?id=5184313
 
Old 05-14-2010, 02:32 AM   #2895
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Wolfvorkian View Post
"Sh!t happens"!!! Absolutely no sympathy from our guru for the predicament I found myself in this morning. You wouldn't see this blase attitude out of him if he was getting "server error... try again later" if he was trying to tune into his beloved KC 'boils.

It fixed itself as suddenly as it broke. Calls to Mlb.techs around Dallas and then Manila didn't help any however the IP tech for my internet provider was able to login in under my userid and password and Voila!!, the games started streaming again. Go figure.
You know there's nothing mlbviewer can do to fix streaming errors on their side. Pretty much once the url is handed over to the player processes, it's out of my hands.
 
  


Reply

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



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 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:10 AM.

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
Open Source Consulting | Domain Registration