LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-04-2009, 07:36 PM   #931
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Update to revision 108 if you don't want mlbviewer to break on 3/5


I'm feeling more than a little ripped off that so few WBC exhibition games are available on mlb.tv.

Now that I said that, I realized that the official WBC starts tomorrow, 3/5 and with it, they decided to be truly weird and annoying. Rather than streaming at 400 or 800, they chose 600K as the stream speed.

I've checked in SVN revision 108 to address this. It will copy the stream information to both 400 and 800 dictionaries so as not to break the code. The only thing is, I'm not updating the display code to figure out whether it's a 600 stream or not. If 600 becomes the new 400 come opening day, then I'll change the display code.
 
Old 03-04-2009, 07:36 PM   #932
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Before you report that mlbviewer is broken on 3/5/2009, update to the latest SVN revision (at least, rev 108.)
 
Old 03-04-2009, 09:05 PM   #933
trippinnik
LQ Newbie
 
Registered: May 2008
Posts: 11

Rep: Reputation: 0
Wohoo, WBC. I just got back from Japan, so I really want to watch China v. Japan. Anyway I've got rev 108, have you changed anything with regards to exiting the program? After I exit I can't type in the terminal anymore? Not a big deal. The other thing was since it's been a while since I configured mlbviewer I've forgotten if there was some kind of variable like %s to represent the mms address (so I can dumpstream it), can you help me out with that?
 
Old 03-04-2009, 09:22 PM   #934
trippinnik
LQ Newbie
 
Registered: May 2008
Posts: 11

Rep: Reputation: 0
Nevermind. After I logged in I searched the thread and got what I was looking for. mlbviewer is still so much better than the flash front end MLB has!
 
Old 03-05-2009, 02:19 AM   #935
Hoth
LQ Newbie
 
Registered: Jan 2007
Location: Northern California
Distribution: Kubuntu 8.10
Posts: 26

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
I was using mplayer-1.0rc2 that I built myself. I reinstalled the mplayer packaged by debian which is an SVN version (not sure if it's older or newer than rc2) and that seems to have fixed it. On the windows side, I downloaded an svn version with the gui. The gui is nice and the sound hisses quite a bit less, but still has a hiss/crackle to it. Not enough to be annoying though. Thanks Wolfvorkian!
I'm having the same sound problem, so on reading this I upgraded from kubuntu 8.10's standard 1.0rc2 to SVN-r28403-4.3.2. Didn't help at all for me, it's as bad as ever.

Amazingly, the mlb.com website is actually functioning perfectly (except for the tv sound driving me insane) and allowing me to watch games without mlbviewer so far this year. If I didn't know better, I'd think they'd started to care about us (but I do know better, so it's just an accident).

The really good news is that http://mlb.mlb.com/mlb/subscriptions/download.jsp indicates Windows Media Player is only required for 2008 and earlier season archives -- so the new player is apparently going to be an flv stream which should eliminate these WMV audio issues. Plus, it looks like we get 800K streams with the cheaper non-premium package this year.

Last edited by Hoth; 03-05-2009 at 03:06 AM.
 
Old 03-05-2009, 03:28 AM   #936
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by trippinnik View Post
Wohoo, WBC. I just got back from Japan, so I really want to watch China v. Japan. Anyway I've got rev 108, have you changed anything with regards to exiting the program? After I exit I can't type in the terminal anymore? Not a big deal. The other thing was since it's been a while since I configured mlbviewer I've forgotten if there was some kind of variable like %s to represent the mms address (so I can dumpstream it), can you help me out with that?
I don't know what's going on with the exit. It's probably something to do with the curses code but I don't know what or how. The curses.wrapper() call is supposed to clean up whether it exits normally or from an exception. Maybe if you post your video_player and audio_player entries from your config I can see if it has anything to do with that.

As for %s, yep, that's supported.
 
Old 03-05-2009, 03:41 AM   #937
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by Hoth View Post
I'm having the same sound problem, so on reading this I upgraded from kubuntu 8.10's standard 1.0rc2 to SVN-r28403-4.3.2. Didn't help at all for me, it's as bad as ever.

Amazingly, the mlb.com website is actually functioning perfectly (except for the tv sound driving me insane) and allowing me to watch games without mlbviewer so far this year. If I didn't know better, I'd think they'd started to care about us (but I do know better, so it's just an accident).

The really good news is that http://mlb.mlb.com/mlb/subscriptions/download.jsp indicates Windows Media Player is only required for 2008 and earlier season archives -- so the new player is apparently going to be an flv stream which should eliminate these WMV audio issues. Plus, it looks like we get 800K streams with the cheaper non-premium package this year.
Last year, Spring Training worked without mlbviewer. I believe the season before was the same way, too. It seems it's always Opening Day that they manage to break it for Linux.

