LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-06-2009, 12:53 AM   #946
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76

Quote:
Originally Posted by trippinnik View Post
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?
Worked okay with me using putty and your video_player command but a real pain in the ass given my setup. My Linux machine is a remote laptop that I boot once, xhost +, and try to never have to use it locally again. It's external display is a wall-mounted LCD. So I'm pretty committed to keeping mlbviewer working since starting the web version was a real pain.

I'm using Debian 4.0 (etch):

Linux tango 2.6.18-6-686 #1 SMP Sun Feb 10 22:11:31 UTC 2008 i686 GNU/Linux

I don't have kde so I can't test with konsole. If you set your TERM to xterm (export TERM=xterm) before starting mlbviewer, does it still exit without keystroke echo? Do you have any issues with other curses applications like mc, jack, or aumix?

Maybe I'll try the kubuntu live CD this weekend.

Any particular reason why you use xterm -e (besides the fact that Jesse set that as the default?) I don't remember why Jesse wanted to spawn an external xterm but I guess his rationale was good enough to leave it in. It's in this thread somewhere.

But given my setup, I find using a video_player setting like...

Code:
video_player=mplayer -user-agent "WMPlayer/11.0.5721.5230" -prefer-ipv4 -ao alsa -vo xv -fs -cache 8192
show_player_command=True
...keeps everything in the same window (in my case a remote putty window) including my ability to control mplayer without having to windows (which is switching machines in my setup.)

As for the hiccup sound, I recorded too and still got hiccups in the first 5 or 10 minutes but it cleared up. I've also tried recording for the hiss/crackle problem and that I've decided is definitely in the mplayer version I was using rather than the stream itself.
 
Old 03-06-2009, 03:06 AM   #947
floydwilde
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
Debian Package

Speaking of Debian, has anyone filed an itp or worked on a .deb of mlbplayer? I'd like to help out or get the ball rolling on that if no one has.
 
Old 03-06-2009, 03:35 AM   #948
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by floydwilde View Post
Speaking of Debian, has anyone filed an itp or worked on a .deb of mlbplayer? I'd like to help out or get the ball rolling on that if no one has.
Actually, I'd rather you didn't.

Mlbviewer is easy enough to find from Google and Sourceforge (and simple enough to install) but I want to keep it low profile all the same. I'm not sure how MLB would feel about it. I'd rather just fly it under their radar as long as I can.
 
Old 03-06-2009, 04:21 AM   #949
floydwilde
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
hmm disappointing. I respect that you said not to. But I don't think those are good reasons. From what I see the code is licensed under GPLv2, so there is no reason not to. Saying mlb would care is like saying tpb hosts copyrighted material. Anyhow if you change your mind just ping me.
 
Old 03-06-2009, 04:25 AM   #950
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
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.
The new regular-season flash based media player is in beta now. Works fine. The highest resolution is too slow and jerky for me in fullscreen mode, but the slightly lower res options are perfect.

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.
I got that problem for the first inning or so of the game, but then for the rest of the game it was perfect with none of the previous issues.

The hiss/pop stuff must only be the 400K streams, I guess... or only spring training games, or something.

Last edited by Hoth; 03-06-2009 at 05:23 AM.
 
Old 03-06-2009, 08:51 AM   #951
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by floydwilde View Post
hmm disappointing. I respect that you said not to. But I don't think those are good reasons. From what I see the code is licensed under GPLv2, so there is no reason not to. Saying mlb would care is like saying tpb hosts copyrighted material. Anyhow if you change your mind just ping me.
Not everyone feels the same about free software (free as in speech, not as in beer.) MLB.com could feel threatened that we're circumventing their advertising revenue and thanks to open architectures and GPL (which by the way, the original developer chose the license and I don't know enough about the different licenses to choose a different one), there is the possibility to provide features that go above and beyond the service level we paid for (e.g. recording.) Speaking of which, 2009 presents a particularly sticky situation where one of the selling points of the premium service is DVR functionality. There's no easy way to provide that in mlbviewer for only the Premium customers so I'll probably just make it easier for you guys to implement your own DVR's based off mlbviewer code without actually making it an official feature of mlbviewer.

We live in a nervous and litigious time where, for example, Warner Music can pressure YouTube into removing audio streams from any videos that contain copyrighted music even if there's a) no financial gain for having that music in those videos, and b) they are possibly and likely losing customers because of their actions. The record companies have proven to be real idiots and jerks in the Internet age and I don't want to find out if MLB would follow suit.

MLB has proven litigious in the past. Now granted, we're not SlingBox. But I'm just not interested in provoking them. I like free software and I like baseball, but I like baseball more. I don't want to be a free software crusader (or martyr if things got really ugly with MLB.com legal team) just to watch baseball.

I'm not the original developer of mlbviewer but I am the only active developer on the project now. I don't feel entitled to change the license (nor do I understand the various licenses enough to choose the right one) but I do feel like I can make my wishes known. I'm pretty sure that the existing GPL license on the software means you can go ahead and deb it up, but my personal preference is that you don't (especially because whatever changes they make in 2009 service which we likely won't see until Opening Day might render mlbviewer useless or at least non-functional for some time.)

As I said, we are pretty easy to find off Google and last year, I made an effort to find newsgroup postings that asked about mlb.tv and linux but didn't refer to us. Right now, I'd like to wait and see how 2009 service changes affect us.

So let's wait it out. I may feel differently about third-party repackaging of my code once I see how we handle 2009 season and if and when we see posts to official mlb.com support discussion boards and mlb.com's response.

Thanks for respecting my wishes even if you disagree with them.
 
Old 03-06-2009, 09:03 AM   #952
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Hmmm....interesting. It actually looks like mlbsupport on their official discussion boards always prefaces his comments with linux is not a supported os but has at least once linked to this thread and another occasion asked for feedback if linux users figured it out. Again, let's see how 2009 changes affect us and I'll monitor the attitude on the mlb.tv discussion boards.
 
Old 03-06-2009, 11:08 AM   #953
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
Not everyone feels the same about free software (free as in speech, not as in beer.) MLB.com could feel threatened that we're circumventing their advertising revenue and thanks to open architectures and GPL (which by the way, the original developer chose

[snip]
Of course this would be their bitch ( not running the Madison Ave grouping on their web page) along with an ideological zeal against free software. Coming from a classic monopoly, this is rich but it is what it is.

I suppose you are already onto this but it sounds like more fiddling on their part meaning more screwups, etc. http://tinyurl.com/8u8lm9
 
Old 03-06-2009, 11:57 AM   #954
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by Wolfvorkian View Post
Of course this would be their bitch ( not running the Madison Ave grouping on their web page) along with an ideological zeal against free software. Coming from a classic monopoly, this is rich but it is what it is.

I suppose you are already onto this but it sounds like more fiddling on their part meaning more screwups, etc. http://tinyurl.com/8u8lm9
I didn't realize they were already trying the beta of the new player. Good for them for actually using Spring Training for what it's here for instead of waiting for Opening Day to try out all the new players.

Well, the good news is that we handled two nights of WBC live games with barely an incident. The stream hiccups appear to also be picked up by the BETA player. I guess we truly are "feature" equivalent. :-)

I was surprised to see the mlbsupport admin link to this thread in one of the many "why not linux?" threads on the official boards.
 
Old 03-07-2009, 04:06 AM   #955
trippinnik
LQ Newbie
 
Registered: May 2008
Posts: 11

Rep: Reputation: 0
I've still got the no echo in xterm. It never used to happen, but since it doesn't affect anyone else don't worry about it. And the external xterm is because the console output gets all chewed up when mplayer starts doing the dumpstream stuff.
As for you're remote situation I do that too, but since I dump the file to disk I just use sshfs and mount my home folder on the desktop so I can play it on my laptop.

Last edited by trippinnik; 03-07-2009 at 05:27 AM.
 
Old 03-07-2009, 02:47 PM   #956
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by trippinnik View Post
I've still got the no echo in xterm. It never used to happen, but since it doesn't affect anyone else don't worry about it. And the external xterm is because the console output gets all chewed up when mplayer starts doing the dumpstream stuff.
As for you're remote situation I do that too, but since I dump the file to disk I just use sshfs and mount my home folder on the desktop so I can play it on my laptop.
Yeah, I'm stumped.

My remote setup is pretty sweet. It's a Thinkpad T21 running Debian and permanently docked into a port replicator. The port replicator is hooked into the wall mounted LCD and my stereo. I have another laptop I use to drive it through a putty session. (It's my work laptop so it has to remain a Windows machine.) As I posted earlier, I run mlbviewer within screen(1) so I can detach it from the putty session. I also rip and watch movies on this machine. I used to have to walk over to the laptop and start a web player game so I was stoked when Jesse wrote mlbviewer. Now the only time I have to do anything directly on the laptop is to login and type xhost + whenever it boots.

