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

Mlb Rtmpdump Problem?

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

avsrf410 04-27-2017 01:27 AM

Re: Mlb Rtmpdump Problem?


 
This link was working for now.
http://mlblive-akc.mlb.com/ls01/mlba...ter_wired.m3u8

Quote:

Originally Posted by mckv (Post 90311)
you can monkey-patch streamlink to change the key retrival url, tho it works fine even without doing it

Code:

import sys
import struct
import streamlink
from Crypto.Cipher import AES
from streamlink.exceptions import StreamError
from base64 import b64encode

session = streamlink.session.Streamlink()

def num_to_iv(n):
    return struct.pack(">8xq", n)

def new_create_decryptor(self, key, sequence):
    if key.method != "AES-128":
        raise StreamError("Unable to decrypt cipher {0}", key.method)

    if not key.uri:
        raise StreamError("Missing URI to decryption key")

    if self.key_uri != key.uri:
        new_uri = b'http://www.zoomtv.me/k.php?q='+b64encode(b'p=mlb&id=1&v=tv&vw=1&s='+b64encode(bytes(key.uri,'utf8')))
        res = self.session.http.get(new_uri.decode('utf-8'), exception=StreamError,
                                    retries=self.retries,
                                    **self.reader.request_params)
        self.key_data = res.content
        self.key_uri = key.uri

    iv = key.iv or num_to_iv(sequence)

    # Pad IV if needed
    iv = b"\x00" * (16 - len(iv)) + iv

    return AES.new(self.key_data, AES.MODE_CBC, iv)

streamlink.stream.hls.HLSStreamWriter.create_decryptor = new_create_decryptor

session.set_option("http-headers", {'Referer':'http://www.zoomtv.me/kembed.php?p=mlb&id=1&v=tv'})
streams = session.streams('hlsvariant://http://mlblive-akc.mlb.com/ls01/mlbam/mlb_network/NETWORK_LINEAR_1/master_wired.m3u8')
stream = streams["worst"]
fd = stream.open()
while True:
    sys.stdout.buffer.write(fd.read(100 * 1024))

python player.py | vlc -


j_cool 04-27-2017 02:19 AM

Re: Mlb Rtmpdump Problem?


 

tvgplayer 04-27-2017 12:47 PM

Re: Mlb Rtmpdump Problem?


 
Quote:

Originally Posted by j_cool (Post 91189)
avsrf410,

Try something yourself before speaking in public.

TVG, if you give a try to this you may find that your browser gets infected with malware.

In that case uninstall your browser and take care that nothing is left from history before reinstalling it again.

If you don't know how to handle this you may end up reinstalling OS from scratch.

::::::::: profile

rd /s /q "%APPDATA%\mozilla"

rd /s /q "%USERPROFILE%\Local Settings\Application Data\Mozilla"

rd /s /q %TEMP%

md %TEMP%

rd /s /q "%USERPROFILE%\Recent"

md "%USERPROFILE%\Recent"

@j cool,

Thanks for looking out for me. I don't want my browser to get infected with malware.

tvgplayer 04-27-2017 12:55 PM

Re: Mlb Rtmpdump Problem?


 
@j cool,

Thanks. Do you know how I can get any mlbstreams.net game to play in VLC? RTMPDumpHelper doesn't pick anything up. Thanks!

http://mlbstreams.net/los-angeles-do...b-live-stream/

j_cool 04-27-2017 03:14 PM

Re: Mlb Rtmpdump Problem?


 
When I click on your link everything is against me to see the stream, webmasters like it like that for a reason beyond me.

When I clicked on avsrf410's link ton of garbage popped-up in matter of seconds and blocked my browser.

When I restarted the browser, the same garbage popped-up again and blocked the browser at the very start.

I had to uninstall and re-install the browser.

Ask avsrf410 how did he get m3u8, but don't click on his link.

troller12 04-27-2017 03:43 PM

Re: Mlb Rtmpdump Problem?


 
About your question too myfeed2all and why RTMPDumpHelper dosent grab any stream datas.So you have to enter the right ports / port ranges in RDH options to scan for.If the stream does run then open CMD and enter netstat -bn and in the Remoteadresse list of your flashplayer plugin process you can see the stream IP & port like this...
Code:

185.80.220.81:13396
....stream does use port 13396.Enter this into scan list.If you try it again then it will fail and if you check stream port again then you see it has changed if you reload the site so they are using dynamic ports but this you can also prevent if you just reload the player on that site alone again then same port will used again and you can grab the stream datas with RDH.
Code:

-r "rtmp://185.80.220.81:13396/stream/"
-a "stream/"
-f "WIN 25,0,0,148"
-W "http://thecdn.04stream.com/p/ooolo1.swf"
-p "http://www.04stream.com/ebb.php?adsp=ttother&width=600&height=460&a=.......=firstrowas1.cc"
-y "0f5Bo327y0yBobZcQBIw.stream?........"

I did short the long paths above.Just follow the important links in browser console to get more infos.

greetz

tvgplayer 04-27-2017 04:28 PM

Re: Mlb Rtmpdump Problem?


 
Quote:

Originally Posted by troller12 (Post 91210)
About your question too myfeed2all and why RTMPDumpHelper dosent grab any stream datas.So you have to enter the right ports / port ranges in RDH options to scan for.If the stream does run then open CMD and enter netstat -bn and in the Remoteadresse list of your flashplayer plugin process you can see the stream IP & port like this...
Code:

185.80.220.81:13396
....stream does use port 13396.Enter this into scan list.If you try it again then it will fail and if you check stream port again then you see it has changed if you reload the site so they are using dynamic ports but this you can also prevent if you just reload the player on that site alone again then same port will used again and you can grab the stream datas with RDH.
Code:

-r "rtmp://185.80.220.81:13396/stream/"
-a "stream/"
-f "WIN 25,0,0,148"
-W "http://thecdn.04stream.com/p/ooolo1.swf"
-p "http://www.04stream.com/ebb.php?adsp=ttother&width=600&height=460&a=.......=firstrowas1.cc"
-y "0f5Bo327y0yBobZcQBIw.stream?........"

I did short the long paths above.Just follow the important links in browser console to get more infos.

greetz

I always learn something from you. How do I just reload the player on that site alone again so same port will be used again? Thanks!

troller12 04-28-2017 01:05 PM

Re: Mlb Rtmpdump Problem?


 
Hi,

so the stream infos you can also read if you inspect the flash player on that site.Just use your browser console a little.

You can also use tools like uBlock Origin.Choose the picker then select the flash player and now you get a new preview window where you can choose elements to hide also with a preview function.Choose this and then undo it and the stream gets fresh loaded alone without to load whole site again.

greetz

JonDough 04-30-2017 01:32 AM

Re: Mlb Rtmpdump Problem?


 
It is all working fine. For mlbstreams.net, don't install any plugins or other crap. The same link on the page has to be clicked like three times. The first two clicks go to ads or that plugin install page. Ignore all of that. The third click will return the m3u8.

tvgplayer 04-30-2017 01:07 PM

Re: Mlb Rtmpdump Problem?


 
Quote:

Originally Posted by JonDough (Post 91277)
It is all working fine. For mlbstreams.net, don't install any plugins or other crap. The same link on the page has to be clicked like three times. The first two clicks go to ads or that plugin install page. Ignore all of that. The third click will return the m3u8.

You're right. You don't have to sign up or download the extension to get the HD stream. Just have to keep clicking the ads off to start the stream. You can get the HD stream setting on the player.

Do you know how to play the m3u8 in VLC? Thanks!


All times are GMT -6. The time now is 05:14 AM.