Stream Recorder
07-21-2010, 02:46 AM
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 the latest version of rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm).
Extract its content.
I will use the following folder
/home/USER/Downloads/rtmpdump-2.3
Open "/home/USER/Downloads/" with Nautilus. And right-click on the "rtmpdump-2.3" 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.
Compile rtmpdump, rtmpsuck, rtmpsrv:
In the Terminal
cd /home/USER/Downloads/rtmpdump-2.3
make SYS=posix
Redirect traffic from TCP port 1935 to the user created in Step 1. In the terminal:
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
sudo su rtmp
And finally launch rtmpsuck
./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)
Download the latest version of rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm).
Extract its content.
I will use the following folder
/home/USER/Downloads/rtmpdump-2.3
Open "/home/USER/Downloads/" with Nautilus. And right-click on the "rtmpdump-2.3" 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.
Compile rtmpdump, rtmpsuck, rtmpsrv:
In the Terminal
cd /home/USER/Downloads/rtmpdump-2.3
make SYS=posix
Redirect traffic from TCP port 1935 to the user created in Step 1. In the terminal:
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
sudo su rtmp
And finally launch rtmpsuck
./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)