I'm getting a new laptop for the couch (e.g. leave the work laptop at work)--a Thinkpad X41 tablet convertible. I'm looking forward to being able to watch recorded games and movies in tablet mode.
 
Old 03-07-2009, 03:03 PM   #957
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Sun 3/8/2009 known bug not going to be fixed in time

Sunday 3/8/2009, there's too many listings for a standard 80x24 xterm window. If you try to scroll past the TBD at TBD game at 1:30 PM ET, you'll run into a curses crash.

The workaround is just to resize your xterm to 30 lines or more before starting mlbviewer.

The actual fix requires a fair bit of code and won't be fixed in time. I want to fix it because the fix would give us a lot more flexibility (and maybe speed) switching between screens (like Top Plays and Bookmarks.) But it's not a trivial fix and I won't have time to do it today/tonight.

It's really just the ST and WBC together that's put so many games on the day. We can handle 20 listings in a day (which is usually plenty in a 30 team league), but Sunday has 22 games scheduled. Just run mlbviewer in a longer terminal until WBC is over.
 
Old 03-08-2009, 03:57 PM   #958
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
off by an hour, again! :( (fixed in rev 113)

Revision 113 should fix the EDT/EST conversion to UTC. From UTC, we apply the timezone -or- we apply the time_offset in the config file.

Someone else can review this for me if they wish but my listings are now correct so it looks like I'm doing it right now.

Code:
    DAYLIGHT = {
        '2007': (datetime.datetime(2007,3,11),datetime.datetime(2007,11,4)),
        '2008': (datetime.datetime(2008,3,9),datetime.datetime(2008,11,2)),
        '2009': (datetime.datetime(2009,3,8),datetime.datetime(2009,11,1)),
        '2010': (datetime.datetime(2009,3,14),datetime.datetime(2009,11,7)),
               }
    now = datetime.datetime.now()
    if (now >= DAYLIGHT[str(now.year)][0]) \
       and (now < DAYLIGHT[str(now.year)][1]):
        dif = datetime.timedelta(0,14400)
    else:
        dif = datetime.timedelta(0,18000)

    utc_tuple = datetime_tuple + dif
First we define the dates for Daylight Saving Time for each year. I realize now it's not necessary to have past years.

Get the current datetime. If the datetime falls between the DST dates for the current year, create a dif (time offset) of 4 hours. Else, create a time offset of 5 hours.

datetime_tuple is the datetime we receive from the mlb listings which is in Eastern Time. So apply the correct time offset to achieve UTC.

From UTC, we can apply a custom time_offset (from the config file) or use the local time zone to get local times rather than Eastern Time.
 
Old 03-11-2009, 11:51 AM   #959
bodly
LQ Newbie
 
Registered: Mar 2009
Distribution: Kubuntu
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
Revision 113 should fix the EDT/EST conversion to UTC. From UTC, we apply the timezone -or- we apply the time_offset in the config file.

Someone else can review this for me if they wish but my listings are now correct so it looks like I'm doing it right now.

Code:
    DAYLIGHT = {
        '2007': (datetime.datetime(2007,3,11),datetime.datetime(2007,11,4)),
        '2008': (datetime.datetime(2008,3,9),datetime.datetime(2008,11,2)),
        '2009': (datetime.datetime(2009,3,8),datetime.datetime(2009,11,1)),
        '2010': (datetime.datetime(2009,3,14),datetime.datetime(2009,11,7)),
               }
    now = datetime.datetime.now()
    if (now >= DAYLIGHT[str(now.year)][0]) \
       and (now < DAYLIGHT[str(now.year)][1]):
        dif = datetime.timedelta(0,14400)
    else:
        dif = datetime.timedelta(0,18000)

    utc_tuple = datetime_tuple + dif
First we define the dates for Daylight Saving Time for each year. I realize now it's not necessary to have past years.

Get the current datetime. If the datetime falls between the DST dates for the current year, create a dif (time offset) of 4 hours. Else, create a time offset of 5 hours.

datetime_tuple is the datetime we receive from the mlb listings which is in Eastern Time. So apply the correct time offset to achieve UTC.

From UTC, we can apply a custom time_offset (from the config file) or use the local time zone to get local times rather than Eastern Time.
The logic looks sound to me. Thanks for all your hard work.

Jim
 
Old 03-11-2009, 05:00 PM   #960
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by bodly View Post
The logic looks sound to me. Thanks for all your hard work.

Jim
Thanks for your code review.
 
  


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 10:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration