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 04-11-2008, 05:00 PM   #241
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76

Quote:
Originally Posted by Theophile View Post
Daftcat,

Could I get a working copy of your mlbrecord script? I'd like to try out the "DVR" method tonight with the Sox/Yanks game.
It's not really even alpha but I'll let you test this. You only, though. (Okay, maybe jkr too....)

I don't really have as much time to develop as it looks like I do and it might hit the skids fast soon. So I'd like to release an alpha to an inner circle of users on Monday but I probably won't have a general release until the end of the month. That should give jkr some time to nail down the networking code.

Theophile: check your email.
 
Old 04-11-2008, 05:09 PM   #242
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by jkr View Post
Color is great for the interface. Splash screen sounds fine to add, but as with other things, I would say there should be an option to turn it off (splash=0). I would go crazy if I had to deal with the emacs splash screen every time I opened it up to edit something.

As a promise of cool stuff in the future, though, and speaking of interfaces, I just wanted to send you to a link of about 5 minutes worth of work, using wxPython and the already existing classes. Great thing about this gui library is that it's already cross-platform (much more so than python-curses). This is just an example, but I think some people might like this. And if anyone is actually good at programming wxPython, you know, make yourself heard.

http://www.columbia.edu/~jr2075/xmlbviewer.png

Daftcat-- I'll add those bits to the file soon. Things sound great. I might not get the chance to update the official script, so in the next day or two, I'll set up an svn repos on sourceforge, and people can update, branch, etc. to their hearts' content.

I don't know wxPython, but as of a week ago, I didn't know python either. I'll look at wxPython but I was also thinking of a tk gui. Though honestly, my particular setup loves console apps and despises gui's.

Of course, the splash would be disable-able.

I'd rather you focus your effort on getting the library and api settled and separating the engine from the gui. I know there will be folks who will develop gui's once the engine is in place. I, for one, will probably be forever tinkering with the curses gui. Though I wouldn't mind scripting support or a cli like:

mlbcmd video 800 4-11-2008 kc

to play the 800k stream today for whatever game the Royals are playing. This is something I could develop once the engine and API are separate from the gui and "import"-able.
 
Old 04-11-2008, 05:18 PM   #243
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Another thing I was thinking of looking at the tv listing is supporting all the entries including condensed games and top plays. This might be something better suited for a real gui where screen real estate isn't so limited. But this would also require engine support in filling out the tv listings dictionary and supporting different methods for getting the game id. Does python support method overloading? e.g.

gameStream(email,pass,speed,blackout)

and

gameStream(email,pass,feed,speed,blackout)

It would be good to get a project page up somewhere so we can wishlist this and determine what and what shouldn't be supported by default and what will have hooks for future development or outside contribution. Like if the engine supported parsing top play listings, someone else could contribute the code to select them.
 
Old 04-11-2008, 07:18 PM   #244
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Looks like we have a new status code. According to the Scoreboard page, it looks like 'IP' is being translated to 'Delayed Start - Rain'
 
Old 04-11-2008, 09:45 PM   #245
mr_e_uss
LQ Newbie
 
Registered: Apr 2008
Posts: 20

Rep: Reputation: 0
Thanks to everyone here, I am finally enjoying MLB TV on Ubuntu.

My latest problem is this: when the video is streaming (using the default "xterm -e mplayer" settings in mlbviewer.py), the video display is very small. I can toggle mplayer back and forth between fullscreen and not fullscreen, but even in fullscreen mode, the video itself stays the size of the original small mplayer window. In other words, in fullscreen mode the mplayer window becomes fullscreen, but the video remains the same small size -- the rest of the fullscreen window is black. Any ideas?

Thanks...
 
Old 04-11-2008, 10:42 PM   #246
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
mr_e_uss:

Sounds like you are using the x11 video out instead of xv, which allows scaling.

Try adding "vo=xv" to ~/.mplayer/config, or just add "-vo xv" to your custom video_player command.

