LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MLB.TV in Linux (https://www.linuxquestions.org/questions/linux-software-2/mlb-tv-in-linux-432479/)

bosox 05-13-2009 09:23 PM

i am having sync issues. the audio is about a second ahead of the video. is there a way to adjust this?

the 1200k feed seems to be synced, but the 2200k is off by a bit. this is not the case with the official mlbplayer, so i know my hardware (core2duo 2.8ghz) and line (20/20 fios) is good enough to handle the stream.

Wolfvorkian 05-13-2009 09:41 PM

Quote:

Originally Posted by bosox (Post 3540029)
i am having sync issues. the audio is about a second ahead of the video. is there a way to adjust this?

I have the same problem from time to time. I suspect it is stream related and I've never found a cure. Daftcat suggested using ( I think, I've got so many commented out video_player= in my file, that I not sure it is exactly what he recommenced, except it had the -autosync string in it)

Code:

video_player=mplayer -cache 4096 -autosync 30 -really-quiet %s
in the config file but it didn't help any.

Today, everything is fine. At times the audio must be be 2-3 seconds ahead but normally like you, I get the approximate one second thingie.

bosox 05-13-2009 09:56 PM

Quote:

Originally Posted by Wolfvorkian (Post 3540045)
I have the same problem from time to time. I suspect it is stream related and I've never found a cure. Daftcat suggested using ( I think, I've got so many commented out video_player= in my file, that I not sure it is exactly what he recommenced, except it had the -autosync string in it)

Code:

video_player=mplayer -cache 4096 -autosync 30 -really-quiet %s
in the config file but it didn't help any.

Today, everything is fine. At times the audio must be be 2-3 seconds ahead but normally like you, I get the approximate one second thingie.

mine had no -autosync in it, and a smaller cache, so i am trying yours now.

EDIT: still off by about a second.

i would really like to get it up and running with vlc, but haven't had any luck so far. i have the newest stable build of vlc installed, but videolan also provides nightly builds for os x, so i can try that as well.

what is the video_player= supposed to say for vlc? i have to read up on that i guess, because putting in =VLC gives me all kinds of errors. i think i need to use cvlc or something like that, but i am still figuring this out. if anyone has it working with vlc, please share!

by the way, do you see 3000k streams anymore? they seem to have been gone for weeks now...

daftcat 05-13-2009 09:56 PM

Sometimes pausing and resuming clears this up. Sometimes it's just a stream issue.

My mistake. The stream selection went in AFTER the official release. Well, this ought to be exciting for new users when I get the next release posted (hoping on Monday) that has both stream selection and jump to innings.

Since you just updated mlbviewer with svn, you can use that one instead to get both the stream selection screen and the jump to innings feature. To jump to innings, instead of pressing <enter> to select a game, you will press 'i' (i for innings.) The onscreen instructions should be clear enough.

And yeah, you can try adding -autosync 30 to your video_player or you can try skipping back and forth from one stream to the other (e.g. going from 1200 to 2200) you might get a good sync again. I don't know for sure. :p

bosox 05-13-2009 10:09 PM

those are two great new features! i still have to work on this more (and follow your post from earlier), but besides for the sync issue, this is so much better than the official player. despite having new hardware, fast pipe, etc., i can never seem to get smooth playback with official. this way it is smooth as butter!

but, i guess sync is pretty important :P

i just wish they would put the 3000k stream back. it makes a huge difference on a big screen.

now back to playing with vlc...

bosox 05-13-2009 10:20 PM

how does the innings feature work with extra innings? i am playing with it now for today's mets/braves game, and i can't seem to get it to work. how do you use the "E"?

edouble312 05-14-2009 01:31 AM

Quote:

Originally Posted by bosox (Post 3540064)
those are two great new features! i still have to work on this more (and follow your post from earlier), but besides for the sync issue, this is so much better than the official player. despite having new hardware, fast pipe, etc., i can never seem to get smooth playback with official. this way it is smooth as butter!

but, i guess sync is pretty important :P

i just wish they would put the 3000k stream back. it makes a huge difference on a big screen.

now back to playing with vlc...

you inspired me! I thought i would be too difficult to get mlbviewer running in leopard, but it was actually pretty straightforward. I am not having any sync issues at all watching an archived game and it's playing real smoothly. once you have developer tools in leopard you can pretty much treat it like any linux distro, and macports gives you anything else you may need. and all this time I was running ubuntu in vmware just cause i didn't think I could do it leopard!

chomiak 05-14-2009 01:33 AM

Got video; solved fbdev error; video questions
 
