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

rtmp-host.sh, RtmpExplorer alternative

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

svnpenn 06-24-2012 12:52 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/dotfiles/commit/d1af

Quote:

1. Auto detect host

In the past the script has listed RTMP URLs, and the user needed to paste in
a correct URL. With this patch is an effort to automatically detect the RTMP
host and edit the hosts file accordingly. The regex is new so it might need
some tweaking.

2. The final rtmpdump call was not correct. It was calling something to the
effect of

rtmpdump <arguments>
rtmpdump <arguments> -v

That is wrong because it will try to execute both command in all circumstance.
Command was changed to

rtmpdump <arguments> || rtmpdump <arguments> -v

3. Script is no longer generating a second script and calling script. This is
not necessary

svnpenn 06-25-2012 02:41 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/etc/blob/master/rtmp-host.sh

New link, moderator please update.

svnpenn 07-01-2012 05:46 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/etc/commit/a712

Quote:

Auto detect when RtmpSrv has found parameters

Until now the script has invoked RtmpSrv, then waited for the user to notify the
script when RtmpSrv has captured the parameters.

Using a coprocess the script will now automatically monitor the RtmpSrv process
once its been started. Once the command has been detected it will automatically
exit RtmpSrv and invoke RtmpDump.

Also now that process substitution is not being used we can utilize the slightly
faster #!/bin/sh over #!/bin/bash

Tested with
concertgebouw.nl/live?event=25417
showtvnet.com/player/index.asp?ptype=1
teamcoco.com/video/full-episode-thurs-6/21-seth-meyers-jordana-brewster-and-musical-guests-the-avett-brothers

svnpenn 07-08-2012 01:41 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/etc/commit/fef0

Quote:

rtmp-host.sh regex correction

Old regex was allowing incorrect rtmp URLs, if the host was one character, e.g.

rtmp://q

Also fixed a problem where multiple RTMP URLs were being returned. Tested on

nick.com/videos/clip/penguins-of-madagascar-223a-a-visit-from-uncle-nigel-full-episode.html

svnpenn 07-23-2012 01:34 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/etc/commit/9eda

Quote:

Redirect multiple RTMP URLs

Some websites will present RTMP URLs from more than one host. It can be
difficult to determine which host is the correct one. Patch simply identifies
all unique hosts for the site and runs them all through the hosts file.

Additionally this site was able to invoke RtmpDump directly from RtmpSrv instead
of the normal separate invokation. This is a problem because the RtmpDump
spawned by RtmpSrv, while successful in downloading is not responsive to
keyboard commands such as Ctrl+C. RtmpDump is now killed if invoked by RtmpSrv,
then invoked manually as before.

Tested on
http://nickelodeon.nl/videos/36578-aflevering-1

svnpenn 07-27-2012 10:50 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/etc/commit/977c

Quote:

SecureToken support

http://docs.google.com/viewer?url=wowza.com/resources/WowzaMediaServerPro_UsersGuide.pdf

Parse SecureToken from RAM. It it exists it will be appended to the RtmpDump
command. Will need to clean up the script log but otherwise should be working.

SecureToken test
http://zonytvcom.info/zeetvv.htm

Regex tests
http://nick.com/videos/clip/penguins-of-madagascar-223a-a-visit-from-uncle-nigel-full-episode.html
http://nickelodeon.nl/videos/36578-aflevering-1
http://speciali.105.net/repliche/index/replica/lo-zoo-di-105
http://teamcoco.com/video/category/full-episodes

louieg 08-08-2012 11:07 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
I'm using this method to access hbogo without success. Link
http://www.hbogo.com/#series/video&assetID=GOROSTGP25853?videoMode=embeddedVide o?showSpecialFeatures=false/

This is what I get in the Cygwin terminal:
Code:

RTMP Server v2.4 GIT-2012-03-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
Closing connection... done!

RTMPDump v2.4 GIT-2012-03-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
0
8
Exiting
Closing connection... done!

WARNING: HandShake: Type mismatch: client sent 6, server answered 8
INFO: Connected...
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
+ eval 'rtmpdump -r "rtmpe://stream.adaptive.lln.hbogo.com:1935/a6530/e1" -a "a6530/e1?as=adobe-hmac-sha256&av=1&te=connect&mp=videos/hbo/feature/627030/&et=1344488152&fmta-token=613ce7c1934202645d90132b86a0676e77a02f878ee4fd514b791c9105ff7abd" -f "WIN 10,2,152,32" -W "http://livepassdl.conviva.com/ver/2.53.0.59282/LivePassModuleMain.swf" -p "http://www.hbogo.com/#series/video&assetID=GOROSTGP25853?videoMode=embeddedVideo?showSpecialFeatures=false/" -y "mp4:videos/hbo/feature/627030/hbo_370279_PRO4_1.mp4" -o hbo_370279_PRO4_1.flv -T '\'''\'''
++ rtmpdump -r rtmpe://stream.adaptive.lln.hbogo.com:1935/a6530/e1 -a 'a6530/e1?as=adobe-hmac-sha256&av=1&te=connect&mp=videos/hbo/feature/627030/&et=1344488152&fmta-token=613ce7c1934202645d90132b86a0676e77a02f878ee4fd514b791c9105ff7abd' -f 'WIN 10,2,152,32' -W http://livepassdl.conviva.com/ver/2.53.0.59282/LivePassModuleMain.swf -p 'http://www.hbogo.com/#series/video&assetID=GOROSTGP25853?videoMode=embeddedVideo?showSpecialFeatures=false/' -y mp4:videos/hbo/feature/627030/hbo_370279_PRO4_1.mp4 -o hbo_370279_PRO4_1.flv -T ''
RTMPDump v2.4 GIT-2012-03-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: HandleCtrl: SWFVerification Type 2 request not supported, attempting to use SWFVerification Type 1! Patches welcome...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

Any ideas? I've used various version of rtmpsrv and rtmpdump. I'm stumped and any help would be appreciated! :confused:

svnpenn 08-08-2012 11:25 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by louieg
ERROR: HandleCtrl: SWFVerification Type 2 request not supported, attempting to use SWFVerification Type 1! Patches welcome...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

SwfVerification Type 2 has not been implemented. Sites implementing this will not be downloadable.

Edit
This is a limitation of RtmpDump, not the script.

louieg 08-08-2012 11:41 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Thanks for the prompt response. I had my hopes up because Chap had success one week ago, see:

http://stream-recorder.com/forum/sho...24&postcount=5

I guess they've been busy implementing the change this week. If anyone has any suggestions for any other methods, please post.

chap 08-09-2012 12:06 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by louieg (Post 51008)
Thanks for the prompt response. I had my hopes up because Chap had success one week ago, see:

http://stream-recorder.com/forum/sho...24&postcount=5

I guess they've been busy implementing the change this week. If anyone has any suggestions for any other methods, please post.

Post or PM

Login
Pass


All times are GMT -6. The time now is 12:20 PM.