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 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


All times are GMT -6. The time now is 06:18 PM.