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

iamtheaardvark 06-23-2015 04:35 PM

Quote:

Originally Posted by thegryghost (Post 5381805)
If it was as simple as supplying a crypto key to ffmpeg we wouldn't need mlbhls. If you want to use ffmpeg/mpv to watch mlb stream natively, you'll need to patch up ffmpeg to do mlb.tv's service calls to get the actual decryption keys. The ffmpeg peeps will probably never accept your patches but at least you'll have a properly working HLS client, as opposed to my quick hack of a client.

yeah. Well I don't really have the time or ability to do that. Anyway mlbhls works fine (and thanks for writing it).

Star Rat 08-05-2015 04:31 AM

Isn't this largely an issue with Mozilla-based browsers disabling vulnerable versions of flashplayer by default? I had similar (though admittedly not identical) problems - which were solved by updating the plugin.

fang2415 08-06-2015 03:30 AM

Quote:

Originally Posted by Star Rat (Post 5401116)
Isn't this largely an issue with Mozilla-based browsers disabling vulnerable versions of flashplayer by default? I had similar (though admittedly not identical) problems - which were solved by updating the plugin.

Which issue do you mean? mlbviewer shouldn't be using flash, or a Mozilla-based browser, at all, so it shouldn't matter what they do with their plugins...

I wonder if maybe you're replying to the original post at the beginning of the thread? If so, you're nine years and 315 pages out of date! (And if that is the case, http://sourceforge.net/projects/mlbviewer would probably be the best resource to catch up with the wonderful world of out-of-browser MLB viewing...)

xfatalherox 08-29-2015 05:48 PM

After reformatting my linux box and installing mlbviewer again, I'm getting this error when trying to view nexdef streams:

mlbhls: permission denied



anyone else experience this? It seems like with the new experimental version you just copy into the directory, but I can't get it to run like I did in version 14.

chrisVV 08-30-2015 04:40 AM

Quote:

Originally Posted by xfatalherox (Post 5413008)
After reformatting my linux box and installing mlbviewer again, I'm getting this error when trying to view nexdef streams:
mlbhls: permission denied
anyone else experience this? It seems like with the new experimental version you just copy into the directory, but I can't get it to run like I did in version 14.

It looks like you need to install the ValiCert Class2 certificate in whatever certificate directory or bundle libcurl uses in your distribution. There was a discussion about it in March this year. Most distributions have dropped it recently because it only uses 1024 bits of RSA encryption.

larshenric 09-20-2015 03:01 PM

VLC instead of mplayer...
 
Hi!

I guess/hope this is a question with a simple answer:
I wanted to change the player from mplayer to vlc, and I tried it by changing the config file respectively. But with vlc in the config file no player starts.
What am I doing wrong?
Thanks in advance! :-)
Lars

fang2415 09-21-2015 04:54 AM

Hmm, I know I've done that successfully in the past. Does VLC start but then fail to play the video? If so, then you might be running into mlbhls's key-handling problem (I posted a patch for this somewhere upthread). But if it just doesn't start at all then maybe instead there's a problem with the config line?

Could you post the config line and whatever messages mlbviewer or VLC give you when it doesn't work? (Turning on mlbviewer's "debug" option might make these more useful -- I think some useful stuff also gets dumped to a log file in ~/.mlb .) Then we'd have a better idea of what might be going wrong...

daftcat 09-21-2015 11:58 AM

Couple of things you can try:

1. Set show_player_command=1 and debug=1 in config. Select a game and go. You'll get only the command-line without actually playing the stream. I recommend copying this command-line to a text-editor first and removing all the carriage returns at the end of each line before testing that command-line on the actual command-line.

2. This one is more involved.
a. Use mlblistings.py to get an event-id (E: 14-xxx-etc...)
b. cd test
c. ./mlbgame.py <event-id-from-step-a>
d. This will produce a lot of output, but it is scrollable output, e.g. it is not wrapped in curses so you will be able to scroll up and see the command-line used.

