LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2017, 10:11 AM   #4981
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

I take it you also live outside US? If so, I don't know what to tell you. I live in the US myself so I have no way to debug this. I have been watching this series on the Fox Sports Go app. Are you able to access the game through browser? If so, then it's something in my code that I'm not seeing and not able to test myself. But if the browser also refuses you, contact MLB.tv.

Quote:
Originally Posted by pajamian View Post
When attempting to watch the World Series game 3:

Code:
ERROR: You are not authorized to view this content.
If you are a basic subscriber, try the home stream.

See /home/peter/.mlb/log for more details.
.mlb/log:
Code:
10/28 16:01 | SUCCESSFUL MEDIA REQUEST: status-code: 1 , event-id = 14-526513-2017-10-27

10/28 16:01 | See /home/peter/.mlb/successful-1.xml for XML response.

10/28 16:01 | Received a notAuthorized status.  Response was saved in /home/peter/.mlb/unsuccessful-2.xml.
unsuccessful-2.xml:
Code:
<?xml version="1.0" ?><user-verified-media-response xmlns="http://services.bamnetworks.com/media/types/2.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><user-verified-event><event-id>14-526513-2017-10-27</event-id><user-verified-content><content-id>1865081783</content-id><type>video</type><user-verified-media-item><media-item><type>video</type><state>MEDIA_ON</state><cat-code>mlb_media_mlb_lg</cat-code><login-required>true</login-required><auth-required>true</auth-required><blackout-keywords><blackout-keyword>MLB_NON_US_BLACKOUT</blackout-keyword></blackout-keywords><playback-scenario>FMS_CLOUD</playback-scenario><has-synched-data>false</has-synched-data><preview-url><![CDATA[http://mediadownloads.mlb.com/mlbam/preview/lanhou_1200_preview.mp4]]></preview-url><innings-index>http://mlb.mlb.com/mlb/mmls2017/526513.xml</innings-index><cdns><cdn-name>PRIMARY_AKAMAI</cdn-name></cdns><sequence>1</sequence><duration xsi:nil="true"/></media-item><url/><auth-status><notAuthorizedStatus/></auth-status><blackout-status><blackedOutStatus><blackout>MLB_NON_US_BLACKOUT</blackout></blackedOutStatus></blackout-status></user-verified-media-item><domain-specific-attributes><domain-attribute name="content_guid">497eb118-e5c0-457a-a593-2d184a4b0170</domain-attribute><domain-attribute name="game_pk">526513</domain-attribute><domain-attribute name="milestones_xml">http://mlb.mlb.com/mlb/mmls2017/14-526513-2017-10-27.xml</domain-attribute><domain-attribute name="authflow">true</domain-attribute><domain-attribute name="calendar_event_id">14-526513-2017-10-27</domain-attribute><domain-attribute name="coverage_type">out-of-market</domain-attribute><domain-attribute name="inning_index_location_xml">http://mlb.mlb.com/mlb/mmls2017/526513.xml</domain-attribute><domain-attribute name="event_date">2017-10-27T20:00:00-0400</domain-attribute><domain-attribute name="source_aspect_ratio">HD</domain-attribute><domain-attribute name="closed_captions_location_ttml">http://mediadownloads.mlb.com/ttml/2017/10/28/1865081783.ttml</domain-attribute><domain-attribute name="coverage_association">0</domain-attribute><domain-attribute name="combined_media_state">MEDIA_ON</domain-attribute><domain-attribute name="default_dam_view_key">MLBTV_MP_4</domain-attribute><domain-attribute name="game_events_location_plist">http://gdx.mlb.com/components/game/mlb/year_2017/month_10/day_27/gid_2017_10_27_lanmlb_houmlb_1/game_events.plist</domain-attribute><domain-attribute name="in_epg">mlb_mp4_epg</domain-attribute><domain-attribute name="subject">LIVE_EVENT_COVERAGE</domain-attribute><domain-attribute name="subject">MLBTV</domain-attribute><domain-attribute name="mmtax">fox-auth-required</domain-attribute><domain-attribute name="milestones_plist">http://mlb.mlb.com/mlb/mmls2017/14-526513-2017-10-27.plist</domain-attribute><domain-attribute name="away_team_id">119</domain-attribute><domain-attribute name="home_team_id">117</domain-attribute><domain-attribute name="game_id">2017/10/27/lanmlb-houmlb-1</domain-attribute><domain-attribute name="run_scoring_plays_location_plist">http://gdx.mlb.com/components/game/mlb/year_2017/month_10/day_27/gid_2017_10_27_lanmlb_houmlb_1/runScoringPlays.plist</domain-attribute><domain-attribute name="call_letters">FOX-NAT</domain-attribute><domain-attribute name="inning_index_location_plist">http://mlb.mlb.com/mlb/mmls2017/526513.plist</domain-attribute></domain-specific-attributes><view-keys><view-key><key>MLBTV_MP_4</key></view-key></view-keys><features/><tracking><conviva><tracking-attributes><conviva-attribute name="c3.viewer.id" value="18593294"/><conviva-attribute name="med" value="video"/><conviva-attribute name="assetName" value="DAM Media: 1865081783 2017-10-28 : lan at hou | MLBTV"/><conviva-attribute name="fguid" value="0ef147cd03d34c4fbc146403c33f1dee"/><conviva-attribute name="mlb.vtm" value="119"/><conviva-attribute name="prt" value="mlb"/><conviva-attribute name="mlb.ltr" value="FOX-NAT"/><conviva-attribute name="state" value="MEDIA_ON"/><conviva-attribute name="conid" value="1865081783"/><conviva-attribute name="mlb.htm" value="117"/><conviva-attribute name="pbs" value="FMS_CLOUD"/><conviva-attribute name="mlb.gpk" value="526513"/><conviva-attribute name="calid" value="14-526513-2017-10-27"/></tracking-attributes></conviva><auditude><tracking-attributes><auditude-attribute name="kv" value=""/></tracking-attributes></auditude></tracking></user-verified-content><domain-specific-attributes/></user-verified-event><determined-location><postal-code>0644</postal-code><country-code>nz</country-code></determined-location><session-key>6LE7gmrs6aU7MXnndbxLRMM/J4A=</session-key><session-info/><status-code>1</status-code><status-message>Success Status</status-message></user-verified-media-response>
I have both international=True and postseason=True in my config file.

