Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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?
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.
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
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 (":")).
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.)
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.