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
  #1  
Old 06-06-2010, 05:40 PM
mcpogue mcpogue is offline
Junior Member
 
Join Date: Jun 2010
Posts: 14
mcpogue is on a distinguished road
Question

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
Reply With Quote
  #2  
Old 06-07-2010, 02:52 AM
croques croques is offline
Junior Member
 
Join Date: Apr 2010
Posts: 6
croques is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 06-07-2010, 10:30 AM
mcpogue mcpogue is offline
Junior Member
 
Join Date: Jun 2010
Posts: 14
mcpogue is on a distinguished road
Default

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?
Reply With Quote
  #4  
Old 06-07-2010, 02:02 PM
walterk01 walterk01 is offline
Junior Member
 
Join Date: Jul 2007
Posts: 16
walterk01 is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 06-07-2010, 07:51 PM
mcpogue mcpogue is offline
Junior Member
 
Join Date: Jun 2010
Posts: 14
mcpogue is on a distinguished road
Default

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?
Reply With Quote
  #6  
Old 06-07-2010, 08:34 PM
walterk01 walterk01 is offline
Junior Member
 
Join Date: Jul 2007
Posts: 16
walterk01 is on a distinguished road
Default

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
Reply With Quote
  #7  
Old 06-08-2010, 12:22 AM
Stream Recorder
 
Posts: n/a
Default

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


Quote:
Originally Posted by walterk01 View Post
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.
Reply With Quote
  #8  
Old 06-08-2010, 02:32 AM
hyc hyc is offline
RTMPdump team
 
Join Date: Dec 2009
Posts: 169
hyc will become famous soon enoughhyc will become famous soon enough
Default

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


Quote:
Originally Posted by Stream Recorder View Post
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.
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 10:10 PM.


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