PDA

View Full Version : Streamlink MLB.TV?


tvgplayer
03-10-2017, 02:22 PM
Can anybody help to use streamlink with MLB.TV? Thanks in advance!


C:\Users\Lenovo\Desktop>streamlink "hlsvariant://http://mlblive-akc.mlb.com/ls01
/mlbam/2017/03/10/MLB_GAME_VIDEO_SDNANA_HOME_20170310_1488914647371/master_wired
60.m3u8" best
[cli][info] Found matching plugin stream for URL hlsvariant://http://mlblive-akc
.mlb.com/ls01/mlbam/2017/03/10/MLB_GAME_VIDEO_SDNANA_HOME_20170310_1488914647371
/master_wired60.m3u8
[cli][info] Available streams: 720p_alt, 288p (worst), 360p, 504p, 540p, 720p (b
est)
[cli][info] Opening stream: 720p (hls)
[stream.hls][error] Failed to create decryptor: Unable to open URL: https://mlb-
ws-mf.media.mlb.com/pubajaxws/bamrest/MediaService2_0/op-generateKey/v-2.3?conte
ntId=1232305983&kid=20267431 (400 Client Error: Bad Request for url: https://mlb
-ws-mf.media.mlb.com/pubajaxws/bamrest/MediaService2_0/op-generateKey/v-2.3?cont
entId=1232305983&kid=20267431)
[cli][error] No data returned from stream
[cli][info] Opening stream: 720p_alt (hls)
[stream.hls][error] Failed to create decryptor: Unable to open URL: https://mlb-
ws-mf.media.mlb.com/pubajaxws/bamrest/MediaService2_0/op-generateKey/v-2.3?conte
ntId=1232305983&kid=20267431 (400 Client Error: Bad Request for url: https://mlb
-ws-mf.media.mlb.com/pubajaxws/bamrest/MediaService2_0/op-generateKey/v-2.3?cont
entId=1232305983&kid=20267431)
[cli][error] No data returned from stream
[cli][info] Closing currently open stream...

JonDough
03-10-2017, 02:32 PM
If you've trying to play a live stream you need the cookie stuff in the command so the key will download everytime. Try the steps in this post http://stream-recorder.com/forum/showpost.php?p=90018&postcount=2 to get the cookie stuff.

If just downloading an old game the key can just be saved separately.

besweeet
04-08-2017, 11:00 PM
If you've trying to play a live stream you need the cookie stuff in the command so the key will download everytime. Try the steps in this post http://stream-recorder.com/forum/showpost.php?p=90018&postcount=2 to get the cookie stuff.

If just downloading an old game the key can just be saved separately.

Getting the cookie is easy, but it seems like MLB.TV relies on other values to be passed through. I can't get it to work either. Same exact issue as the OP.