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 05-18-2012 10:21 PM

rtmp-host.sh, RtmpExplorer alternative


 
I never really liked RtmpExplorer

- Only works with Internet Explorer
- Closed source (sort of)
- Requires .NET Framework

This is something I came up with. Basically it dumps the memory of Flash Player, which contains all the RTMP parameters. You put in a search string, e.g. "rtmp", and it should find all the RTMP URLs, e.g.

Code:

rtmpte://cp97384.edgefcs.net
Enter the host

Code:

cp97384.edgefcs.net
After that it will automatically edit your hosts file, invoke RtmpSrv, then RtmpDump. I have tested it on Cygwin but it should work on MinGW with a little modification. Requires

- Firefox or Pale Moon
- ProcDump

Any suggestions welcome.

github.com/svnpenn/dotfiles/blob/master/bin/rtmp-host.sh

It's been updated: http://github.com/svnpenn/etc/blob/master/rtmp-host.sh

Josan420 05-19-2012 10:03 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
:confused: can u please give some more instructions for on how to use it with CYGWIN

drbmn 05-19-2012 10:07 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Hi,
can you help me with your script, please?
Everytime when enter the search string, it tells me
-> Line 17: strings: Command not found!
and also the same on -> Line 21: /c/windows/system32/drivers/etc/hosts: No such file or directory.

Thanks

bat999 05-19-2012 02:00 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by svnpenn (Post 46353)
Any suggestions welcome.

What about a linux version?
:)

svnpenn 05-19-2012 06:45 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by drbmn
Everytime when enter the search string, it tells me
-> Line 17: strings: Command not found!
and also the same on -> Line 21: /c/windows/system32/drivers/etc/hosts: No such file or directory.

Fixed.

Quote:

Originally Posted by bat999
What about a linux version?

Its almost working with linux now I think. We would need to find a linux program that can dump a running process, on Windows its ProcDump.

drbmn 05-20-2012 02:42 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by svnpenn (Post 46394)
Fixed.



Thank you! But only one more mistake is there, it shows me error on Line 26 to start rtmpsrv. And its in the same directory as rtmpsrv and the other files.

evol 05-20-2012 04:54 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Is there no way to make a script for windows without the use of Cygwin or MinGW as there are ports of the commands you use ?

To be honest i would find booting my Puppy Linux CD much easier than doing this and probably quicker too ?

:o

svnpenn 05-20-2012 08:34 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by drbmn (Post 46404)
Thank you! But only one more mistake is there, it shows me error on Line 26 to start rtmpsrv. And its in the same directory as rtmpsrv and the other files.

What is the error?

Quote:

Originally Posted by evol (Post 46408)
Is there no way to make a script for windows without the use of Cygwin or MinGW as there are ports of the commands you use ?

To be honest i would find booting my Puppy Linux CD much easier than doing this and probably quicker too ?

You would be referring to a batch file. Sorry but now that I have used Bash I will never go back.

Edit: Thanks for telling me about Puppy Linux though! I havent used Ubuntu live for a while because so big and slow.

drbmn 05-20-2012 10:03 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by svnpenn (Post 46414)
What is the error?

Press Enter to start RtmpSrv, then restart video
After capture, press "q, enter" to quit
[I pressed enter]
Line 26: rtmpsrv: Command not found!
dos2unix: File capture.sh is being converted to Unix Format ....

Thats the message, but what's capture.sh?

svnpenn 05-20-2012 10:16 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by drbmn
Press Enter to start RtmpSrv, then restart video
After capture, press "q, enter" to quit
[I pressed enter]
Line 26: rtmpsrv: Command not found!

Fixed.

Quote:

Originally Posted by drbmn
dos2unix: File capture.sh is being converted to Unix Format ....

Thats the message, but what's capture.sh?

capture.sh is just a capture of the RtmpDump command, something like

rtmpdump -r "asdf" -a "asdf" -W "asdf" -y "asdf" -o "asdf"

drbmn 05-20-2012 10:39 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Thanks, it seems to work now.

greenythebeast 05-21-2012 07:05 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Any possibilities of getting this to work on a Mac?

svnpenn 05-21-2012 08:55 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by greenythebeast (Post 46478)
Any possibilities of getting this to work on a Mac?

