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

chrisVV 03-15-2015 10:37 AM

Quote:

Originally Posted by chrisVV (Post 5332467)
You can download it from https://certs.godaddy.com/repository as "valicert_class2_root.crt" under "ValiCert Legacy Certificate Chain".
Chris

I have done a little research and apparently the ValiCert Class 2 certificate has (with about a dozen others) been made a legacy certificate because it only has 1024 bits of RSA encryption and therefore might (with some difficulty) be cracked at some point in the approximate future. Mozilla's policy was to take the paranoid approach and disable them sometime after December 31, 2013. That "sometime after" looks as if it is "not quite yet" since they still seem to be in the mozilla store, except that ubuntu 14.04 (but not 14.10) seems to have taken advanced action.

So MLB.TV should really be replacing this certificate.

However it seems to be a bit more mysterious than that, because the Go Daddy certificate is a root certificate all by iself (it is in my root certificate store), albeit that it is signed by another CA (ValiCert). So MLB.TV could also solve the issue by removing the (anyway incorrect) inclusion of the ValiCert certificate in their announced server certificate chain, and ditto the Go Daddy one. As the Valicert certificate seems to have been removed from the Windows store already, presumably Windows does not throw up on this, and accepts the Go Daddy certificate notwithstanding the absence of the ValiCert one - in other words it stops and gives a pass after finding the root Go Daddy certificate - or they would have been inundated with complaints by now, whereas openssl (and maybe nss) does throw up on it if the ValiCert certificate is missing. I suspect either behaviour is regarded as acceptable.

In any event, MLB.TV come across as somewhat unclueful on all this.

Edit: The ValiCert Class 2 certificate looks as if it is no longer in the mozilla store. Presumably we can expect to see it omitted from distributions some time soon.

fang2415 03-16-2015 06:02 AM

Interesting, that's good to know! I did notice that when I checked the certificate chain in Firefox it only lists the chain as far as the Go Daddy cert and doesn't mention ValiCert at all. When you say "ditto the Go Daddy one", do you mean that that cert is deprecated as well, or is it okay? I'm at work now, but I can't remember whether my Ubuntu machines had that the Go Daddy Class 2 CA cert in their list; I'll try to check later.

