Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-13-2017, 04:36 PM
lajvguy lajvguy is offline
Senior Member
 
Join Date: Nov 2014
Posts: 203
lajvguy is on a distinguished road
Default

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!
Reply With Quote
  #2  
Old 03-13-2017, 05:43 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 03-13-2017, 06:09 PM
lajvguy lajvguy is offline
Senior Member
 
Join Date: Nov 2014
Posts: 203
lajvguy is on a distinguished road
Default

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?
Reply With Quote
  #4  
Old 03-13-2017, 07:15 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

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.

Last edited by j_cool : 03-14-2017 at 02:24 AM.
Reply With Quote
  #5  
Old 03-15-2017, 04:05 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 03-15-2017, 07:07 AM
mckv mckv is offline
Senior Member
 
Join Date: Mar 2011
Posts: 104
mckv is on a distinguished road
Default

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 -
Reply With Quote
  #7  
Old 03-15-2017, 01:37 PM
lajvguy lajvguy is offline
Senior Member
 
Join Date: Nov 2014
Posts: 203
lajvguy is on a distinguished road
Default

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!
Reply With Quote
  #8  
Old 03-21-2017, 01:46 PM
lajvguy lajvguy is offline
Senior Member
 
Join Date: Nov 2014
Posts: 203
lajvguy is on a distinguished road
Default

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!
Reply With Quote
  #9  
Old 03-21-2017, 02:18 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

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.
Reply With Quote
  #10  
Old 03-21-2017, 03:26 PM
lajvguy lajvguy is offline
Senior Member
 
Join Date: Nov 2014
Posts: 203
lajvguy is on a distinguished road
Default

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!
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:04 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons