04-12-2011, 10:23 PM
|
|
Re: How to use rtmpsuck in Ubuntu 10.10 Maverick Meerkat
- 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.
- Download and compile the latest version of rtmpsuck/rtmpdump/rtmpsrv from SVN
- 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
- Check out the latest code from the Subversion repository:
Code:
svn co svn://svn.mplayerhq.hu/rtmpdump rtmpdump
Code:
cd rtmpdump
cd trunk
- And use the following to install:
- Create the following folder
Code:
/home/USER/Downloads/dumps
- Make the folder the folder created in Step 4 shared:
- Open "/home/USER/Downloads/" with Nautilus. And right-click on the "dumps" folder.
- Select the Share tab.
- Check "Share this folder", "Allow others to create and delete files in this folder", "Guest access (for people without a user account)".
- 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.
- 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. - Then the account created in Step 1 within the terminal
- Then go to the folder created in Step 4
Code:
cd /home/USER/Downloads/dumps
- And finally launch rtmpsuck
- 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)
|