Peter
 
Old 10-28-2017, 08:24 PM   #4982
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Try this:
https://www.linuxquestions.org/quest...ml#post5441191

It doesn't look like I have made this change in the code base. Probably because I cannot personally test this being a US subscriber.

If you make the change recommended and it works, I will commit it to the code base.
 
Old 10-29-2017, 03:26 AM   #4983
pajamian
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
Try this:
https://www.linuxquestions.org/quest...ml#post5441191

It doesn't look like I have made this change in the code base. Probably because I cannot personally test this being a US subscriber.

If you make the change recommended and it works, I will commit it to the code base.
Thanks. I'll give that a try for tomorrow's game.


Peter
 
Old 10-29-2017, 07:21 PM   #4984
pajamian
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 1
Quote:
Originally Posted by pajamian View Post
Thanks. I'll give that a try for tomorrow's game.


Peter
The game seems to play fine without making any code changes today, so I'll keep it in mind in case it happens again and try it.
 
Old 10-31-2017, 10:05 PM   #4985
pajamian
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
Try this:
https://www.linuxquestions.org/quest...ml#post5441191

It doesn't look like I have made this change in the code base. Probably because I cannot personally test this being a US subscriber.

If you make the change recommended and it works, I will commit it to the code base.
It did it to me again today, so I tried this patch and it seems to be working now.
 
Old 12-13-2017, 11:48 AM   #4986
comat0se
LQ Newbie
 
Registered: May 2016
Posts: 11

Rep: Reputation: 1
Looks like they've changed some things again. If I try to go to the Calendar page, I get this error: MLBviewer.mlbError.MLBUrlError: http://mlb.com/gen/schedule/col/2017_9.json

If I go to that json page directly... I get a 404, so it really has been moved.
 
Old 02-22-2018, 02:21 PM   #4987
chrisVV
Member
 
Registered: Aug 2010
Posts: 262

Rep: Reputation: 100Reputation: 100
No media

I can watch today's Boston Redsox v Northeastern game on MLB.TV using a browser but not when using mlbviewer. mlbviewer logs in OK and shows the game list, but reports that there is no media even for the games being televised by NESN.

