View Single Post
  #4  
Old 06-07-2010, 01:02 PM
walterk01 walterk01 is offline
Junior Member
 
Join Date: Jun 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