LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 10:18 PM   #256
mr_e_uss
LQ Newbie
 
Registered: Apr 2008
Posts: 20

Rep: Reputation: 0

Putting "vo = sdl" in the .mplayer/config file worked! The video quality isn't great, but it is nice to be able to see a larger video. Thanks!
 
Old 04-11-2008, 10:19 PM   #257
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
jkr

I removed the try; except: code in mainloop() and put it into Gamestream.url() as:

Code:
    def url(self):
        # url_pattern
        pattern = re.compile(r'(url:.*\")(http:\/\/[^ ]*)(".*)')
        game_info = self.__getInfo()
        try:
            game_url = re.search(pattern, game_info).groups()[1]
        except:
            self.logout()
            raise Exception, game_info
        return game_url
This obviously fails less gracefully than the beta message but gives us a better idea of what's going on.

Can you release a mlbviewer-dbg.py with this patch for users who are constantly getting the beta error message so we can tell if they're getting the concurrency issue or, what I'm getting right now:

Quote:
We apologize for the inconvenience.
We are currently undergoing maintenance to make your experience better, please try back later.
(It always makes me nervous when they are trying to make our experience better.)

Last edited by daftcat; 04-11-2008 at 10:21 PM.
 
Old 04-11-2008, 10:26 PM   #258
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
I am no longer able to view any LIVE games... Archived games work fine. But no live game now both in older version of mlbviewer and newest version.
 
Old 04-11-2008, 10:27 PM   #259
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by mr_e_uss View Post
lspci says (among other things):
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400
Just as I suspected. There are third-party ati drivers out there that aren't part of the standard XFree installation. Try http://dri.freedesktop.org. That might get xv working for your card which is superior to sdl (if I remember correctly--though others have tried to convince me otherwise at some point.) I believe dri is the linux equivalent of direct x. Anyway, give that a go. You know you can always fall back to sdl if that doesn't work out for you.
 
Old 04-11-2008, 10:31 PM   #260
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Theophile,

Great to hear it.

So you want to want mlbrecord/mplayer to seek into the future beyond the available? That would be a cool trick. I'd love to see how a game ends before it does so I can take it all the way to Vegas, baby!

I'll see what I can do in the next release. ;-)
 
Old 04-11-2008, 10:43 PM   #261
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
daftcat

(Edited because I forgot to say I posted the debugger version:
www.columbia.edu/~jr2075/mlbviewer-dbg.py)

Quote:
have you thought about using urllib.urlencode() instead of clientform() and/or saving the cookie to the disk using cookielib.LWPCookieJar()?
I played with both, and honestly was having trouble getting either consistently to work. But that was last week before I released the initial version, so who knows, it might just as well have been a problem with some early form of the script. (At this point, I see no reason why LWPCookieJar() wouldn't work, since CookieJar() does.) In any case, as soon as I had something that worked, I sent it out for people to play with. So we're still weeding out the "works well enough" parts.

But, yeah, it would be great to remove the dependency on clientform(), just for ease of installation. And if writing the cookies to disk helps with the login problem, I'd be ecstatic.

Last edited by jkr; 04-11-2008 at 10:46 PM.
 
Old 04-11-2008, 10:45 PM   #262
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Hanophix:

That's the dreaded concurrent login problem. You're locked out of live games for an hour or so. It's my fault. But we're on the case. And it won't go on your permanent record.
 
Old 04-11-2008, 10:56 PM   #263
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
jkr thats what I thought...I haven't been keeping up with the boards and was just trying to back track a bit..Not a big deal now since most games are over now but I have been logging on many times, oops. I'll have to try the new version in the morning...thanks for the scripts, it got a lot of frustration off my mind with mlb.tv
 
Old 04-11-2008, 11:07 PM   #264
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
mr_e_uss--

Since I think you said you were using ubuntu, I believe you can use some sort of gui magic to install the necessary driver.

First run

sudo aptitude install linux-restricted-modules-generic restricted-manager

Then

System -> Administration -> Restricted Drivers Manager

and select "ATI accelerated graphics driver".

That's what I read on the Ubuntu wiki, in any case. Seems worth a try.
 
Old 04-11-2008, 11:41 PM   #265
pincheguero
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0
I have been reading this thread a bit. I was trying to do the exact same thing. Not because I use linux, but because I wanted to watch these games on my mobile. I came up with a similar solution. I haven't looked over your code, but in response to your goal,

Quote:
Originally Posted by jkr View Post
daftcat
But, yeah, it would be great to remove the dependency on clientform(), just for ease of installation. And if writing the cookies to disk helps with the login problem, I'd be ecstatic.
I think that this url should do the job.

https://secure.mlb.com/authenticate....sword=PASSWORD

This url lets you log in, but you may have known that already.

If any of you care about mlb.tv on a windows mobile device, I can get gameday audio to work. The audio of the video stream works, but I need to find a player that supports the new codec, VC-1.
 
Old 04-12-2008, 04:39 AM   #266
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by pincheguero View Post
I have been reading this thread a bit. I was trying to do the exact same thing. Not because I use linux, but because I wanted to watch these games on my mobile. I came up with a similar solution. I haven't looked over your code, but in response to your goal,



I think that this url should do the job.

https://secure.mlb.com/authenticate....sword=PASSWORD

This url lets you log in, but you may have known that already.

If any of you care about mlb.tv on a windows mobile device, I can get gameday audio to work. The audio of the video stream works, but I need to find a player that supports the new codec, VC-1.
I don't like using GET url's for passwords but I guess it doesn't matter much within a program. I tried using that url in my browser and got a maintenance message. I tried the normal browser method and it worked fine. Maybe they're phasing out the GET method.
 
Old 04-12-2008, 04:42 AM   #267
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
jkr

I'm going to write a php page to read and write cookies so I can test the cookie code against it. I'd like to use cookielib so we can set user-agent and a few other headers. It would be nice to emulate the windows environment from the network side as much as we can so we don't look like bad guys hacking their system. ;-)
 
Old 04-12-2008, 05:08 AM   #268
mr_e_uss
LQ Newbie
 
Registered: Apr 2008
Posts: 20

Rep: Reputation: 0
jkr -- The restricted drivers did the trick! This is fantastic! Thanks!

Has anyone figured out how to get Gameday Audio to work, too?

Thanks...
 
Old 04-12-2008, 05:15 AM   #269
mr_e_uss
LQ Newbie
 
Registered: Apr 2008
Posts: 20

Rep: Reputation: 0
pincheguero: I have a Windows Mobile 6 phone -- I'm very interested in learning how to access MLB TV (even if only audio) or Gameday Audio on the phone...

Thanks!
 
Old 04-12-2008, 09:13 AM   #270
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by daftcat View Post
Theophile,

Great to hear it.

So you want to want mlbrecord/mplayer to seek into the future beyond the available? That would be a cool trick. I'd love to see how a game ends before it does so I can take it all the way to Vegas, baby!

I'll see what I can do in the next release. ;-)
Okay, now you're just being silly. ;-)

I don't mean that it should be able to seek beyond the end of the stream, but that it (ideally) shouldn't even try to. With MythTV, if you try to seek beyond the end of the stream, it will only allow you to go to the beginning of the buffer. If I started a show late and "caught up" during commercials, I know when I've caught up because the fast forward simply stops working.

I know it has to do with the media container and other things (keyframes, I think). Basically, mplayer doesn't know where it is in the stream either, so it can't be faulted for stupidly trying to go past the end.
 
  


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 02:07 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