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

svnpenn 10-02-2012 05:17 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Search for streams with upper case

Some sites are now using upper case "to be cute". For example

RTMPE://cp68509.edgefcs.net

Regex has been modified to search for both upper and lower case streams. Tested
on

http://tape.tv
github.com/svnpenn/etc/commit/474c

xrspook 10-08-2012 06:58 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
i use Cygwin + rtmp-host.sh try to download

http://www.wwe.com/videos/alberto-de...usive-26054665

but this happened...

Code:

./rtmp-host.sh
Killed flash player for clean dump. Hosts file reset.
Restart video then press enter here.

127.0.0.1 bcvideos.wwe.com
127.0.0.1 cp95906.edgefcs.net
Press enter to start RtmpSrv, then restart video.

./rtmp-host.sh: line 44: rtmpsrv: command not found

rtmp-host.sh and rtmpsrv are in the same folder

did i forget something or do something wrong?

please give me a hand, thanks :)

svnpenn 10-08-2012 07:37 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by xrspook
Code:

./rtmp-host.sh: line 44: rtmpsrv: command not found

This is a long standing issue that I never came up with a good solution for. The script is looking for RtmpSrv on the "PATH", not the current directory or even the directory with the script. For now you can fix this by doing one of these

- move RtmpSrv to the PATH, for example C:\cygwin\usr\local\bin\rtmpsrv.exe
- modify the path before running the script
Code:

PATH+=:.
For the long term I think I will put up a warning to this effect if RtmpSrv is not on the PATH.

xrspook 10-08-2012 10:13 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by svnpenn (Post 55111)
- move RtmpSrv to the PATH, for example C:\cygwin\usr\local\bin\rtmpsrv.exe

not only rtmpsrv.exe but also rtmpdump.exe should move to PATH!

finally, i got this!!!

Code:

$ ./rtmp-host.sh
Killed flash player for clean dump. Hosts file reset.
Restart video then press enter here.

127.0.0.1 bcvideos.wwe.com
127.0.0.1 cp95906.edgefcs.net
Press enter to start RtmpSrv, then restart video.

RTMP Server v2.4-41-g7bae82a
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

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

ERROR: Handshake failed
Closing connection... done!

RTMPDump v2.4-41-g7bae82a
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
rtmpdump -r "rtmpe://bcvideos.wwe.com:1935/wwevideo?videoId=1859320248001&lineUpId=&pubId=97927511001&playerId=1511047392001&affiliateId=" -a "wwevideo?videoId=1859320248001&lineUpId=&pubId=97927511001&playerId=1511047392001&affiliateId=" -f "WIN 11,4,402,265" -W "http://admin.brightcove.com/viewer/us20121005.1247/federatedVideoUI/BrightcovePlayer.swf?uid=1349708842521" -p "http://www.wwe.com/videos/alberto-del-rio-runs-down-the-wwe-universe-in-albany-wwe-app-exclusive-26054665" -y "mp4:97927511001/97927511001_1859359273001_raw1009-2ndscrn-delrio-otunga.mp4?videoId=1859320248001&lineUpId=&pubId=97927511001&playerId=1511047392001&affiliateId=" -o 97927511001_1859359273001_raw1009-2ndscrn-delrio-otunga.flv
RTMPDump v2.4-41-g7bae82a
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              173.45
INFO:  moovPosition          48.00
INFO:  width                720.00
INFO:  height                404.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            66.00
INFO:  avclevel              30.00
INFO:  aacaot                2.00
INFO:  videoframerate        29.97
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO: tags:
INFO:  ©too                Lavf53.24.0
INFO: trackinfo:
INFO:  length                519500.00
INFO:  timescale            2997.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                7649280.00
INFO:  timescale            44100.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            mp4a
1688.909 kB / 32.77 sec (18.8%)

svnpenn, thank you very much~~~~~

jmersh 10-11-2012 04:37 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
this looks good but how do you use it? compile it? i am a bit confused.

svnpenn 10-11-2012 06:11 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by jmersh (Post 55258)
this looks good but how do you use it? compile it? i am a bit confused.

svnpenn.github.com/2012/rtmp-host

jmersh 10-13-2012 02:32 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
no it breaks:

Code:

./rtmp-host.sh: line 37: rtmpsrv: command not found
sucks, I also don't see any option to add multiple links.

svnpenn 10-13-2012 10:20 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by jmersh
./rtmp-host.sh: line 37: rtmpsrv: command not found

You could try, oh I dont know, reading up four posts.

Quote:

Originally Posted by svnpenn
This is a long standing issue that I never came up with a good solution for. The script is looking for RtmpSrv on the "PATH", not the current directory or even the directory with the script. For now you can fix this by doing one of these

- move RtmpSrv to the PATH, for example C:\cygwin\usr\local\bin\rtmpsrv.exe
- modify the path before running the script
Code:

PATH+=:.
For the long term I think I will put up a warning to this effect if RtmpSrv is not on the PATH.

stream-recorder.com/forum/showpost.php?p=55111&postcount=53

jmersh 10-14-2012 04:58 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
the bash for multiple videos doesn't work.

svnpenn 10-15-2012 06:26 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Add some checks for RtmpSrv

Added a warning for proper version of RtmpSrv. Also fix this error

rtmpsrv: command not found

This error occurs because many people put RtmpSrv in the same folder as the
script, which may or may not be on the PATH. RtmpSrv should be kept at

/usr/local/bin

If the script finds RtmpSrv in the same folder, it will move it to the proper
location.
github.com/svnpenn/etc/commit/a769

someguy9 01-06-2013 12:30 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Is rtmp-host.sh not available anymore? I tried to access the following link, but it came back file not found.

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


All times are GMT -6. The time now is 08:37 PM.