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/)

bdjohns1 04-08-2014 09:25 PM

Quote:

Originally Posted by avdawg (Post 5147276)
Would you mind sharing how you got it working on the Raspberry Pi?

Also, thanks to everyone who worked on this!

There's an XBMC plugin which works on the pi. The developer (I believe) uses elements of mlbviewer's code base. Can use regular or HLS streaming.

Also, another guy has a page on just using mlbviewer from the command line:

https://code.google.com/p/mlbtv-webc...ki/RaspberryPi

daftcat 04-09-2014 02:21 PM

Quote:

Originally Posted by bdjohns1 (Post 5149164)
There's an XBMC plugin which works on the pi. The developer (I believe) uses elements of mlbviewer's code base. Can use regular or HLS streaming.

Also, another guy has a page on just using mlbviewer from the command line:

https://code.google.com/p/mlbtv-webc...ki/RaspberryPi

The mlbtv plugin for XBMC was taken in part from mlbviewer and uses mlbhls. The developer is the guy who wrote mlbhls. I also got an email from him last week stating that mlbhls will no longer be supported and XBMC plugin is taking HLS support in a different direction. I haven't looked at the new code but it looks significantly more difficult to install. While I respect his reasons for extending and generalizing his code for other HLS streaming applications, I don't really want to support those installation instructions for mlbviewer users. Hopefully, mlbhls will "just work" as rtmpdump has for many years. I also plan to evaluate other HLS solutions.

BTW, woot.com is running a Samsung Smart TV sale today. Great deals. They support MLB.TV. I am very tempted but it's not in the budget right now. When mlbviewer started, it was Windows/Mac via web browser or nothing. I love how many different devices now support MLB.TV (and many do a better job than a web browser+flash plugin.)

Also, I am still looking into producing an mlbviewer live CD but it seems overkill to download 700 mb of distro for 60kb of code. If I can tune the live image down to 300 mb and not have it look like a hot mess (I'm looking at you, Damn Small Linux), that would be more ideal.

rkfb 04-12-2014 06:48 PM

In case anyone's interested I have mlbviewer running on slackware-current, it's fairly straightforward.

I have a fairly basic install, running twm as my main desktop, all I had to add were simplejson, rtmpdump and gdata, all available as slackbuilds. It was then just a case of download mlbviewer2014, untar, cd into the directory and run:

$ python mlbviewer.py

cd into ~/.mlb and add your login details to config then run it again as above and you should be good to go. Video opened in mplayer, audio was fine.

daftcat 04-13-2014 12:34 AM

Quote:

Originally Posted by rkfb (Post 5151456)
In case anyone's interested I have mlbviewer running on slackware-current, it's fairly straightforward.

I have a fairly basic install, running twm as my main desktop, all I had to add were simplejson, rtmpdump and gdata, all available as slackbuilds. It was then just a case of download mlbviewer2014, untar, cd into the directory and run:

$ python mlbviewer.py

cd into ~/.mlb and add your login details to config then run it again as above and you should be good to go. Video opened in mplayer, audio was fine.

Glad to hear it installed and worked without a hitch.

BTW, simplejson isn't required anymore. JSON support is part of standard Python now. This is great because I remember simplejson used to have annoying issues that Jesse's code (original mlbviewer developer) had to correct.

rkfb 04-13-2014 12:53 PM

Quote:

Originally Posted by daftcat (Post 5151573)
Glad to hear it installed and worked without a hitch.

BTW, simplejson isn't required anymore. JSON support is part of standard Python now. This is great because I remember simplejson used to have annoying issues that Jesse's code (original mlbviewer developer) had to correct.

Ah ok, maybe that's different for you Fedora guys then. What I actually did was download and run

$ python mlbviewer.py

then watch what it complained about. I then added simplejson, rtmpdump and gdata as they came up.

bmac33 04-15-2014 08:06 PM

I used mlbviewer all last year and started using it again this year. Great product! My PS3 playback has been aweful this year but mlbviewer is running smooth.

Anyway, sometimes after closing and opening the software too many times I'm getting "ERROR: Sign-on Restriction Error". I never got this last year so I'm assuming they're being more aggressive with account sharing. Is this a problem you've been dealing with as well when you have to test and open/close the app a lot?

Thanks!

Billy

kweisen 04-15-2014 09:20 PM

Quote:

Originally Posted by bmac33 (Post 5153551)
I used mlbviewer all last year and started using it again this year. Great product! My PS3 playback has been aweful this year but mlbviewer is running smooth.

Anyway, sometimes after closing and opening the software too many times I'm getting "ERROR: Sign-on Restriction Error". I never got this last year so I'm assuming they're being more aggressive with account sharing. Is this a problem you've been dealing with as well when you have to test and open/close the app a lot?

Thanks!

Billy

You are correct. MLB is being more aggressive. My experience is after 2 or 3 sign on's or attempts I get locked out for an hour.

WaltH 04-15-2014 09:46 PM

I was listening to the audio feed of a game tonight, and when the game ended, I could not get out of the audio feed. Closing the application did nothing. Short of turning off my computer, how do I get out of the audio feed? Typing 'q' for quit did nothing to stop the audio. Thanks.

daftcat 04-16-2014 01:11 AM

Quote:

Originally Posted by bmac33 (Post 5153551)
I used mlbviewer all last year and started using it again this year. Great product! My PS3 playback has been aweful this year but mlbviewer is running smooth.

Anyway, sometimes after closing and opening the software too many times I'm getting "ERROR: Sign-on Restriction Error". I never got this last year so I'm assuming they're being more aggressive with account sharing. Is this a problem you've been dealing with as well when you have to test and open/close the app a lot?

Thanks!

Billy

I have been tempted to overhaul the logging for a long time. Maybe when I do that, it might turn up places where session-key is not getting cached correctly.

Ideally, you should not be stream hopping very often so this shouldn't happen often.

daftcat 04-16-2014 01:16 AM

Quote:

Originally Posted by WaltH (Post 5153609)
I was listening to the audio feed of a game tonight, and when the game ended, I could not get out of the audio feed. Closing the application did nothing. Short of turning off my computer, how do I get out of the audio feed? Typing 'q' for quit did nothing to stop the audio. Thanks.

Two ideas I have:

1. Caps Lock?
2. Window focus? Sometimes, especially after video, it looks like I have window focus in the terminal, but I really don't.

After I kick off the streamer and player processes, I poll them regularly for 'q' and Ctrl-C. So if you have focus and Caps Lock did not accidentally activate, q or Ctrl-C should quit the streamer/player processes without exiting the application.

Bonus thought:
This same code to getch() for a quit key during process playback does not exist in the mlbplay.py script. That you'll just Ctrl-C to kill everything if you want to quit before the stream does.

WaltH 04-16-2014 07:53 AM

Quote:

Originally Posted by daftcat (Post 5153692)
Two ideas I have:

1. Caps Lock?
2. Window focus? Sometimes, especially after video, it looks like I have window focus in the terminal, but I really don't.

After I kick off the streamer and player processes, I poll them regularly for 'q' and Ctrl-C. So if you have focus and Caps Lock did not accidentally activate, q or Ctrl-C should quit the streamer/player processes without exiting the application.

Bonus thought:
This same code to getch() for a quit key during process playback does not exist in the mlbplay.py script. That you'll just Ctrl-C to kill everything if you want to quit before the stream does.

Well, Caps Lock was not on, and I did actually close the terminal window. I actually relaunched mlbviewer, and I was able to start a second audio feed that lagged about a half-second behind the first first, a bit like an echo. I closed the terminal again, which stopped the second audio feed but not the first. Typing 'q' also closed the program and the terminal window but did not end the audio feed. I'll try Ctrl-C should this happen again. Thanks.

Lkr 04-16-2014 01:55 PM

I keep getting the sign in restriction error. MLB has definitely changed the authentication, but they haven't become stricter on their own platforms. I can watch on my Apple TV, PC, and PS3 at the same time and continually switch streams with no problem. I switched streams three times on mlbviewer and now I am locked out of my account.

chrisVV 04-17-2014 03:27 AM

Quote:

Originally Posted by WaltH (Post 5153609)
I was listening to the audio feed of a game tonight, and when the game ended, I could not get out of the audio feed. Closing the application did nothing. Short of turning off my computer, how do I get out of the audio feed? Typing 'q' for quit did nothing to stop the audio. Thanks.

If you get into this situation again, 'killall mplayer' should do it for you (but it will end all other current mplayer streams also).

WaltH 04-17-2014 07:59 AM

Quote:

Originally Posted by chrisVV (Post 5154370)
If you get into this situation again, 'killall mplayer' should do it for you (but it will end all other current mplayer streams also).

Thanks. I'd forgotten about the 'kill' command. It's been a long time since I had to use it.

CCRS8 04-20-2014 07:12 PM

Quote:

Originally Posted by daftcat (Post 5149622)
BTW, woot.com is running a Samsung Smart TV sale today. Great deals. They support MLB.TV. I am very tempted but it's not in the budget right now. When mlbviewer started, it was Windows/Mac via web browser or nothing. I love how many different devices now support MLB.TV (and many do a better job than a web browser+flash plugin.)

Hi daftcat. I've been using mlbviewer since that first year that MLB.TV went from Flash to Silverlight. You're right - it was mlbviewer or nothing back then for us Linux users. Now I have two Rokus, an Android phone, and an Android tablet that all can (and do) stream MLB.TV. Not to mention the fact that us Linux users can now use browser/flash again. And you're right - it's awesome how many devices support MLB.TV (and Netflix - another service that used to be a pain to get working with Linux). But I always go back to mlbviewer for MLB.TV. Two cases in point - this afternoon I was watching a game on the Roku hooked up to a TV next to my workstation, but I wanted to tune in to a second game at the same time. I happened to be reformatting my machine (upgrade to Xubuntu 14.04 didn't go great, figured a fresh install would be better), so I didn't have mlbviewer installed yet. I fired up browser/flash and set it to full screen on my 2nd monitor. But, every time I tried to do something on my primary monitor, the full-screen session ended and put the game back in the normal-sized flash window. I installed mlbviewer so I can just have a plain mplayer2 window stay at whatever size I want...problem solved. Second, just now I'm watching the Phillies blow it against the Rockies. I have it on the Roku. Since the end of last season, the Roku MLB.TV app has had a stuttering problem - games catch and pause and get the video behind or ahead of the audio. No such problems with mlbviewer. I want to watch Pappelbon get overpaid without all the hiccups!

Anyway, sorry for the long post - just saying that while mlbviewer is no longer the only way for me to watch MLB.TV, it is still the best way. But I agree - it's awesome that all these devices (which are usually based on Linux!) make it easier to be a Linux desktop user.


All times are GMT -5. The time now is 06:27 AM.