Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #11  
Old 03-21-2013, 11:27 PM
magichandz magichandz is offline
Junior Member
 
Join Date: Mar 2013
Posts: 21
magichandz is on a distinguished road
Default

Re: Getting rtmpsrv working on Mac OS X 10.6.7? Almost there.


yes. i have the same problem cyberscott has. any ideas?
Reply With Quote
  #12  
Old 11-02-2014, 05:30 PM
toxiclabs toxiclabs is offline
Junior Member
 
Join Date: Jul 2013
Posts: 1
toxiclabs is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


I am using rtmpdump for my mac however I was looking at these two commands

sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any to any 1935
sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any to any 1935 not uid RTMP
I read the man page for pfctl since ipfw is no longer supported in Yosemite. If anyone can help convert the two commands on top to pfctl syntax.

Thank you
Reply With Quote
  #13  
Old 01-27-2015, 05:53 AM
eagle_fly eagle_fly is offline
Junior Member
 
Join Date: Jan 2015
Posts: 1
eagle_fly is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


I have exactly the same problem as magichandz and cyberscott,
on Mac OS 10.9.5?
ERROR: serverThread: accept failed
Any ideas? Did anyone solve it?
Thanks
Reply With Quote
  #14  
Old 04-22-2015, 02:19 PM
miroman4o miroman4o is offline
Junior Member
 
Join Date: Apr 2015
Posts: 1
miroman4o is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Here are the correct port forwarding rules for Mac OS X Yosemite:

enable internal port forwarding:
sudo sysctl -w net.inet.ip.forwarding=1

apply the pf rules:
echo '
rdr pass log on lo0 proto tcp from en1 to any port 1935 -> 127.0.0.1
pass out on en1 route-to lo0 inet proto tcp from en1 to any port 1935 keep state
' | sudo pfctl -ef -

check the pf rules:
sudo pfctl -s all

clear the pf rules:
sudo pfctl -F all -f /etc/pf.conf

Thanks to http://serverfault.com/questions/421...to-localhost22

I want to capture the stream urls from http://www.drakulastream.eu/tennis-l...ing-video.html, unfortunately the rtmpsrv crashed with Bus error: 10

At the end I used Linux rtmpsrv with the IPTables example and captured the following:
rtmpdump -r "rtmpe://46.246.124.71:1935/live/" -a "live/" -f "LNX 11,2,202,457" -W "http://www.lshstream.com/jw/jwplayer.flash.swf/[[DYNAMIC]]/2/[[DYNAMIC]]/3" -p "http://www.lshstream.com/embed.php?u=bucharest1&vw=640&vh=360&domain=live.d rakulastream.eu" -y "bucharest1" -o bucharest1.flv

Does anybody knows anything about the dynamic flashplayer parameters?
Reply With Quote
  #15  
Old 12-15-2015, 07:54 AM
iamsumit iamsumit is offline
Member
 
Join Date: Dec 2015
Posts: 72
iamsumit is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Quote:
Originally Posted by miroman4o View Post
Here are the correct port forwarding rules for Mac OS X Yosemite:

enable internal port forwarding:
sudo sysctl -w net.inet.ip.forwarding=1

apply the pf rules:
echo '
rdr pass log on lo0 proto tcp from en1 to any port 1935 -> 127.0.0.1
pass out on en1 route-to lo0 inet proto tcp from en1 to any port 1935 keep state
' | sudo pfctl -ef -

check the pf rules:
sudo pfctl -s all

clear the pf rules:
sudo pfctl -F all -f /etc/pf.conf

Thanks to http://serverfault.com/questions/421...to-localhost22

I want to capture the stream urls from http://www.drakulastream.eu/tennis-l...ing-video.html, unfortunately the rtmpsrv crashed with Bus error: 10

At the end I used Linux rtmpsrv with the IPTables example and captured the following:
rtmpdump -r "rtmpe://46.246.124.71:1935/live/" -a "live/" -f "LNX 11,2,202,457" -W "http://www.lshstream.com/jw/jwplayer.flash.swf/[[DYNAMIC]]/2/[[DYNAMIC]]/3" -p "http://www.lshstream.com/embed.php?u=bucharest1&vw=640&vh=360&domain=live.d rakulastream.eu" -y "bucharest1" -o bucharest1.flv