As for the mplayer, I'm using debian's version which is dev-SVN-rUNKNOWN-4.1.2 (remarkably unhelpful!)
 
Old 03-05-2009, 03:52 AM   #938
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Revision 109, Daylight Saving Time miscalculation fixed

When Jesse or myself first wrote the time_offset and Daylight Saving Time detection code, one of us hardcoded 2008's end date in. This worked fine last year because the comparison today < Nov 2, 2008 always returned False. After 11/2/2008, this calculation doesn't work.

In other words....

I can't believe no-one has noticed or told me that I've been off by one hour for the last week or so.

Revision 109 fixes this by actually comparing today to start and end dates of Daylight Saving time. I also added support for next year so I won't have to think about that code until 2011.

Update to revision 109 or your display times will be off by an hour. Of course, maybe you all have been correcting this with time_offset config file option but I'd rather mlbviewer work correctly with a default configuration.

WBC time!!!! If I hadn't fixed this, I'd have been an hour late to the party.
 
Old 03-05-2009, 10:33 AM   #939
trippinnik
LQ Newbie
 
Registered: May 2008
Posts: 11

Rep: Reputation: 0
video:
<code>video_player=xterm -e mplayer -cache 2048 -quiet -dumpstream -dumpfile mlb.asf %s
</code>
Audio:
<code>
audio_player=xterm -e mplayer -cache 64 -quiet -playlist
</code>
 
Old 03-05-2009, 12:44 PM   #940
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
audio straycat

I was watching a bit of the archived Japan-China game and there is definitely an audio hiccup. Around every 30 sec, I would lose the audio for a sec at most. Whether related to your problem, I haven't a clue. Video never acted up though, it is/was fine.
 
Old 03-05-2009, 02:50 PM   #941
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by Wolfvorkian View Post
I was watching a bit of the archived Japan-China game and there is definitely an audio hiccup. Around every 30 sec, I would lose the audio for a sec at most. Whether related to your problem, I haven't a clue. Video never acted up though, it is/was fine.
It got better. The start of the stream had problems but as I got further into the game, it became smooth. It's the first time they've streamed at 600K (as near as I can tell) so maybe the hamsters weren't used to pedaling that fast. :-)

It's good to see MLB.TV is at least trying new things in Spring Training instead of waiting until Opening Day to screw everything up.

Oh, and no, this hiccupping is different from the hiss/crackle that I used to have with 1.0rc2 (fixed since I moved back to official debian package) and still kind of have with the Windows release.