It looks as if something has changed again.
 
Old 02-22-2018, 03:23 PM   #4988
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Patience! Looks like some rewrites may be necessary

Hi all!

As some of you may have guessed by now, it looks like MLBAM changed up their infrastructure this offseason.

I will almost certainly need to rewrite large portions and possibly the whole of mlbviewer.

The rewrite may not be ready or may not be fully functional by Opening Day.

Thanks,
daftcat
 
Old 02-23-2018, 02:48 AM   #4989
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
A little help...

I'm having trouble locating the media request using Web Developer view in Firefox and also Wireshark. I can't find the replacement to this:

In other words, how do I parse a media listing into a media request?

Here's a media listing to parse:
http://statsapi.mlb.com:80/api/v1/game/547295/content

I believe the login code hasn't changed so you can chop that out of test/nexdef.py. I'll setup a github and get some login and schedule code from the rewrite posted this weekend.
 
Old 02-23-2018, 03:11 AM   #4990
mkomko
Member
 
Registered: Mar 2010
Posts: 91

Rep: Reputation: 3
Thumbs up

Quote:
Originally Posted by daftcat View Post
As some of you may have guessed by now, it looks like MLBAM changed up their infrastructure this offseason.

I will almost certainly need to rewrite large portions and possibly the whole of mlbviewer.

The rewrite may not be ready or may not be fully functional by Opening Day.
That's what I feared when I read about yet another new media player :-(.
Thank you so much for taking on the rewrites! I would be lost without mlbviewer.
 
Old 02-23-2018, 03:11 AM   #4991
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I got a bit further.

I found this URL in my Web Developer view.
https://search-api-mlbtv.mlb.com/svc...43c18d2bba%22}

I also found this:
https://playback.svcs.mlb.com/events...1-7a6521493c4c

So now my missing piece is where the API key comes from. I'll have to take that up this weekend.
 
Old 02-23-2018, 10:16 AM   #4992
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Hi Daftcat,

I spent some time digging into this as well and have some proof of concept Python code that can go from the ipid and fingerprint that comes from MLB auth, get the necessary JWT token and use that for authenticating to receive the playback URL (master m3u8). I do believe the format of the playlist has changed significantly, so some changes to mlbhls are probably required as well.

If you'd like to talk about this off-line, drop me an email to my LQ username at gmail
 
Old 02-23-2018, 10:18 AM   #4993
hyshai
LQ Newbie
 
Registered: Oct 2015
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post

I'll setup a github and get some login and schedule code from the rewrite posted this weekend.
Setting up a github would be awesome for collaboration, I'd be happy to chip in my help...
 
Old 02-23-2018, 12:11 PM   #4994
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
The more I look at things, the more I'm thinking it may be time to raise mlbhls' banner to the rafters and use an alternate HLS streaming program.

The problem I see is that the encryption keys under the old setup were, to the best of my recollection, transmitted along with the master playlist, whereas now the playlist for each bandwidth setting contains a URL that needs to be requested to pull down the decryption key. That URL requires an access token.

It's not really hard to obtain the token that needs to be passed to retrieve the encryption key, but it does need to be refreshed periodically. Looks like they last four hours, which should be fine for most games, but we'd want to handle longer extra-inning affairs properly.

Supporting all of this would seem to require a major rewrite of mlbhls, and while I'm a decent C programmer, I think a lot of other tools have come along that could make this easier, including streamlink, which has the advantages of (a) being written in Python, (b) already supporting HLS, and (c) having a decent "plugin" system for dealing with stream providers. There isn't one for MLB, but looking at some of the others, I feel like the plugin mechanism should be flexible enough for what we need.

Still working my way through some of the details on this, and happy to be corrected if it turns out mlbhls can do the job, but I think we may be looking at more than just mlbviewer needing some significant updates.

Last edited by tonycpsu; 02-23-2018 at 12:14 PM.
 
1 members found this post helpful.
Old 02-23-2018, 12:36 PM   #4995
brianV_
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Rep: Reputation: Disabled
I created an account just to comment - please make a Github repo. I would love to chip in to help get this ball rolling. I've used mlbviewer since 2014, and would love to give back a bit if I can!
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration