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

Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exiting

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

mcpogue 06-06-2010 04:40 PM

Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exiting


 
Hello, I get the following error when attempting to start rtmpsuck:

Code:

ERROR: startStreaming, TCP bind failed for port number: 1935
ERROR: Failed to start RTMP server, exiting!

compiled from latest source 2.2e
created user rtmpsuck
redirected output with the following line:
Code:

iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner rtmpsuck -j REDIRECT
su to rtpmsuck

ran the server with -z option for debug output
got the error above

croques 06-07-2010 01:52 AM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
Ubuntu does not have a su account; as installed you can only sudo from your user account.

Create a su account to fix your problem. see http://stream-recorder.com/forum/ins...html#post17938

mcpogue 06-07-2010 09:30 AM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
I did as you said, same error...what am I doing wrong? even ran rtmpsuck with root privileges and did not work. Help?

walterk01 06-07-2010 01:02 PM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
This is how i go about using rtmpdump in ubuntu and it works for me in versions 9.04-10.04 of ubuntu.
  1. Download the latest svn version.
  2. Make sure you have all the dependencies
  3. Compile (the latest svn version 2.2e now can be installed system wide)
  4. Create a new user account so i can monitor the rtmp protocol
    System->Administration->Users and Groups.
    Create a new user/login account name it whatever you want.
  5. Before getting the stream running within your browser setup your monitor rules and launch rtmpsrv.Open the terminal
    Code:

    sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner  \! --uid-owner user2  -j REDIRECT
    replace user2 with whatever name you have named the user account you created.
  6. Next switch to that account within the terminal
    Code:

    sudo su user2
  7. Next launch either rtmpsrv or rtmpsuck (if you use rtmpsuck make sure the folder you are going to save the file to is shared between your user accounts otherwise nothing will be downloaded/saved)
    Code:

    rtmpsrv
  8. Now visit the site that has the stream or start playing the stream, rtmpsrv will generate the syntax needed to download using rtmpdump or if its rtmpsuck it will begin saving (ONLY if the folder you are currently in is shared) if you use rtmpsrv then you need to copy the syntax and return to your default user account
    Code:

    exit
    Dont close the terminal yet you need to cancel the monitoring rule as well as download using rtmpdump
    Code:

    sudo iptables -t nat -F
    Code:

    rtmpdump "syntax" -o Save.flv
    replace "syntax" with what you got from rtmpsrv and "-o Save.flv" is if you want to save the file under a different name and somewhere else, and thats it.

mcpogue 06-07-2010 06:51 PM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
Have now compiled this software on both fedora 13 and ubuntu 10.4 LTS using the command "make SYS=posix". I have OpenSSL 10.0.0a installed as well as zlib 1.2.5 all three compled without errors.

Have followed all instructions to the letter, I don't think the problem is the proxy itself.

According to the error, something is preventing the proxy from binding to it's port, ergo the proxy aborts and exits, what could cause this?

walterk01 06-07-2010 07:34 PM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
Cant see what the problem is myself.
Did you flush the previous monitoring rules?
With
Code:

sudo iptables -t nat -F
Thats the only reason for that error i can see, try updating to the latest svn version of rtmpdump

Stream Recorder 06-07-2010 11:22 PM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
Quote:

Originally Posted by walterk01 (Post 19430)
This is how i go about using rtmpdump in ubuntu and it works for me in versions 9.04-10.04 of ubuntu.
  1. Download the latest svn version.
  2. Make sure you have all the dependencies
  3. Compile (the latest svn version 2.2e now can be installed system wide)
  4. Create a new user account so i can monitor the rtmp protocol
    System->Administration->Users and Groups.
    Create a new user/login account name it whatever you want.
  5. Before getting the stream running within your browser setup your monitor rules and launch rtmpsrv.Open the terminal
    Code:

    sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner  \! --uid-owner rtmp  -j REDIRECT
    replace rtmp with whatever name you have named the user account you created.
  6. Next switch to that account within the terminal
    Code:

    sudo su rtmp
  7. Next launch either rtmpsrv or rtmpsuck (if you use rtmpsuck make sure the folder you are going to save the file to is shared between your user accounts otherwise nothing will be downloaded/saved)
    Code:

    ./rtmpsrv
  8. Now visit the site that has the stream or start playing the stream, rtmpsrv will generate the syntax needed to download using rtmpdump or if its rtmpsuck it will begin saving (ONLY if the folder you are currently in is shared) if you use rtmpsrv then you need to copy the syntax and return to your default user account
    Code:

    exit
    Dont close the terminal yet you need to cancel the monitoring rule as well as download using rtmpdump
    Code:

    sudo iptables -t nat -F
    Code:

    rtmpdump "syntax" -o Save.flv
    replace "syntax" with what you got from rtmpsrv and "-o Save.flv" is if you want to save the file under a different name and somewhere else, and thats it.

I downloaded rtmpdump 2.2e and followed the instructions. When I launch rtmpsuck
Code:

./rtmpsuck
it starts without any problem.

But when I launch rtmpsrv
Code:

./rtmpsrv
I get the same error:
Code:

ERROR: startStreaming, TCP bind failed for port number: 1935
ERROR: Failed to start RTMP server, exiting!

Tried
Code:

sudo iptables -t nat -F
to no avail.

I use Ubuntu 10.04 Lucid Lynx.

This probably happens because you can't use both rtmpsrv and rtmpsuck, but may be I'm wrong.

hyc 06-08-2010 01:32 AM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
Quote:

Originally Posted by Stream Recorder (Post 19443)
I downloaded rtmpdump 2.2e and followed the instructions. When I launch rtmpsuck
Code:

./rtmpsuck
it starts without any problem.

But when I launch rtmpsrv
Code:

./rtmpsrv
I get the same error:
Code:

ERROR: startStreaming, TCP bind failed for port number: 1935
ERROR: Failed to start RTMP server, exiting!

Tried
Code:

sudo iptables -t nat -F
to no avail.

I use Ubuntu 10.04 Lucid Lynx.

This probably happens because you can't use both rtmpsrv and rtmpsuck, but may be I'm wrong.

Only one program can listen on a TCP port at a time. If you started rtmpsuck then you have to stop it before you can run rtmpsrv.

Stream Recorder 06-08-2010 03:09 AM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
Quote:

Originally Posted by hyc (Post 19453)
Only one program can listen on a TCP port at a time. If you started rtmpsuck then you have to stop it before you can run rtmpsrv.

thank you. how can I stop it? closing the terminal doesn't help.

walterk01 06-08-2010 07:58 AM

Re: Error when starting RTMPSUCK on Ubuntu 10.4 LTS: Failed to start RTMP server, exi


 
To stop/kill any app via the terminal use "Ctrl+c" while the terminal window is open.
If its been closed it should stop but if not run system monitor (System->Administration->System Monitor or Alt+F2 then type "gnome-system-monitor" without the quotes) search for the process in the Processes tab and either Kill or End it, this is the linux version of windows Ctrl+Alt+Del
Theres also a cmd you can use from the terminal to end or kill processes that are already running but you need to know the exact process ID number and cant just kill it by app name "kill -9 process id" to get the exact id you can run from the terminal "ps aux" which will list every process currently running , and the user it belongs to. Its going to be a long list and the ID number will be next to the username.


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