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)

lajvguy 03-13-2017 03:36 PM

Mlb Rtmpdump Problem?


 
http://yoursportsinhd.com/mlb/game/509721/

Tried to use rtmpdump with RTMPDumpHelper to play in VLC but nothing happens. Can anybody help? Thanks!

j_cool 03-13-2017 04:43 PM

Re: Mlb Rtmpdump Problem?


 
This is not rtmp stream.

http://mlblive-akc.mlb.com/ls01/mlba...r_wired60.m3u8
http://mlblive-akc.mlb.com/ls01/mlba..._complete.m3u8
http://mlblive-akc.mlb.com/ls01/mlba..._complete.m3u8


Here in England I can hear the sound only in my firefox browser, no video.

Those urls I can't play "as they are".

Good challenge.

lajvguy 03-13-2017 05:09 PM

Re: Mlb Rtmpdump Problem?


 
@ j cool,

Thanks for the help but the game ended. Here's the link to another mlb game that starts 600pm Pacific (US):

http://wiz1.net/channel105

Do you know how to get this stream to play in VLC? I don't know what parameters are needed. Can you help?

j_cool 03-13-2017 06:15 PM

Re: Mlb Rtmpdump Problem?


 
Game was on when I tried to see it in firefox, sound yes, but no video.

You get m3u8 with one of many sniffers like urlsnooper, httpfox or hls stream detector extensions for firefox,etc.

You can play m3u8 with vlc however you like if there are no other parameters needed.
This has to be looked at.

Hls stream detector gave me ready to use ffmpeg command, didn't work either.
I forgot to try livestreamer command, it would be compatible with streamlink.

There is one news channel that I can watch with VLC 3, but not with any other VLC older than VLC 3.

http://nightlies.videolan.org/

Streamlink plays the same m3u8 with whatever VLC i throw at it .

6pm your time is 2am here, I go to bed soon, but anyway If I do the same thing result is the same.

Solution would be to try some new trick.

j_cool 03-15-2017 03:05 AM

Re: Mlb Rtmpdump Problem?


 
Laj,

Every day I see something new somewhere on this forum.

Instal firefox extensions HLS stream detector and HDS stream detector,
and when your game is on in LA give them a try.

mckv 03-15-2017 06:07 AM

Re: Mlb Rtmpdump Problem?


 
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 -

lajvguy 03-15-2017 12:37 PM

Re: Mlb Rtmpdump Problem?


 
@ mckv,

Thanks for the help. Can you explain how to use your python player.py file? What folder does python player.py belong in? What command should I use? Thanks again!

lajvguy 03-21-2017 12:46 PM

Re: Mlb Rtmpdump Problem?


 
@j cool,

Tried to use HLS Stream Detector but can't play mlb streams. Do you know how to use python player.py from mckv in previous post? He doesn't answer. Thanks!

j_cool 03-21-2017 01:18 PM

Re: Mlb Rtmpdump Problem?


 
I have not looked at python yet but as things go, I will have to.

Take for example rtmpdump, looks abandoned like livestreamer.

I see only streamlik on the horizon, or write my own rtmpsuck.

lajvguy 03-21-2017 02:26 PM

Re: Mlb Rtmpdump Problem?


 
@j cool,

http://yoursportsinhd.com/mlb/game/509624/

This game streams good with iPhone user agent change. How can I get it to play in VLC? Thanks again!


All times are GMT -6. The time now is 07:53 AM.