Thread: RTMPDumpHelper
View Single Post
  #131  
Old 11-10-2018, 07:28 AM
korexaj korexaj is offline
Member
 
Join Date: Feb 2017
Posts: 63
korexaj is on a distinguished road
Default

Re: RTMPDumpHelper


Quote:
Originally Posted by j_cool View Post
RTMPSRV and RTMPSUCK are for linux, no graphical user interface.

Learning rtmpdump Through Examples ( gone )
http://pclosmag.com/html/issues/201104/page19.html

Run as a root in terminal:
iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT

Run as a root in terminal:
rtmpsuck

As an ordinary user, open in Firefox this address: http://rt.com/on-air/rt-america-air/
Switch to root's terminal. You should see something like the following:
app: live flashVer: LNX 10,1,82,76
swfUrl: http://rt.com/s/swf/player5.4.viral.swf
tcUrl: rtmp://rt.fms.visionip.tv/live
pageUrl: http://rt.com/on-air/rt-america-air/
Playpath: RT_US_3

Break the command after a while
(Ctrl+C).

Run the command in root terminal:
iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT

Run the command in terminal as an ordinary user:
rtmpdump -r rtmp://rt.fms.visionip.tv/live \
-a live \
-y RT_US_3 \ -W http://rt.com/s/swf/player5.4.viral.swf \
-p http://rt.com/on-air/rt-america-air/ \
-f "LNX 10,1,82,76" \
-o ~/rt.flv \
-V \
-B 600

After 10 minutes, you will get the video file "rt.flv" in your home directory

Thanks for this.
Would you happen to know the command for macOS? i got rtmpsuck and rtmpsrv installed but the below command used to work before apparently but no longer works in newer macOS (dating back few years) since their changed iptables for something else which i can't remember.

Quote:
iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT
Reply With Quote