Btw, does mplayer do flv? I assume it does because it does just about everything under the sun except brew my morning coffee. :-( (Maybe that's in 1.0rc3? ;-)

Last edited by daftcat; 03-05-2009 at 02:54 PM.
 
Old 03-05-2009, 02:56 PM   #942
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by trippinnik View Post
video:
<code>video_player=xterm -e mplayer -cache 2048 -quiet -dumpstream -dumpfile mlb.asf %s
</code>
Audio:
<code>
audio_player=xterm -e mplayer -cache 64 -quiet -playlist
</code>
Is the noecho (e.g. can't see your typing) problem with the mlbviewer xterm or the mplayer xterm?

I'll test this later tonight.
 
Old 03-05-2009, 03:03 PM   #943
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Don't you hate it when someone asks a question and then answers their own question five minutes later?

I downloaded a sample flv and I'm sufficiently satisfied that mplayer supports it (yet reasonably suspicious that mlb will figure out a way to muck it up.)
 
Old 03-05-2009, 07:24 PM   #944
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
mlblistings.py in revision 112 (check-ins were fast and furious!)

New application using the MLBviewer library: mlblistings.py

Spring Training with its limited media coverage was pissing me off. Rather than scrolling through each game individually in mlbviewer to find the one I wanted to watch, I wrote a small application to display the day's listing with media information at a glance.

I have purposely made the output grep-able and awk-able using a colon delimiter, perhaps at the expense of human-readability. But, the output should be quite predictable for developing your own perl or shell scripts.

I have also tried to keep the code simple so you can use it as a reference application for developing your own MLBviewer applications or front-ends. The stream ID's that follow the A: and V: fields (for audio and video, respectively) can be used in conjunction with the test/mlbgameid.py script. The times are in a format the at(1) command supports so you can write your own cron/at jobs to play your games automatically.

A future revision will likely support an autoplay feature independent of mlbgameid.py to demonstrate how to use the gamestream objects in MLBviewer.

Give it a whirl and let me know what you think.

Code:
matthew@tango:~/mlbtv/svn/mlbviewer$ ./mlblistings.py
MLB.TV Listings for 3/5/2009
 F:  1:30 AM: 2009/03/05/chnint-jpnint-1 A:   None V: 912731
 F:  9:05 AM: 2009/03/05/purint-bosmlb-1 A:   None V:   None
 F:  9:05 AM: 2009/03/05/usaint-phimlb-1 A: 907247 V:   None
 F: 10:05 AM: 2009/03/05/flomlb-balmlb-1 A:   None V:   None
 F: 10:05 AM: 2009/03/05/panint-houmlb-1 A: 912864 V:   None
 F: 10:05 AM: 2009/03/05/pitmlb-cinmlb-1 A:   None V:   None
 F: 10:05 AM: 2009/03/05/wasmlb-detmlb-1 A:   None V:   None
 F: 10:15 AM: 2009/03/05/canint-nyamlb-1 A:   None V:   None
 F: 11:05 AM: 2009/03/05/domint-slnmlb-1 A: 907256 V:   None
 F: 11:05 AM: 2009/03/05/itaint-nynmlb-1 A:   None V:   None
 F: 11:05 AM: 2009/03/05/nedint-minmlb-1 A:   None V:   None
 F: 11:05 AM: 2009/03/05/venint-atlmlb-1 A:   None V:   None
 F: 12:05 PM: 2009/03/05/anamlb-seamlb-1 A:   None V:   None
 F: 12:05 PM: 2009/03/05/ausint-milmlb-1 A: 907265 V:   None
 F: 12:05 PM: 2009/03/05/chamlb-lanmlb-1 A:   None V:   None
 F: 12:05 PM: 2009/03/05/oakmlb-sfnmlb-1 A: 907269 V:   None
 F: 12:05 PM: 2009/03/05/rsaint-oakmlb-1 A:   None V:   None
 F: 12:05 PM: 2009/03/05/sdnmlb-texmlb-1 A: 907278 V:   None
 F: 12:10 PM: 2009/03/05/mexint-colmlb-1 A:   None V:   None
 F:  1:05 PM: 2009/03/05/chamlb-chnmlb-1 A:   None V: 913096
It uses the speed setting in your ~/.mlb/config file to return the
preferred video speed. It also uses audio_follow to return the preferred audio stream.

You can also use startdate=m/d/yy argument to produce listings in the future (or the past.)

Code:
matthew@tango:~/mlbtv/svn/mlbviewer$ ./mlblistings.py startdate=03/06/09
MLB.TV Listings for 3/6/2009
 P:  1:30 AM: 2009/03/06/tpeint-korint-1 A:   None V: 912761
 P: 10:05 AM: 2009/03/06/cinmlb-minmlb-1 A: 907296 V:   None
 P: 10:05 AM: 2009/03/06/flomlb-bosmlb-1 A:   None V:   None
 P: 10:05 AM: 2009/03/06/nynmlb-slnmlb-1 A:   None V:   None
 P: 10:05 AM: 2009/03/06/tbamlb-pitmlb-1 A: 912152 V:   None
 P: 10:05 AM: 2009/03/06/wasmlb-balmlb-1 A: 907300 V: 909514
 P: 12:05 PM: 2009/03/06/arimlb-mexint-1 A:   None V:   None
 P: 12:05 PM: 2009/03/06/ausint-chamlb-1 A:   None V:   None
 P: 12:05 PM: 2009/03/06/colmlb-sdnmlb-1 A: 907302 V:   None
 P: 12:05 PM: 2009/03/06/lanmlb-chnmlb-1 A: 907313 V:   None
 P: 12:05 PM: 2009/03/06/milmlb-clemlb-1 A: 907320 V:   None
LB: 12:05 PM: 2009/03/06/seamlb-oakmlb-1 A: 907326 V:   None
LB: 12:05 PM: 2009/03/06/sfnmlb-anamlb-1 A: 907330 V:   None
 P: 12:05 PM: 2009/03/06/texmlb-kcamlb-1 A: 907332 V:   None
 P:  4:05 PM: 2009/03/06/houmlb-atlmlb-1 A: 910555 V:   None
 P:  4:05 PM: 2009/03/06/phimlb-tormlb-1 A:   None V:   None
 P:  4:15 PM: 2009/03/06/detmlb-nyamlb-1 A:   None V:   None
 P:  7:30 PM: 2009/03/07/atlint-chnint-1 A:   None V:   None

Last edited by daftcat; 03-05-2009 at 07:27 PM.
 
Old 03-05-2009, 11:16 PM   #945
trippinnik
LQ Newbie
 
Registered: May 2008
Posts: 11

Rep: Reputation: 0
The problem is in the original terminal (actually konsole).
On the sound / video issues people are reporting, are you all using Ubuntu or some variation? I'm using OpenSuse 11.1, and didn't have an hiccups watching WBC China and Japan today. Of course I recorded and watched it later, so maybe caching it helps?
 
  


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 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


All times are GMT -5. The time now is 11:58 PM.

Main Menu
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