I recommend the #2 because once you have an event-id to test with, it's much quicker to change your setting in one window and command recall in the other window.

larshenric 09-21-2015 03:19 PM

Hi! :-)
And thanks for writing... :-)

So, first of all: I don't understand every of those steps you propose. That's surely because my english is not good enough and also because I'm not as much into this matter as you...

But I will have a try:
First, this is my config file content:

# See README for explanation of these settings.
# user and pass are required except for Top Plays

user=***********

pass=***********

video_player=vlc -cache 4096

audio_player=vlc -cache 128

favorite=chc

use_nexdef=0

speed=1200

min_bps=1200

max_bps=2400

adaptive_stream=0

free_color=red

show_player_command=1

debug=1

# Many more options are available and documented at:
# http://sourceforge.net/p/mlbviewer/wiki/Home/

Then I selected sunday's pirates-dodgers game and this is the output:

rtmpdump -f "LNX 10,0,22,87" -o - -r "rtmp://cp65670.edgefcs.net/ondemandmp4:sec
ure/mlbam/2015/09/20/14-415885-2015-09-20/web-encodes/mlbtv_pitlan_home_1200k.mp
4?auth=da.b4b2bwchaVaUbCb1c7blcPafcgchdEcj-bwagtY-O-BvopwlIqInrEIo-lfk3lcjalklem
blfkek6kflljajdkhkelck7laj8lelf&aifp=v0001&slist=secure/mlbam/2015/09/20/14-4158
85-2015-09-20/web-encodes/mlbtv_pitlan_home&ct5=21-Sep-15&ct6=89.246.14.33&ct7=4
37608483:FMS_CLOUD&ct8=1&ct1=mlb&ct3=6092613&ct4=mlb&ct9=1a9f8b17f40e45df9ae90ab
539b50012" -y "mp4:secure/mlbam/2015/09/20/14-415885-2015-09-20/web-encodes/mlbt
v_pitlan_home_1200k.mp4?auth=da.b4b2bwchaVaUbCb1c7blcPafcgchdEcj-bwagtY-O-Bvopwl
IqInrEIo-lfk3lcjalklemblfkek6kflljajdkhkelck7laj8lelf&aifp=v0001&slist=secure/ml
bam/2015/09/20/14-415885-2015-09-20/web-encodes/mlbtv_pitlan_home&ct5=21-Sep-15&
ct6=89.246.14.33&ct7=437608483:FMS_CLOUD&ct8=1&ct1=mlb&ct3=6092613&ct4=mlb&ct9=1
a9f8b17f40e45df9ae90ab539b50012" -a "ondemand?_fcs_vhost=cp65670.edgefcs.net&akm
fv=1.6auth=da.b4b2bwchaVaUbCb1c7blcPafcgchdEcj-bwagtY-O-BvopwlIqInrEIo-lfk3lcjal
klemblfkek6kflljajdkhkelck7laj8lelf&aifp=v0001&slist=secure/mlbam/2015/09/20/14-
415885-2015-09-20/web-encodes/mlbtv_pitlan_home&ct5=21-Sep-15&ct6=89.246.14.33&c
t7=437608483:FMS_CLOUD&ct8=1&ct1=mlb&ct3=6092613&ct4=mlb&ct9=1a9f8b17f40e45df9ae
90ab539b50012" -s http://mlb.mlb.com/flash/mediaplayer...iaPlayer4.swf?
v=4 -t "http://195.95.193.48:1935/ondemand?_fcs_vhost=cp65670.edgefcs.net&akmfv=
1.6auth=da.b4b2bwchaVaUbCb1c7blcPafcgchdEcj-bwagtY-O-BvopwlIqInrEIo-lfk3lcjalkle
mblfkek6kflljajdkhkelck7laj8lelf&aifp=v0001&slist=secure/mlbam/2015/09/20/14-415
885-2015-09-20/web-encodes/mlbtv_pitlan_home&ct5=21-Sep-15&ct6=89.246.14.33&ct7=
437608483:FMS_CLOUD&ct8=1&ct1=mlb&ct3=6092613&ct4=mlb&ct9=1a9f8b17f40e45df9ae90a
b539b50012" -A 0 | vlc -cache 4096
DEBUG enabled: Displaying URL only. Press any key to continue

Okay, and now my problem: I don't know what to do with this step, daftcat:
"...and removing all the carriage returns at the end of each line before testing that command-line on the actual command-line."
...???????? :-/

Greetings :-)
Lars

kweisen 09-21-2015 06:52 PM

I use vlc for the Gameday audio. My config is as:

audio_player=vlc %s

If I recall correctly, having the cache info in the line didn't work or perhaps I didn't have it correct. But try starting with it as I have it above for both the audio and video.

larshenric 09-22-2015 09:31 AM

1 Attachment(s)
I tried it with "vlc %s", but it doesn't work.
For some seconds the terminal tells me something about an error. I took a screenshot (attachment)...

kweisen 09-22-2015 01:26 PM

1 Attachment(s)
Not sure. When my starts up, my terminal gives me this:

daftcat 09-22-2015 06:32 PM

Take the second approach and use this event-id: 14-415885-2015-09-20

test/mlbgame.py 14-415885-2015-09-20

That will produce a lot of output but the last command will be piping the stream into vlc.

For me, I was able to get vlc working with mlbviewer just by using a video_player=vlc line in config.

Get that working first. Then you can look into adjusting the cache.

Quote:

Originally Posted by larshenric (Post 5423609)
Hi! :-)
And thanks for writing... :-)

So, first of all: I don't understand every of those steps you propose. That's surely because my english is not good enough and also because I'm not as much into this matter as you...

But I will have a try:
First, this is my config file content:

# See README for explanation of these settings.
# user and pass are required except for Top Plays

user=***********

pass=***********

video_player=vlc -cache 4096

audio_player=vlc -cache 128

favorite=chc

use_nexdef=0

speed=1200

min_bps=1200

max_bps=2400

adaptive_stream=0

free_color=red

show_player_command=1

debug=1

# Many more options are available and documented at:
# http://sourceforge.net/p/mlbviewer/wiki/Home/

Then I selected sunday's pirates-dodgers game and this is the output:

rtmpdump -f "LNX 10,0,22,87" -o - -r "rtmp://cp65670.edgefcs.net/ondemandmp4:sec
ure/mlbam/2015/09/20/14-415885-2015-09-20/web-encodes/mlbtv_pitlan_home_1200k.mp
4?auth=da.b4b2bwchaVaUbCb1c7blcPafcgchdEcj-bwagtY-O-BvopwlIqInrEIo-lfk3lcjalklem
blfkek6kflljajdkhkelck7laj8lelf&aifp=v0001&slist=secure/mlbam/2015/09/20/14-4158
85-2015-09-20/web-encodes/mlbtv_pitlan_home&ct5=21-Sep-15&ct6=89.246.14.33&ct7=4
37608483:FMS_CLOUD&ct8=1&ct1=mlb&ct3=6092613&ct4=mlb&ct9=1a9f8b17f40e45df9ae90ab
539b50012" -y "mp4:secure/mlbam/2015/09/20/14-415885-2015-09-20/web-encodes/mlbt
v_pitlan_home_1200k.mp4?auth=da.b4b2bwchaVaUbCb1c7blcPafcgchdEcj-bwagtY-O-Bvopwl
IqInrEIo-lfk3lcjalklemblfkek6kflljajdkhkelck7laj8lelf&aifp=v0001&slist=secure/ml
bam/2015/09/20/14-415885-2015-09-20/web-encodes/mlbtv_pitlan_home&ct5=21-Sep-15&
ct6=89.246.14.33&ct7=437608483:FMS_CLOUD&ct8=1&ct1=mlb&ct3=6092613&ct4=mlb&ct9=1
a9f8b17f40e45df9ae90ab539b50012" -a "ondemand?_fcs_vhost=cp65670.edgefcs.net&akm
fv=1.6auth=da.b4b2bwchaVaUbCb1c7blcPafcgchdEcj-bwagtY-O-BvopwlIqInrEIo-lfk3lcjal
klemblfkek6kflljajdkhkelck7laj8lelf&aifp=v0001&slist=secure/mlbam/2015/09/20/14-
415885-2015-09-20/web-encodes/mlbtv_pitlan_home&ct5=21-Sep-15&ct6=89.246.14.33&c
t7=437608483:FMS_CLOUD&ct8=1&ct1=mlb&ct3=6092613&ct4=mlb&ct9=1a9f8b17f40e45df9ae
90ab539b50012" -s http://mlb.mlb.com/flash/mediaplayer...iaPlayer4.swf?
v=4 -t "http://195.95.193.48:1935/ondemand?_fcs_vhost=cp65670.edgefcs.net&akmfv=
1.6auth=da.b4b2bwchaVaUbCb1c7blcPafcgchdEcj-bwagtY-O-BvopwlIqInrEIo-lfk3lcjalkle
mblfkek6kflljajdkhkelck7laj8lelf&aifp=v0001&slist=secure/mlbam/2015/09/20/14-415
885-2015-09-20/web-encodes/mlbtv_pitlan_home&ct5=21-Sep-15&ct6=89.246.14.33&ct7=
437608483:FMS_CLOUD&ct8=1&ct1=mlb&ct3=6092613&ct4=mlb&ct9=1a9f8b17f40e45df9ae90a
b539b50012" -A 0 | vlc -cache 4096
DEBUG enabled: Displaying URL only. Press any key to continue

Okay, and now my problem: I don't know what to do with this step, daftcat:
"...and removing all the carriage returns at the end of each line before testing that command-line on the actual command-line."
...???????? :-/

Greetings :-)
Lars


madmonkey71 10-01-2015 07:44 PM

Hi All,

Tried to view the game list a few moments ago and got the following.

Quote:

matt@MintBookPro:~/bin > python2 mlbviewer-code/mlbviewer.py
Traceback (most recent call last):
File "mlbviewer-code/mlbviewer.py", line 1395, in <module>
curses.wrapper(mainloop, mycfg, mykeys)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer-code/mlbviewer.py", line 257, in mainloop
mywin.statusRefresh()
File "/home/matt/bin/mlbviewer-code/MLBviewer/mlbListWin.py", line 286, in statusRefresh
+ len(speedstr) + len(hdstr) + len(coveragestr) + 2
TypeError: object of type 'NoneType' has no len()
Google provided me with a few tips. Most of which were solved by someone upgrading to the latest version (which I have done).

Quote:

Checked out revision 656.
Not sure where to go from here and I really want to be ready for the post season :)
Any clues ?

Thanks in advance

fang2415 10-07-2015 08:52 PM

Non-US blackout error
 
2 Attachment(s)
After getting up at 1 in the morning to watch the Cubs wild card game, I've run into a disastrous error. Any video stream of the (currently live) game gives me the message
Code:

ERROR: BLACKOUT: MLB_NON_US_BLACKOUT
This is an mlbviewer bug: when I log into the official Flash player the game starts right up (though my low-spec computer can barely handle it). This is the correct behavior, since I am in the UK where no blackout restrictions (even the international restrictions) apply.

The log tells me to check blackout.xml, which is attached. It looks like it also gets successful-1.xml, so I've attached that too.

Time for me to go back to bed, avoid the entire internet all day, and watch the future of my home city unfold as-live tomorrow. I hope nobody else runs into this showstopper in the meantime...


All times are GMT -5. The time now is 11:45 PM.