Also, you'll see that the 4:3 games still have black bars on the side. You can either crop (it's discussed earlier in the thread) or make use of mplayer's panscan feature. It should be bound to e and w. Press e a few times to make the image fill the screen.

daftcat:

I made a sourceforge project page. It will take them a day or two to approve it. Then when I upload the separated-out code for the libraries and the player as it now stands, I'll open up access. I think I'll need your email to register you, though. Could you mail me that?

anyone else:

I know other people have hacked around on this as well. If anyone else wants svn access get in touch. Otherwise, you can also just send individual patches in.

Best,
Jesse
 
Old 04-11-2008, 10:50 PM   #247
mr_e_uss
LQ Newbie
 
Registered: Apr 2008
Posts: 20

Rep: Reputation: 0
Thanks jkr.

Unfortunately, after adding the vo=xv line to ~/.mplayer/config, this is what I see on the mplayer console:

[VO_XV] It seems there is no Xvideo support for you video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.htm#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11

Argh...
 
Old 04-11-2008, 10:52 PM   #248
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
I'm getting this.

Traceback (most recent call last):
File "/home/nick/Desktop/mlbviewer2.py", line 570, in <module>
datadct['user'],
KeyError: 'user'
 
Old 04-11-2008, 11:00 PM   #249
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
mr_e_uss:

Quote:
Unfortunately, after adding the vo=xv line to ~/.mplayer/config, this is what I see on the mplayer console:

[VO_XV] It seems there is no Xvideo support for you video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.htm#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11
So what happens when you run xvinfo?

hanophix:

What version are you using? Sounds like you probably didn't switch to the new format of the config file (use EQUAL ("=") instead of COLON (":")).
 
Old 04-11-2008, 11:04 PM   #250
mr_e_uss
LQ Newbie
 
Registered: Apr 2008
Posts: 20

Rep: Reputation: 0
Here's what xvinfo tells me:

X-Video Extension version 2.2
screen #0
no adaptors present
 
Old 04-11-2008, 11:06 PM   #251
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
JKR Got it working...but getting an error when I click a game
mplayer doesn't start and error appears "I'll be more useful in beta"

ARCHIVED GAMES APPEAR TO WORK

Last edited by hanophix; 04-11-2008 at 11:16 PM.
 
Old 04-11-2008, 11:10 PM   #252
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
mr_e_uss

Well that's a problem with your Xorg config or your video card driver. You could play around with other outputs ("mplayer -vo help" to see a list, maybe try -vo sdl), but really you should do some googling on your video card. Which card do you have, and which distribution? (If you don't know the card, run lspci and look for something with "Graphics" in the name.)
 
Old 04-11-2008, 11:13 PM   #253
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
jkr

have you thought about using urllib.urlencode() instead of clientform() and/or saving the cookie to the disk using cookielib.LWPCookieJar()?

I'll give something a go this weekend. I'd really like to get to the bottom of the concurrent sessions issue.

I'll also have some better error handling for you.

mr_e_uss

What video card are you using? Maybe you need to find a third-party driver for it that will support xv?

I'm wondering if the -vo sdl might help (if you have sdl installed.)
 
Old 04-11-2008, 11:13 PM   #254
mr_e_uss
LQ Newbie
 
Registered: Apr 2008
Posts: 20

Rep: Reputation: 0
lspci says (among other things):
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400
 
Old 04-11-2008, 11:17 PM   #255
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
daftcat,

Thanks for mlbrecord. It worked like a peach in every instance. I tested it out on some archived games and it caught them all. Then I used it to build myself a 30-minute buffer for the Sox/Yanks game, the 800k feed. I didn't have a single hiccup the entire time.

Except when mplayer and xine attempt to seek beyond the end of the stream, they both die ignominiously. But that's a problem with the media.

jkr,

The gui looks good! Looks like it has real potential for supporting a lot of features. Thanks again for getting the ball rolling on this project. It already far exceeds anything I could have anticipated!
 
  


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 09:03 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