View Single Post
  #3  
Old 04-12-2011, 10:23 PM
Stream Recorder
 
Posts: n/a
Default

Re: How to use rtmpsuck in Ubuntu 10.10 Maverick Meerkat


  1. Go to System -> Administration -> User ang Groups and create a new user. I have used the "rtmp" username for the new user, and didn't let the user to have any additional user privileges. The user will be used to monitor RTMP/RTMPE streams.
  2. Download and compile the latest version of rtmpsuck/rtmpdump/rtmpsrv from SVN
    1. Install the tools needed for accessing the code and compilation:
      Code:
      sudo apt-get install build-essential gcc make subversion libssl0.9.8 libssl-dev libssl0.9.8
    2. Check out the latest code from the Subversion repository:
      Code:
      svn co svn://svn.mplayerhq.hu/rtmpdump rtmpdump
    3. Code:
      cd rtmpdump
      cd trunk
    4. Code:
      make
    5. And use the following to install:
      Code:
      sudo make install
  3. Create the following folder
    Code:
    /home/USER/Downloads/dumps
  4. Make the folder the folder created in Step 4 shared:
    1. Open "/home/USER/Downloads/" with Nautilus. And right-click on the "dumps" folder.
    2. Select the Share tab.
    3. Check "Share this folder", "Allow others to create and delete files in this folder", "Guest access (for people without a user account)".
    4. Hit the "Close" button.
    Note that sharing this folder is needed if you want to save videos with rtmpsuck. If you only need to get parameters, you can skip this step.
  5. Redirect traffic from TCP port 1935 to the user created in Step 1. In the terminal:
    Code:
    sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner  \! --uid-owner rtmp  -j REDIRECT
    where rtmp is the user created in Step 1.
  6. Then the account created in Step 1 within the terminal
    Code:
    sudo su rtmp
  7. Then go to the folder created in Step 4
    Code:
    cd /home/USER/Downloads/dumps
  8. And finally launch rtmpsuck
    Code:
    ./rtmpsuck
  9. Now visit the site that has the stream or start playing the stream, rtmpsuck will begin saving (ONLY if the folder you are currently in is shared)
Reply With Quote