Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Change rtmpsuck port?

(http://stream-recorder.com/forum/showthread.php?t=13295)

Quintana 07-30-2012 06:20 PM

Change rtmpsuck port?


 
Hi, I'm on Linux and I need to change the port rtmpsuck runs on; the server I'm trying to sniff uses a port other than 1935 and I don't know how to do it. I tried with:

Code:

iptables -t nat -A OUTPUT -p tcp --dport 190 -j REDIRECT --to-port 1935
But that didn't end up well... rtmpsuck was caught in an endless loop. I was told on IRC that there was a patch that allowed to change the port, but I don't know where's it.

Looking forward for your answers... thanks!

svnpenn 07-30-2012 10:12 PM

Re: Change rtmpsuck port?


 
github.com/svnpenn/rtmpdump/commit/1b39

Quote:

RtmpSuck, support other ports

If you have environment variable set RTMPPORT, it will use it; otherwise default
to 1935. Something like "export RTMPPORT=19350" should work in Bash.

Quintana 07-31-2012 07:06 AM

Re: Change rtmpsuck port?


 
Exactly what I needed. Thanks.

compn 08-01-2012 05:36 AM

Re: Change rtmpsuck port?


 
hah, tried to help you on irc, but i could not find the commit. thanks svnpenn.

svnpenn 08-01-2012 10:09 AM

Re: Change rtmpsuck port?


 
Quote:

Originally Posted by compn (Post 50342)
hah, tried to help you on irc, but i could not find the commit. thanks svnpenn.

The "commit" people were looking for was for RtmpSrv. I duplicated it for RtmpSuck after reading this thread. I am going to try to make it a command line switch.


All times are GMT -6. The time now is 11:28 AM.