Youd have to find the analog to ProcDump for Mac.

Edit

I really didnt write this script to be some great cross platform tool. It works for me and I would be remiss if I didnt share it with the Windows users struggling with RtmpExplorer.

compn 05-22-2012 05:36 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
on mac and linux you can just use rtmpsrv or rtmpsuck since those OS have the ability to redirect ports. (well i havent tested on mac, but i know linux works)

greenythebeast 05-22-2012 07:19 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by compn (Post 46504)
on mac and linux you can just use rtmpsrv or rtmpsuck since those OS have the ability to redirect ports. (well i havent tested on mac, but i know linux works)

Unfortunately no one has been able to get rtmpsrv working on a Mac, ipfw port redirecting just makes the OS hang and crash :(

svnpenn 05-22-2012 06:49 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by greenythebeast
Unfortunately no one has been able to get rtmpsrv working on a Mac

If I was using Mac I would start with this

stackoverflow.com/a/2839743

Josan420 05-25-2012 04:10 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
hey svnpenn please help me
please tell me how to use it?:( :confused:
is i have to compile it with rtmpdump source or ?

Josan420 05-25-2012 09:29 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
ok i find SH.exe file in my cygwin directry and host file in system32/driver/etc. now i don't know how to proceed?:confused:
i also downloaded procdump.

svnpenn 05-25-2012 05:20 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by Josan420 (Post 46660)
ok i find SH.exe file in my cygwin directry and host file in system32/driver/etc. now i don't know how to proceed?:confused:
i also downloaded procdump.

svnpenn.github.com/2012/05/rtmp-host

Edit

Can a Mod put this in the main post? Thanks.

chap 05-25-2012 05:37 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by svnpenn (Post 46676)
svnpenn.github.com/2012/05/rtmp-host

Edit

Can a Mod put this in the main post? Thanks.

+1000

Stream Ripper 05-28-2012 02:49 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
added http://svnpenn.github.com/2012/05/rtmp-host to main post :)

Josan420 05-29-2012 03:18 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Use rtmp-host.sh
why don't u post a complete instuction on how to install and use rtmp-host.sh, because many people don't know how to use it. only experts can undertstand instructions provided by u:(

svnpenn 05-29-2012 05:50 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by Josan420
why don't u post a complete instuction on how to install and use rtmp-host.sh

Quote:

Originally Posted by svnpenn

​​​​​

Josan420 05-29-2012 08:57 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
i have downloaded evrything
is i have to place rtmpdump, procdump and rtmp-host.sh in same folder?

streamviewer 06-03-2012 08:54 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Hello,

I Have some questions about "rtmp-host.sh", because I can´t find an "installation-documentation by hand" and I have no experience with "Cygwin":

I have installed "Cygwin" on my root-directory ( C:\cygwin ).

Wich packets are necessary, or I need all packets to use "rtmp-host.sh" ???

In wich directory I need to copy the "procdump.exe" ???

In wich directory I need to copy the "RtmpDump" ???

In wich directory I need to copy the "RtmpSrv" ???

In wich directory I need to copy the "rtmp-host.sh" ???

streamviewer

Svenstream 06-04-2012 05:44 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
For all waiting people!
I´ve given a little advice HERE!
No support with his own projects, but great comments in other threats!

Perhaps you are good in scripting, but your social skills ...

My best whishes!

EDIT:
I believe you can forget any suport from "svnpenn"!

You can read it here:
http://stream-recorder.com/forum/get...ed-t12725.html

Quote:

It is not my responsibility to help you or anyone else. If I do so it is for my own pleasure.

These users cant understand Bash or the system PATH, fundamentals of a proper command line experience. As KSV says, may God help them.
I make a little video-tutorial at the weekend!

Svenstream

Josan420 06-05-2012 05:32 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Svenstream:) :) u r right
Quote:

I make a little video-tutorial at the weekend!

Svenstream
thanks
please post video link when u finish it:)

svnpenn 06-05-2012 08:53 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by Svenstream
For all waiting people!
I´ve given a little advice HERE!
No support with his own projects, but great comments in other threats!

Perhaps you are good in scripting, but your social skills ...

My best whishes!

EDIT:
I believe you can forget any suport from "svnpenn"!

Do you think you are going to guilt me into helping you? Your snide remarks and spelling errors do little more than to embarrass you.

Svenstream 06-05-2012 01:19 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by svnpenn (Post 47158)
Do you think you are going to guilt me into helping you? Your snide remarks and spelling errors do little more than to embarrass you.

Is it time now, to search for "spelling errors" ?! :D
No more arguments at this point ?!? :D :p

I'll make you an offer:
We can talk in MY mother language now and then I count your "spelling errors"!
That´s a lot of fun! We have a lot of special rules and cases!

Example: (Iam sure specially you found the right answer! :D )
Whats the right phrase:

A) Das kleinkarierte Hans Wurst
B) Die kleinkarierte Hans Wurst
C) Der kleinkarierte Hans Wurst

Perhaps you can translate this:
Quote:

"Ich habe auch gar nichts gegen Amerika, es ist ein wunderschönes Land. Das Problem sind die Menschen, die dort leben."
(Volker Pispers) "A german political cabaret artist"

Iam sure you found a lot of "spelling errors" from me, but you understand me :D
You can keep them all!

No results and support for his own products, but he talked about my "spelling errors"!
No other problems ??? :rolleyes:

My best whishes!

Svenstream

svnpenn 06-05-2012 02:17 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by Svenstream
We can talk in MY mother language now and then I count your "spelling errors"

My apologies. I believe you are looking for the german forum.

Best wishes

stream-recorder.com/forum/german-deutsch-audio-und-video-streams-aufnehmen-f59.html

greenythebeast 06-05-2012 02:18 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Can you guys stop acting like children? It's embarrassing.

Svenstream 06-05-2012 03:49 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by svnpenn (Post 47168)
My apologies. I believe you are looking for the german forum.

Best wishes

stream-recorder.com/forum/german-deutsch-audio-und-video-streams-aufnehmen-f59.html

Thank you very much! Iam waiting so long for this ...
Quote:

My apologies.
I know you are a good guy and you know deep inside your haert it was a mistake, to start with "spelling errors" and the other shit!

I think it´s time for a big big hug!
Ahhh, that feels good! ;)

And now, with this new power you can use this place, to give support, for your own projekts.

Svenstream

svnpenn 06-05-2012 03:56 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
​​​​​

svnpenn 06-06-2012 02:14 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/dotfiles/commit/74ee

Quote:

Dump non-live and live commands to capture file

Previous version would simply dump command directly from RtmpSrv. I found this
to be a problem because even with KSV RtmpSrv, not all live streams are being
detected, e.g.

http://showtvnet.com/player/index.asp?ptype=1

rtmp-host will now simply dump a non-live and live command. If the non-live
fails then the live will be tried.

svnpenn 06-07-2012 07:17 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/dotfiles/commit/6806

Quote:

Remove ProcDump dependency

Previous versions of rtmp-host.sh were relying on 3rd party program ProcDump to
create process dumps of plugin-container.exe. I realized that this can be done
with "dumper.exe", a standard Cygwin tool.

NOTE
"dumper.exe" requires a 32-bit Firefox.

IrenePappel 06-10-2012 01:45 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
I love rtmp-host.sh, I'm using it to download all Nick Jr. MP4s for my children in higher resolution (with RTMPEXplorer I can only get the low res version).

One issue: I've just noticed that my hosts file is empty since it was modified by rtmp-host.sh. Somehow it was not restored to the original state. Now a few of my registered applications are not registered anymore...;)

So to all users (especially the people who are "using" the hosts file for whatever reasons...): Be careful to check that it is always been restored properly.

Do I have the chance to find my old hosts file somewhere in the system or is is lost now? I had various important entries in there and it would be a bit annoying.

svnpenn 06-10-2012 03:52 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by IrenePappel
I've just noticed that my hosts file is empty since it was modified by rtmp-host.sh. Somehow it was not restored to the original state. Now a few of my registered applications are not registered anymore

I dont use my hosts file for such purposes. To fix this you could make a backup beforehand

Code:

$ cp hosts hosts-backup

$ printf "127.0.0.1 host.host.com" > hosts

$ cp hosts-backup hosts


Svenstream 06-10-2012 04:08 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Sorry guys,

I ´ve believed that the script worked and that is possible to create a fast video-tutorial but ...
The script worked not for me!

Example-URL:
http://www.zdf.de/ZDFmediathek/haupt...4/heute-100SEC

1.
Code:

Press enter after video starts
At this point "dumper.exe" dumps all rtmp-urls.

2.
Code:

Enter host
In my case:
cp125301.edgefcs.net
I believe "rtmp-host.sh" OVERWRITE and not EDIT my hosts-file!


3.
Code:

Press enter to start RtmpSrv, then restart video.
I press "enter and I restart the video.
Now "rtmpsrv.exe" creates the right rtmpdump-commandline
but "rtmp-host.sh" dont delete the entry, in my hosts-file!

4. RTMPDUMP will try to start but thats impossible!
Result (No miracle, the entry is still in my hosts-file):



Code:

RTMPDump v2.4-34-g30cf8a8
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
Closing connection... done!

INFO: Connected...
ERROR: WriteN, RTMP send error 10054 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
rtmpdump -r "rtmp://cp125301.edgefcs.net:1935/ondemand" -a "ondemand" -f "WIN 11,2,202,235" -W "http://www.zdf.de/ZDFmediathek/flash/Main.swf?version=2123" -p "http://www.zdf.de" -y "mp4:zdf/12/06/120610_2002_hko_vh.mp4" -o 120610_2002_hko_vh.flv
WARNING: Trying different position for client digest!
Closing connection... done!

I create in the next days a simple video-Tutorial with the classic way WITHOUT "rtmp-host.sh"!

Perhaps is RTMPDUMPhelper better ???
Thank you for the advice, svnpenn :)

Svenstream

svnpenn 06-10-2012 04:24 PM

Re: rtmp-host.sh, RtmpExplorer alternative


 
Quote:

Originally Posted by Svenstream

Code:

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

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
Closing connection... done!

RTMPDump v2.4-34-g7340f6d
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
rtmpdump -r "rtmp://cp125301.edgefcs.net:1935/ondemand" -a "ondemand" -f "WIN 11
,1,102,55" -W "http://www.zdf.de/ZDFmediathek/flash/Main.swf?version=2123" -p "h
ttp://www.zdf.de/ZDFmediathek/hauptnavigation/startseite/#/beitrag/video/257404/
heute-100SEC" -y "mp4:zdf/12/06/120610_2002_hko_vh.mp4" -o 120610_2002_hko_vh.fl
v
qConnecting ...
INFO: Connected...
Closing connection... ERROR: WriteN, RTMP send error 10054 (42 bytes)
done!

ERROR: RTMP_ReadPacket, failed to read RTMP packet header
q
Exiting
RTMPDump v2.4-34-g7340f6d
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              116.24
INFO:  moovPosition          32.00
INFO:  width                852.00
INFO:  height                480.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            77.00
INFO:  avclevel              30.00
INFO:  aacaot                2.00
INFO:  videoframerate        25.00
INFO:  audiosamplerate      48000.00
INFO:  audiochannels        2.00
INFO: tags:
INFO:  cprt-deu              (c) 2012 ZDF
INFO: trackinfo:
INFO:  length                116240.00
INFO:  timescale            1000.00
INFO:  language              deu
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                5577726.00
INFO:  timescale            48000.00
INFO:  language              deu
INFO: sampledescription:
INFO:  sampletype            mp4a
INFO:  length                10461600.00
INFO:  timescale            90000.00
INFO:  language              und
INFO: sampledescription:
INFO:  length                5581824.00
INFO:  timescale            48000.00
INFO:  language              und
INFO: sampledescription:
1155.901 kB / 6.12 sec (5.2%)


svnpenn 06-18-2012 12:58 AM

Re: rtmp-host.sh, RtmpExplorer alternative


 
github.com/svnpenn/dotfiles/commit/9ea4

Quote:

Disable flash player protected mode for Firefox

According to http://forums.adobe.com/thread/1018071

instead of dealing with the new protected mode, which involves 3 processes for
the flash player, you can simply disable it.

This means once again only plugin-container.exe will need to be dumped and not
these new processes. This will speed up the dumping process and parsing process.


All times are GMT -6. The time now is 03:16 PM.