I guess this means that the ideal thing would be for me to remove that ValiCert certificate if/when MLB gets rid of it? (Although obviously it's not a showstopper having it there.)

Thanks again for the info. If anything it's good just to know that there's an actual issue and I wasn't just crazy. :)

chrisVV 03-16-2015 11:39 AM

Quote:

Originally Posted by fang2415 (Post 5332799)
When you say "ditto the Go Daddy one", do you mean that that cert is deprecated as well, or is it okay?

No I don't think it is deprecated. However, if it is a root certificate it does not need to be included in the server's announced certificate chain.

Quote:

I guess this means that the ideal thing would be for me to remove that ValiCert certificate if/when MLB gets rid of it?
They don't need to remove a certificate. They need to correct the server's announced certificate chain so as not to include the ValiCert one, which would enable you to remove the ValiCert certificate from your root store when using openssl with MLB.TV.

fang2415 03-16-2015 02:19 PM

Quote:

Originally Posted by chrisVV (Post 5332955)
They don't need to remove a certificate. They need to correct the server's announced certificate chain so as not to include the ValiCert one, which would enable you to remove the ValiCert certificate from your root store when using openssl with MLB.TV.

Yeah, that's what I mean, when they get rid of it from their cert chain. I guess I'll keep an eye on it then, and refer back to this set of posts if I run into any more problems. Thanks again for the info about this, it is definitely well outside my area of expertise so I appreciate it.

lcvisser 03-20-2015 04:08 PM

Quote:

Originally Posted by daftcat (Post 5327686)
I believe at least one of you had asked about the Pi last year. If you got anywhere with it with mlbviewer, please share with me what you did. Thanks!


I think that was me. Although I can't recall what I asked ;-) I followed last year's season using the PI. Not everything went smooth all the time, but it worked fine most of the time. I relied on mlbview.py, together with some scripts. See here: https://github.com/lcvisser/mlbviewer-remote (this repo also includes the web-based front-end for mlbview.py that I wanted for using my phone as remote control).

To make a long story short: I faked "mplayer" with a simple bash script named "mplayer" and put the fake player first on the $PATH. The script just pipes stdout to the pipe and starts omxplayer reading from the pipe:

Code:

#!/bin/bash

CWD=$(dirname $0)
MLBTV_PIPE=$CWD/mlbpipe

# Create pipe for video
if [ ! -p $MLBTV_PIPE ]
then
    mkfifo $MLBTV_PIPE
fi

# Connect feed to omxplayer
cat <&0 > $MLBTV_PIPE | omxplayer -o hdmi $MLBTV_PIPE

This works just fine most of the time, although omxplayer is really sensitive to wacky data. I'm glad mlbviewer has inning selection :)

If I can help with anything, let me know.

rnrubun 04-04-2015 08:38 PM

Installed MLBLIVE on Ubuntu 14.04 LTS media server w/VirtualBox using script supplied. Default config file has "video_player=mplayer". When a game is selected, window frame with mplayer2 on the banner opens, but no video is displayed in the frame. Tried mplayer2, & MPV as config settings, but those fail completely, returning to the list of games.

MLBVIEWER w MPV works on my dualboot laptop best. It also works on the server's virtual desktop, accessible via vnc. Haven't been able to get CYGWIN to work. Desktop VNC to server is acceptable, laptop VNC to server too laggy to watch. I got this far reading this forum and linking to other mlbviewer information sources, but MLBLIVE as a VM is (I think) a 2014 development, and I am experimenting and learning as I go. Bootable CD works fine, and given that the VM is running the .iso, I'm stumped as to what to do next, so I'd appreciate any suggestions. Plenty of ram and disk on the server.

daftcat 04-08-2015 01:49 PM

Quote:

Originally Posted by rnrubun (Post 5342720)
Installed MLBLIVE on Ubuntu 14.04 LTS media server w/VirtualBox using script supplied. Default config file has "video_player=mplayer". When a game is selected, window frame with mplayer2 on the banner opens, but no video is displayed in the frame. Tried mplayer2, & MPV as config settings, but those fail completely, returning to the list of games.

MLBVIEWER w MPV works on my dualboot laptop best. It also works on the server's virtual desktop, accessible via vnc. Haven't been able to get CYGWIN to work. Desktop VNC to server is acceptable, laptop VNC to server too laggy to watch. I got this far reading this forum and linking to other mlbviewer information sources, but MLBLIVE as a VM is (I think) a 2014 development, and I am experimenting and learning as I go. Bootable CD works fine, and given that the VM is running the .iso, I'm stumped as to what to do next, so I'd appreciate any suggestions. Plenty of ram and disk on the server.

I find nexdef mode (press 'n' or change use_nexdef=0 to use_nexdef=1 in config file) works better for me than rtmpdump using the VM. But that may just be that I am always using the VM from work where they have historically filtered out RTMP.

larshenric 04-11-2015 02:21 PM

Hi!
It's me again with a problem using mlbviewer... ;-)
Since yesterday I get this message when I want to start a live coverage:
ERROR: Media response contained a notAuthorizedStatus.

The log file tells me this:
04/11 21:18 | 2015-04-11 21:18:38.271266
04/11 21:18 | SUCCESSFUL MEDIA REQUEST: status-code: 1 , event-id = 14-413722-2015-04-11
04/11 21:18 | See /home/lars/.mlb/successful-1.xml for XML response.

Any suggestions? Thank you very much in advance. :-)

Btw: Archived games still work fine...

Lars

bunglebungle 04-13-2015 01:44 PM

Quote:

Originally Posted by chrisVV (Post 5329239)
I doubt the nexdef streams are going to go away, because they are at present used by the MLB.TV web client and are the focus of their attention. The rtmp streams are much more likely to be for the chop. (The web client does not happen to use the java nexdef plugin any more when accessing the nexdef streams except when in legacy/audio overlay mode, but that's a different issue.)

I've never installed NexDef here on my work Windows box (it's not even listed on the downloads page anymore), but when I watch using Chrome I get the "highest HD quality available" indicator and Live DVR abilities. Is NexDef somehow built into Chrome's Flash now, or is it really using something else? I will try again tonight when I get home, but Chrome on Linux did not offer me live DVR, saying my device doesn't support it. The FAQ for that message indicates NexDef is required, but the link to the downloads page doesn't have it, so obviously their content needs some updating. Still, I'm not sure what the discrepancy is, and I will be irritated if live DVR doesn't work on Linux at all.

Does mlbviewer support live DVR at all? Does it go higher than 960x540 in NexDef mode? I am able to get 960x540 with the Kodi MLB plugin, and skipping is fine for archived games, but live games are locked live.

EDIT: I could have sworn I had live DVR when I tested at work (win7/Chrome) but I tried here at home and both Linux and Windows XP Chrome ask to install the NexDef plugin for DVR functionality. Also, MLBViewer NexDef allows 720p streams.

daftcat 04-13-2015 01:50 PM

Quote:

Originally Posted by larshenric (Post 5345926)
Hi!
It's me again with a problem using mlbviewer... ;-)
Since yesterday I get this message when I want to start a live coverage:
ERROR: Media response contained a notAuthorizedStatus.

The log file tells me this:
04/11 21:18 | 2015-04-11 21:18:38.271266
04/11 21:18 | SUCCESSFUL MEDIA REQUEST: status-code: 1 , event-id = 14-413722-2015-04-11
04/11 21:18 | See /home/lars/.mlb/successful-1.xml for XML response.

Any suggestions? Thank you very much in advance. :-)

Btw: Archived games still work fine...

Lars

Are you basic or premium subscriber? Maybe basic subscriber trying to access a premium stream? Next time it happens, post the contents of the (un)successful-?.xml log file indicated in the message. That file is overwritten with every request so I need to see the contents directly after the error and before the next request.

daftcat 04-14-2015 03:03 PM

Quote:

Originally Posted by bunglebungle (Post 5346821)
I've never installed NexDef here on my work Windows box (it's not even listed on the downloads page anymore), but when I watch using Chrome I get the "highest HD quality available" indicator and Live DVR abilities. Is NexDef somehow built into Chrome's Flash now, or is it really using something else? I will try again tonight when I get home, but Chrome on Linux did not offer me live DVR, saying my device doesn't support it. The FAQ for that message indicates NexDef is required, but the link to the downloads page doesn't have it, so obviously their content needs some updating. Still, I'm not sure what the discrepancy is, and I will be irritated if live DVR doesn't work on Linux at all.

Does mlbviewer support live DVR at all? Does it go higher than 960x540 in NexDef mode? I am able to get 960x540 with the Kodi MLB plugin, and skipping is fine for archived games, but live games are locked live.

EDIT: I could have sworn I had live DVR when I tested at work (win7/Chrome) but I tried here at home and both Linux and Windows XP Chrome ask to install the NexDef plugin for DVR functionality. Also, MLBViewer NexDef allows 720p streams.

1. Nexdef is historical term for when high def was only available through the Nexdef plugin. Back in the day, mlbviewer users had to download the Mac version of the plugin, extract it, and run the Java jar file. One thing that hasn't changed is that it is still the source of the High Def streams. It's just now the Apple HLS is handled at the streamer (mlbhls) rather than in the plugin itself.
2. No idea whether the streams max at 720p or go all the way up to 1080p. Set min_bps= and max_bps= or whatever the option name is (look in readme) to 4500 and check the stream properties.
3. Live DVR is primarily a player feature. Mlbviewer is more like a media broker than a media player. It negotiates the stream URLs based on GUI selection and hands off to helper applications like rtmpdump and mpv. So live DVR really means pause and seek functionality on a live stream. A large part of that will be your buffer size and how your streamer/player handles seeking beyond the buffer.
4. I believe the consensus is that rtmpdump (non-Nexdef) in combination with mplayer2, mpv, and possibly vlc support live DVR but you don't get the highest quality streams. It maxes out at whatever 2400 bps whereas Nexdef goes on to 3000 and 4500.
5. I plan to rework all that mode and speed selection to be more informative and less historical. Maybe have a couple of views based on personal preference. I like selecting based on stream speed but someone else may want to select solely on resolution (480p, 720p, 1080p.). Also, change Nexdef to Highdef.