After I got live games working with nexdef, I found out I still had no video. I also got /dev/fb: no such file or directory errors when loading mp4 files and they wouldn't play. I finally figured out I had to have a vga value in my grub menu.lst, which was vga=791 for my thinkpad t23. Now video works; sighted people tell me the resolution is good and that the audio and video appear to be syncing well (I'm using -autosync 30). -really quiet is also a must for me. I'm told the video uses the top left quadrant of my screen. I'm running mlbviewer from a text console; can I get the video to take up more of the screen? Do I have to run the program in gnome-terminal instead of a console to do this or get another video driver to load or what would I need to do? I'm really glad now that I stuck with this!!!
Btw I mentioned in an earlier post that I could also use vlc; don't know if video was working or not; willhave to run it that way with a sighted person here. I did notice that it had a tendency to get choppy and intermittent in sound and then quit on me after a while; haven't played with that more since mplayer is working so well for me.

chomiak 05-14-2009 02:02 AM

bout %s in player command
 
I see the instructions to put %s at the end of player commands. I understand this because I use %s in my ~/..mailcap. However, it doesn't appear that I need to put %s in my config file. Is there a reason why I don't need the %s or am I misunderstanding something?

daftcat 05-14-2009 03:12 AM

Quote:

Originally Posted by chomiak (Post 3540214)
I see the instructions to put %s at the end of player commands. I understand this because I use %s in my ~/..mailcap. However, it doesn't appear that I need to put %s in my config file. Is there a reason why I don't need the %s or am I misunderstanding something?

You don't need %s. It's merely a convenience for those who want something other than the default, which is to append the url to the end. For instance, in the past, people have used -dumpstream to record the game and so I support both %s and %f so users could setup a proper command-line and have mlbviewer expand those tokens to a stream url and a filename.

For the video, I really don't know because I don't use the framebuffer for video. You could try it in gnome console with the xv video output:

Code:

video_player=mplayer -vo xv -cache 4096 -autosync 30 -really-quiet
But it may be that if you have setup grub to boot with vga support on the console, you may be stuck using framebuffer for X. I think that used to be a limitation, but I'm not sure it still is. You could also try setting the vga mode in grub to 800x600 which is close to what the streams are. I think the streams are actually 800x450. I don't remember what the vga line is to get this to work.

daftcat 05-14-2009 03:20 AM

Quote:

Originally Posted by bosox (Post 3540066)
how does the innings feature work with extra innings? i am playing with it now for today's mets/braves game, and i can't seem to get it to work. how do you use the "E"?

I don't actually have extra innings working yet. Short answer.

Longer answer is that even if I fix it today, you'd only be able to jump to the 10th inning. There's two issues. One is the line score graphic would need to be rewritten to support extra frames and the other is that the internal data structure would need to be more complex than it is. I decided it's just better to jump to bottom of 9th for extra inning games until I have the time to rewrite the code.

daftcat 05-14-2009 03:24 AM

Quote:

Originally Posted by bosox (Post 3540064)
those are two great new features! i still have to work on this more (and follow your post from earlier), but besides for the sync issue, this is so much better than the official player. despite having new hardware, fast pipe, etc., i can never seem to get smooth playback with official. this way it is smooth as butter!

but, i guess sync is pretty important :P

i just wish they would put the 3000k stream back. it makes a huge difference on a big screen.

now back to playing with vlc...

It's there on some games, mostly the HD games, but at least now you can see the list of streams available to you.

I have seen:

164
400
600
800
1200
1500
1800
2200
3000

I might have even seen a 2500.

So it's not easy to map these to the seven quality bars in the flash player. But I actually like knowing when I select a stream exactly what bps I can expect. At work, especially, I like to keep it to 164 or 400 just to keep IT from coming by my cube.

eveostay 05-14-2009 08:15 AM

I got a "Community Bulletin" from LinuxQuestions today. In it, I found this:

Quote:


-- Threads with the most replies --

Title: "MLB.TV in Linux" (Date Posted 04-06-2006 by Fugazi)
o 1796 Replies, 102357 Views, Last Post: 07:51 PM, 05-13-2009 by daftcat
o http://www.linuxquestions.org/questi...d.php?t=432479
Congratulations!

daftcat 05-14-2009 10:24 AM

MLB.com playing fast and loose with the SOAP protocol
 
Damnit! They added another several fields to the SOAP response without adding it to the schema definition file. So if you're having "wtf!" errors (okay, I don't actually have "wtf!" on the screen but that's the new name for the "Uncaught error"), I'm on it and you can expect a patch soon.

TheDevilWearsPravda 05-14-2009 10:45 AM

Quote:

Originally Posted by daftcat (Post 3540665)
Damnit! They added another several fields to the SOAP response without adding it to the schema definition file. So if you're having "wtf!" errors (okay, I don't actually have "wtf!" on the screen but that's the new name for the "Uncaught error"), I'm on it and you can expect a patch soon.

Thank goodness! I had a game start giving uncaught errors in the middle of the stream. Stream cut off right before Horacio Ramirez could throw his first pitch. Maybe that's a good thing?


All times are GMT -5. The time now is 03:58 AM.