Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

how to download stream from mlb.com

(http://stream-recorder.com/forum/showthread.php?t=19911)

bigalow 06-15-2015 07:33 PM

how to download stream from mlb.com


 
Hey all-

I've been trying to capture the live streams of baseball games from mlb.com. I am succesfully pulling the m3u8 path but I get the following error when I attempt using livestreamer

bigalows-box:Desktop Bigalow$ livestreamer "hlsvariant://http://mlblive-l3c.mlb.com/ls04/mlbam/2015/06/15/MLB_GAME_VIDEO_PHIBAL_VISIT_20150615/master_wired_web.m3u8" best -o "MLBtest.ts"
[cli][info] Found matching plugin stream for URL hlsvariant://http://mlblive-l3c.mlb.com/ls04/mlbam/2015/06/15/MLB_GAME_VIDEO_PHIBAL_VISIT_20150615/master_wired_web.m3u8
[cli][info] Available streams: 1200k, 1800k, 2400k, 3000k, 4500k (best), 500k (worst), 800k
[cli][info] Opening stream: 4500k (hls)
[cli][error] Could not open stream: Need pyCrypto installed to decrypt this stream
bigalows-box:Desktop Bigalow$

Will someone please help guide me in the proper direction? Thanks!

x-9er 06-20-2015 08:33 AM

Re: how to download stream from mlb.com


 
You really should be using the combination of mlbhls and mlbviewer. Your current approach will not send along the proper auth.

bigalow 06-20-2015 09:45 PM

Re: how to download stream from mlb.com


 
Thanks for the reply x-9er. I have never heard of those tools. I'm looking into them. Any idea if I can use them with osx?

I attempted to run this in osx:
python mlbviewer.py

but I got the error
Missing dependency: python-gdata required for mlbclassics

when I attempted to install python-gdata
I got this error
Error: No available formula for python-gdata
Searching formulae...
Searching taps...
then nothing.

I'm currently at a standstill. I usually have pretty good luck with linux tools on my mac. I think if I could resolve that dependancy error I might be a step closer to playing with these tools. I'm installing a Ubuntu VM now to see if I have any better luck with that.

Any more assistance or detail anyone can provide would be greatly appreciated.

bigalow 06-22-2015 08:22 AM

Re: how to download stream from mlb.com


 
Could someone please put me on the right track with some suggestions or tutorials on using mlbhls and mlbviewer?

My intention is to capture the upcoming Grateful Dead shows and they are going to stream via MLB.tv's services. I have a MLB account and am trying to get some test runs accomplished this week before the first show this coming up Saturday (6/27).

Thank you!!

mehphishtopheles 06-27-2015 11:12 PM

Re: how to download stream from mlb.com


 
I also would greatly appreciate some input on this!!

joejones15 06-28-2015 07:47 AM

Re: how to download stream from mlb.com


 
did you read through this thread...i had some luck as indicated here, but not very efficient with so many files, although the most recent file is the full video:

http://stream-recorder.com/forum/sho...9&postcount=14

mehphishtopheles 06-28-2015 01:38 PM

Re: how to download stream from mlb.com


 
Quote:

Originally Posted by joejones15 (Post 77838)
did you read through this thread...i had some luck as indicated here, but not very efficient with so many files, although the most recent file is the full video:

http://stream-recorder.com/forum/sho...9&postcount=14


Thanks for the response. Unfortunately that's not helpful in this specific instance, as the GD50 stream doesn't allow you to choose between players the way regular mlb.tv streaming does. They have their new streaming system (HLS w/ AES 128 bit crypto), and the old one (rtmp mp4) for baseball, but the GD50 stream is HLS only.

If they were offering both this wouldn't be so rough, because baseball fans are still able to grab the rtmp stream using rtmpdump, though they're not streaming in HD for the rtmp option, so even then there's a major downside (though something is generally better than nothing).

I'd hate to have to resort to screen capture on this, but figuring out this HLS streaming is above my skill level. Not only is it encrypted, but the encryption key changes every 12 .ts segments. If it were one key for the entire video I'd concentrate on capturing the key and manipulating the master m3u8 file, but they've made that quite a task now with the continuous key changes.

bigalow 06-29-2015 09:59 AM

Re: how to download stream from mlb.com


 
If someone is capable and willing to help I can offer my login credentials to help get this captured. I'd love to learn the process but am willing to have just the final product as well. thanks!

joejones15 06-29-2015 03:44 PM

Re: how to download stream from mlb.com


 
Quote:

Originally Posted by bigalow (Post 77862)
If someone is capable and willing to help I can offer my login credentials to help get this captured. I'd love to learn the process but am willing to have just the final product as well. thanks!

if you are willing to share your login, biezom is a trusted and knowledgeable member and I have shared my info with him in the past...maybe he can help?

utuxia 12-02-2015 12:25 AM

Re: how to download stream from mlb.com


 
I'm getting same error as OP on Mac/El Capitan

Code:

[cli][error] Could not open stream: Need pyCrypto installed to decrypt this stream
I ran
Code:

sudo -EH pip install pycrypto
and it installed. but the livestream program still gripes about pyCrypto


All times are GMT -6. The time now is 02:35 PM.