lcvisser 04-14-2015 03:14 PM

On a side note: I got notified that Google is taking down Google Code. Does anyone know if mlbhls (which is now being hosted at Google Code) is being migrated to somewhere? Is it being maintained at all?

bunglebungle 04-14-2015 04:33 PM

Quote:

Originally Posted by daftcat (Post 5347391)
1. Nexdef is historical term for when high def was only available through the Nexdef plugin. Back in the day, mlbviewer users had to download the Mac version of the plugin, extract it, and run the Java jar file. One thing that hasn't changed is that it is still the source of the High Def streams. It's just now the Apple HLS is handled at the streamer (mlbhls) rather than in the plugin itself.

Yeah, I think I'm getting my head around it better. Is there anything special about what mlbhls is doing, or can any HTTP live streaming implementation handle it?

Quote:

Originally Posted by daftcat (Post 5347391)
2. No idea whether the streams max at 720p or go all the way up to 1080p. Set min_bps= and max_bps= or whatever the option name is (look in readme) to 4500 and check the stream properties.

I had it maxed according to the readme and was getting 720p, but it was also swapping adaptively to lower streams, so I could have had issues maxing it out. But MLB's bandwidth test said I was at 12000 and you only need 3000, so I don't know what was up, other than I was going through a crappy fast ethernet router.

Quote:

Originally Posted by daftcat (Post 5347391)
3. Live DVR is primarily a player feature. Mlbviewer is more like a media broker than a media player. It negotiates the stream URLs based on GUI selection and hands off to helper applications like rtmpdump and mpv. So live DVR really means pause and seek functionality on a live stream. A large part of that will be your buffer size and how your streamer/player handles seeking beyond the buffer.
4. I believe the consensus is that rtmpdump (non-Nexdef) in combination with mplayer2, mpv, and possibly vlc support live DVR but you don't get the highest quality streams. It maxes out at whatever 2400 bps whereas Nexdef goes on to 3000 and 4500.

I guess the issue here is that the rtmp version maybe doesn't allow for seeking or specifying a start time like hls, so to do this in Kodi the stream would have to be saved the whole time and you could only skip around through what was downloaded. Either that or I have to get the mlbhls version working again (it did at one point but is now broken). I'd love to get hls working with the skip buttons jumping through innings.


@lcvisser - Google Code has a button to migrate projects to GitHub, so I think that's the preferred destination, or else be merged in with mlbviewer.

pajamian 04-14-2015 08:32 PM

Quote:

Originally Posted by daftcat (Post 5347391)
Also, change Nexdef to Highdef.

This wouldn't exactly be accurate since Nexdef has highdef, but also has lowdef feeds (even some that rtmp doesn't have such as 800kbps).

fang2415 04-15-2015 07:18 AM

Quote:

Originally Posted by bunglebungle (Post 5347434)
Yeah, I think I'm getting my head around it better. Is there anything special about what mlbhls is doing, or can any HTTP live streaming implementation handle it?

I don't know very much about other HTTP streamers, but as far as I understand, mlbhls does need to fetch an auth key of some sort periodically to keep the stream going. I've assumed that's the reason why thegryghost wrote it in the first place instead of simply passing a link to curl or something.

But as I say, I'm no http streaming expert, so there may be other good reasons too. :)


All times are GMT -5. The time now is 11:56 AM.