PDA

View Full Version : MLB.TV Livestreamer Support?


CLran619
03-27-2015, 06:18 PM
well was wondering if anyone knows of a way to rip from MLB.TV website. ive tired live streamer but with no success...

livestreamer "hlsvariant://http://mlblive-akc.mlb.com/ls04/mlba
m/2015/03/27/MLB_GAME_VIDEO_NYAPHI_HOME_20150327/master_wired.m3u8" best -o mlb.
flv
[cli][info] Found matching plugin stream for URL hlsvariant://http://mlblive-akc
.mlb.com/ls04/mlbam/2015/03/27/MLB_GAME_VIDEO_NYAPHI_HOME_20150327/master_wired.
m3u8
[cli][info] Available streams: 1200k, 1800k, 2400k, 3000k, 4500k (best), 500k (w
orst), 800k
[cli][info] Opening stream: 4500k (hls)
[stream.hls][error] Failed to create decryptor: Unable to open URL: https://mlb-
ws.mlb.com/pubajaxws/bamrest/MediaService2_0/op-generateKey/v-2.3?contentId=5445
1783&kid=210309 (400 Client Error: Some how, we weren't able to populate request
, either from cookie or URL params. Content/playback not resolved)

joejones15
03-28-2015, 04:53 AM
link to web-page with streaming video?

surya987
03-28-2015, 07:47 AM
the problem is with key ..... not with livestreamer....

Post video link...

CLran619
04-02-2015, 10:51 PM
first u need premium account access to help, no way i cant just post link. so senior members (preferably recognized ones) only PM me

utuxia
04-10-2015, 10:22 PM
I am also wondering if I can decrypt these streams.

Here's a live link:

http://mlblive-l3c.mlb.com/ls04/mlbam/2015/04/11/MLB_GAME_VIDEO_SEAOAK_HOME_20150411/4500K/4500_complete.m3u8

joejones15
04-11-2015, 05:41 AM
I used this, and when it attempts to open the stream it says no data...because its a live feed which is now over:

livestreamer "hls://mlblive-l3c.mlb.com/ls04/mlbam/2015/04/11/MLB_GAME_VIDEO_SEAOAK_HOME_20150411/4500K/4500_complete.m3u8" best

Can you post an on-demand/replay code instead?

If you're not sure which line code, run URLsnooper while you play the on-demand feed and then go to:

file>export>save entire table to file

Then post that .txt file on here so we can look over the data

stinkfoot
04-11-2015, 10:27 AM
that no problem.
yes problem cookie key.
look mlbhls (https://code.google.com/p/mlbmc-xbmc/).

utuxia
04-11-2015, 07:53 PM
http://mlblive-akc.mlb.com/ls04/mlbam/2015/04/11/MLB_GAME_VIDEO_SEAOAK_HOME_20150411_1/master_mobile_fwv2.m3u8

Here's a link to the on-demand/archive. The previous link was to a live stream.

ohms_law
04-30-2015, 11:52 AM
FYI, the MLB Media Center (http://mlb.mlb.com/mediacenter/) is accessable without a subscription. There's a free game of the day every day as well, so you don't actually need to subscribe.

utuxia
05-01-2015, 04:24 AM
FYI, the MLB Media Center (http://mlb.mlb.com/mediacenter/) is accessable without a subscription. There's a free game of the day every day as well, so you don't actually need to subscribe.

What does this have to do with my issue?

nullacht
05-02-2015, 08:17 AM
Has anyone tried it again? Maybe it works, if you add these options:

--http-cookie
--http-header

[1 (http://docs.livestreamer.io/cli.html#cmdoption--http-cookie)] [2 (http://docs.livestreamer.io/cli.html#cmdoption--http-header)]

Zebra
05-06-2015, 04:31 PM
I used this, and when it attempts to open the stream it says no data...because its a live feed which is now over:

livestreamer "hls://mlblive-l3c.mlb.com/ls04/mlbam/2015/04/11/MLB_GAME_VIDEO_SEAOAK_HOME_20150411/4500K/4500_complete.m3u8" best

Can you post an on-demand/replay code instead?

If you're not sure which line code, run URLsnooper while you play the on-demand feed and then go to:

file>export>save entire table to file

Then post that .txt file on here so we can look over the data

Here's a URLsnooper table. http://pastebin.com/gq5g4M0X
I tried an updated MRC, livestreamer, and ffmpeg with no luck.

I accessed the stream through http://mlb.mlb.com/mediacenter/ but the direct link is http://mlb.mlb.com/shared/flash/mediaplayer/v4.5/R7/MP4.jsp?calendar_event_id=14-414053-2015-05-06&content_id=103564583&media_id=&view_key=&media_type=video&source=MLB&sponsor=MLB&clickOrigin=Media+Grid&affiliateId=Media+Grid&team=mlb.

Either of these seemed like they should work
http://mlblive-akc.mlb.com/ls04/mlbam/2015/05/06/MLB_GAME_VIDEO_ARICOL_VISIT_20150506/2400K/2400_complete.m3u8
http://mlblive-akc.mlb.com/ls04/mlbam/2015/05/06/MLB_GAME_VIDEO_ARICOL_VISIT_20150506/master_wired.m3u8

But livestreamer says,
[cli][info] Found matching plugin stream for URL hlsvariant://http://mlblive-akc.mlb.com/ls04/mlbam/2015/05/06/MLB_GAME_VIDEO_ARICOL_VISIT_20150506/master_wired.m3u8
[cli][info] Available streams: 1200k, 1800k, 2400k, 3000k, 4500k (best), 500k (worst), 800k
[cli][info] Opening stream: 4500k (hls)
[stream.hls][error] Failed to create decryptor: Unable to open URL: https://mlb-ws.mlb.com/pubajaxws/bamrest/MediaService2_0/op-generateKey/v-2.3?contentId=103564583&kid=20021310 (400 Client Error: Some how, we weren't able to populate request, either from cookie or URL params. Content/playback not resolved)
[cli][error] No data returned from stream

joejones15
05-06-2015, 05:04 PM
But livestreamer says,
[cli][info] Found matching plugin stream for URL hlsvariant://http://mlblive-akc.mlb.com/ls04/mlbam/2015/05/06/MLB_GAME_VIDEO_ARICOL_VISIT_20150506/master_wired.m3u8
[cli][info] Available streams: 1200k, 1800k, 2400k, 3000k, 4500k (best), 500k (worst), 800k
[cli][info] Opening stream: 4500k (hls)
[stream.hls][error] Failed to create decryptor: Unable to open URL: https://mlb-ws.mlb.com/pubajaxws/bamrest/MediaService2_0/op-generateKey/v-2.3?contentId=103564583&kid=20021310 (400 Client Error: Some how, we weren't able to populate request, either from cookie or URL params. Content/playback not resolved)
[cli][error] No data returned from stream

interesting, was this live or was this on-demand at the time?

i wonder if there is some sort of token?

what number keeps changing in these (in red):

"http://mlblive-akc.mlb.com/ls04/mlbam/2015/05/06/MLB_GAME_VIDEO_ARICOL_VISIT_20150506/2400K/21/32/22.ts", "GET ts file (relative)", "", "45447824", "172.16.83.128"

"http://mlblive-akc.mlb.com/ls04/mlbam/2015/05/06/MLB_GAME_VIDEO_ARICOL_VISIT_20150506/2400K/21/32/27.ts", "GET ts file (relative)", "", "45445096", "172.16.83.128"

"http://mlblive-akc.mlb.com/ls04/mlbam/2015/05/06/MLB_GAME_VIDEO_ARICOL_VISIT_20150506/2400K/2400_complete.m3u8", "GET m3u8 file (relative)", "", "45448352", "172.16.83.128"

there also seem to be a lot of these "generate key" sequences:

"https://mlb-ws.mlb.com/pubajaxws/bamrest/MediaService2_0/op-generateKey/v-2.3?contentId=103564583&kid=20021306", "https 3 file", "", "45448616", "184.85.215.113"

joejones15
05-06-2015, 08:00 PM
so this url plays without any login, the on-demand feed:
http://mlb.mlb.com/shared/flash/mediaplayer/v4.5/R7/MP4.jsp?calendar_event_id=14-414053-2015-05-06&content_id=103564583&media_id=&view_key=&media_type=video&source=MLB&sponsor=MLB&clickOrigin=Media+Grid&affiliateId=Media+Grid&team=mlb

This is what rtmpdumphelper did on "suck" mode:

RTMP Proxy Server v2.4 GIT-2015-01-15 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
Processing connect
app : ondemand?_fcs_vhost=cp65670.edgefcs.net&akmfv=1.6&auth=da.cSaAbcbuc
MdEaCcda0b4bxdccadTdbdq-bvsSzu-O-zuqpwkBsJqlDIp-j8k8kamglemimamflgjkk4kblkm3jfld
j7k9kamcl7m8mbmi&aifp=v0001&slist=secure/mlbam/2015/05/06/14-414053-2015-05-06/w
eb-encodes/mlbtv_aricol_visit&ct5=07-May-15&ct6=67.250.252.57&ct7=103564583:FMS_
CLOUD&ct8=1&ct1=mlb&ct3=29984479&ct4=mlb&ct9=b47fa9821fc14f078fda2959c50bc377
flashVer : WIN 17,0,0,169
swfUrl : http://mlb.mlb.com/shared/flash/mediaplayer/v4.5/R7/MediaPlayer4.sw
f
tcUrl : rtmp://184.29.104.62:1935/ondemand?_fcs_vhost=cp65670.edgefcs.net&a
kmfv=1.6&auth=da.cSaAbcbucMdEaCcda0b4bxdccadTdbdq-bvsSzu-O-zuqpwkBsJqlDIp-j8k8ka
mglemimamflgjkk4kblkm3jfldj7k9kamcl7m8mbmi&aifp=v0001&slist=secure/mlbam/2015/05
/06/14-414053-2015-05-06/web-encodes/mlbtv_aricol_visit&ct5=07-May-15&ct6=67.250
.252.57&ct7=103564583:FMS_CLOUD&ct8=1&ct1=mlb&ct3=29984479&ct4=mlb&ct9=b47fa9821
fc14f078fda2959c50bc377
pageUrl : http://mlb.mlb.com/shared/flash/mediaplayer/v4.5/R7/MP4.jsp?calenda
r_event_id=14-414053-2015-05-06&content_id=103564583&media_id=&view_key=&media_t
ype=video&source=MLB&sponsor=MLB&clickOrigin=Media+Grid&affiliateId=Media+Grid&t
eam=mlb
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!



so i ran rtmpdumphelper on "serve" mode and got this download of cumulative files, with the most recent and largest file playing the whole video...so this will work and download the whole game, but your folder will have a bunch of smaller files...but the most recent and largest file has the whole thing start to finish:

http://i.imgur.com/6rosqut.png

http://i.imgur.com/2QgJdgP.jpg

Zebra
05-07-2015, 09:43 PM
Nice, thanks! Just saw this, will check it out soon!

Zebra
05-09-2015, 12:35 PM
so this url plays without any login, the on-demand feed:
http://mlb.mlb.com/shared/flash/mediaplayer/v4.5/R7/MP4.jsp?calendar_event_id=14-414053-2015-05-06&content_id=103564583&media_id=&view_key=&media_type=video&source=MLB&sponsor=MLB&clickOrigin=Media+Grid&affiliateId=Media+Grid&team=mlb

This is what rtmpdumphelper did on "suck" mode:

so i ran rtmpdumphelper on "serve" mode and got this download of cumulative files, with the most recent and largest file playing the whole video...so this will work and download the whole game, but your folder will have a bunch of smaller files...but the most recent and largest file has the whole thing start to finish:

Sorry if this is a silly question, but I must be doing something wrong. When I run rtmpdumphelper in either mode, the only command prompt output I get is
RTMP Server 2.4 GIT-2015-01-15 (Compiled by KSV)
(c) 2010 [etc., etc.]

Streaming on rtmp://0.0.0.0:1935
I tried launching the browser before rtmpdumphelper, and vice versa. I tried Chrome and Firefox. The rtmpdumphelper GUI says that it successfully launches the RTMP proxy server and successfully attaches to the web browser. Should it take a while?

joejones15
05-10-2015, 01:45 PM
i open rtmpdumphelper first in serve mode, then play this link in firefox and it catches right away:

http://mlb.mlb.com/shared/flash/mediaplayer/v4.5/R7/MP4.jsp?calendar_event_id=14-414053-2015-05-06&content_id=103564583&media_id=&view_key=&media_type=video&source=MLB&sponsor=MLB&clickOrigin=Media+Grid&affiliateId=Media+Grid&team=mlb

do you have most recent version:

https://github.com/K-S-V/Scripts/releases/download/v2.4/rtmpdump-2.4.zip

Zebra
05-10-2015, 02:57 PM
Huh. I did have 2.4 before. I just tried it again and got a Failed to start RTMP server error, but then extracted rtmpdump-2.4.zip again, copied over the files in rtmpdumphelper121, relaunched, and got the same output as before (Streaming on rtmp://0.0.0.0:1935).

The RTMPdump binaries are all in the rtmpdumphelper121 folder, which is in Program Files (x86). That patch.diff file isn't used for anything since these are already compiled, right?

joejones15
05-10-2015, 03:43 PM
Huh. I did have 2.4 before. I just tried it again and got a Failed to start RTMP server error, but then extracted rtmpdump-2.4.zip again, copied over the files in rtmpdumphelper121, relaunched, and got the same output as before (Streaming on rtmp://0.0.0.0:1935).

The RTMPdump binaries are all in the rtmpdumphelper121 folder, which is in Program Files (x86). That patch.diff file isn't used for anything since these are already compiled, right?

hmmm...not sure mate, im stumped

this is the command line i get:

rtmpdump -r "rtmp://184.29.104.62:1935/ondemand" -a "ondemand?_fcs_vhost=cp65670.edgefcs.net&akmfv=1.6&auth=da.dja1cTa4aNdfdMaCaxbhcmcpdHd2cQbP-bvt9i6-O-EunqzjHqKqqGIn-j9k9l9ljmhmhlbkamljhl7jhjlm8mfjij8kal9lfmam7lckd&aifp=v0001&slist=secure/mlbam/2015/05/06/14-414053-2015-05-06/web-encodes/mlbtv_aricol_visit&ct5=10-May-15&ct6=67.250.252.57&ct7=103564583:FMS_CLOUD&ct8=1&ct1=mlb&ct3=29984479&ct4=mlb&ct9=d0a84eeafa794bc0a8397a03693a6d53" -f "WIN 17,0,0,169" -W "http://mlb.mlb.com/shared/flash/mediaplayer/v4.5/R7/MediaPlayer4.swf" -p "http://mlb.mlb.com/shared/flash/mediaplayer/v4.5/R7/MP4.jsp?calendar_event_id=14-414053-2015-05-06&content_id=103564583&media_id=&view_key=&media_type=video&source=MLB&sponsor=MLB&clickOrigin=Media+Grid&affiliateId=Media+Grid&team=mlb" -C B:0 -y "mp4:secure/mlbam/2015/05/06/14-414053-2015-05-06/web-encodes/mlbtv_aricol_visit_2400k.mp4?auth=da.dja1cTa4aNdfd MaCaxbhcmcpdHd2cQbP-bvt9i6-O-EunqzjHqKqqGIn-j9k9l9ljmhmhlbkamljhl7jhjlm8mfjij8kal9lfmam7lckd&aifp=v0001&slist=secure/mlbam/2015/05/06/14-414053-2015-05-06/web-encodes/mlbtv_aricol_visit&ct5=10-May-15&ct6=67.250.252.57&ct7=103564583:FMS_CLOUD&ct8=1&ct1=mlb&ct3=29984479&ct4=mlb&ct9=d0a84eeafa794bc0a8397a03693a6d53" -o "2015-05-10_05-48-44_mlbtv_aricol_visit_2400k.flv"

maybe try clearing your firefox history, start rtmpdumphelper on "serve", then open firefox and play that link (also, not sure if makes difference, but I have adblocker on while doing this)

Zebra
05-10-2015, 04:58 PM
Which version of adblock? I've been using ublock, but it shouldn't make a difference.

surya987
05-10-2015, 09:39 PM
@ZEBRA... wait for video to play than rtmpserv.exe wil automatically grab the link and video....

joejones15
05-11-2015, 08:40 AM
@ZEBRA... wait for video to play than rtmpserv.exe wil automatically grab the link and video....

yes, it does take a while, so make sure you wait till its actually playing in the browser, then it will work

Zebra
06-28-2015, 06:39 PM
So, I'm still having the same issue with this. Could it be port-related? Is there any way the RTMP stream could be coming through a different port than 1935?