Does anybody knows anything about the dynamic flashplayer parameters?
I ran the above port forward command. The pf rule has been added and enabled. And then i started rtmpsuck.
Now
1. Some (almost all) of the rtmp streams don't run with this pf enabled.
2. rtmpsuck doesn't return any output in the terminal window. It just keeps on showing Streaming on rtmp://0.0.0.0:1935.

Seems like many other also before me faced this issue, can anyone help me here and update what was the solution that fixed it for them?
Thanks!

Last edited by iamsumit : 12-15-2015 at 01:33 PM.
Reply With Quote
  #16  
Old 12-15-2015, 11:46 PM
iamsumit iamsumit is offline
Member
 
Join Date: Dec 2015
Posts: 72
iamsumit is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Anyone please? Been stuck for more than a day on this. Anyone done this previously for mac?

Edit: Ok so here are my findings.
Port 1935 is closed for me.
So, i guess thats why the streams doesn't load when i port forward rtmp protocols to port 1935.
And as a result the rtmpsuck/rtmpsrv keep on waiting for something to read on port 1935, which of course never happens.

With no port forwarding, i notice that my machine uses random ports such as 49686/43585 for rtmp protocols.

Does anybody here has any workaround for me or has faced a similar scenario? Can rtmpsuck be modified to listen instead on some other port?


Edit 2 - my ports are all fine. The port tester service says its closed but i can receive packets on it. Seems like i have Stateful-firewall (https://en.wikipedia.org/wiki/Stateful_firewall).
But the bottom line is rtmpsuck still sits idle like a lazy old bum... any ideas?

Last edited by iamsumit : 12-16-2015 at 03:30 AM.
Reply With Quote
  #17  
Old 03-13-2016, 09:20 PM
kikuyan kikuyan is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
kikuyan is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Thanks to miroman4o, rtmpsrv and rtmpsuck have worked successfully on 10.11 El Capitan.

PF rules:
Code:
rdr pass on lo0 proto tcp from en1 to any port 1935 -> 127.0.0.1
pass out route-to lo0 inet proto tcp from en1 to any port 1935 user != 2NDUSER
where 2NDUSER is another user than you play streams.

Start rtmpsrv (or rtmpsuck) on 2NDUSER, like:
Code:
su - 2NDUSER
rtmpsrv
P.S.
net.inet.ip.forwarding isn't needed to be set to 1.
PF rules can also be written simpler by using tag:
Code:
rdr pass inet tagged TAGNAME -> lo0
pass out route-to lo0 inet proto tcp from en1 to any port 1935 user != 2NDUSER tag TAGNAME
Reply With Quote
  #18  
Old 03-14-2016, 02:56 PM
ehurdler ehurdler is offline
Senior Member
 
Join Date: Feb 2014
Location: NY
Posts: 126
ehurdler is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


If you wouldn't mind, even if in a direct message. Would you please be able to explain to me how to use rtmpdump with some good detailed steps on a Macintosh. I have rtmpdump, rtmpsrv, rtmpsuck installed on OS X El Capitan 10.11.2 machine. I have just never been able to figure out how to use it. I had found this posting months ago, and now with your new post I thought I would ask for help.

For Example, I would like to get things from Crackle.com
http://www.crackle.com/powers/2494883

Any and all help you may be able to provide would be great and much appreciated! Thank you!
Reply With Quote
  #19  
Old 03-16-2016, 06:53 PM
streamers streamers is offline
Junior Member
 
Join Date: Mar 2016
Posts: 2
streamers is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Quote:
Originally Posted by kikuyan View Post
Thanks to miroman4o, rtmpsrv and rtmpsuck have worked successfully on 10.11 El Capitan.
I have added these lines to the end of my /etc/pf.conf and changed the 2NDUSER to another user, then su to that user and run rtmpsrv.

still nothing happens. is there another step i am missing? thanks
Reply With Quote
  #20  
Old 03-16-2016, 11:13 PM
kikuyan kikuyan is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
kikuyan is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


streamers,

Did you reload /etc/pf.conf or reboot the OS? Do you see the rules in the output of pfctl if you do "sudo pfctl -s nat", "sudo pfctl -s rules", or just "sudo pfctl -s all"?

Please try with the first stream "LIVE STREAMING – SIMULATED LIVE BROADCAST" on this page:
http://www.netromedia.com/video/vide...ming-examples/
This should be easy.
Reply With Quote
Reply Post New Thread
Tags: , , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons