PDA

View Full Version : How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx


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)

franck59
09-05-2010, 04:33 AM
Thank you for that excellent tutorial.

However, that is working only to record ONE stream at a time. Rtmpsuck only sees the first stream. How to do it if you want to record 2 or more streams with rtmpsuck at the same time?

Stream Recorder
04-12-2011, 09:23 PM
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:
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:
svn co svn://svn.mplayerhq.hu/rtmpdump rtmpdump

cd rtmpdump
cd trunk

make

And use the following to install:
sudo make install


Create the following folder
/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:
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
Then go to the folder created in Step 4
cd /home/USER/Downloads/dumps
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)

ampakine
05-23-2011, 08:22 AM
I got up to step 5 and heres the error I got:
horse@horse:~/Downloads/rtmpdump-2.3$ make SYS=posixmake[1]: Entering directory `/home/horse/Downloads/rtmpdump-2.3/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
rtmp.c:40: fatal error: openssl/ssl.h: No such file or directory
compilation terminated.
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory `/home/horse/Downloads/rtmpdump-2.3/librtmp'
make: *** [librtmp/librtmp.a] Error 2

I'm not that knowledgeable when it comes to installing programs on linux so I don't really know what the problem is here. I can see there is no openssl folder in the librtmp folder. Any idea what I've done wrong?

Stream Recorder
05-23-2011, 08:30 AM
rtmp.c:40: fatal error: openssl/ssl.h: No such file or directory
http://stream-recorder.com/forum/showpost.php?p=27487&postcount=3

Bman
06-16-2012, 10:02 PM
Any ways to do this with Windows??

oldtimer
10-17-2012, 11:55 AM
This works great, no complaints.
Would you dummy this down
"iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner rtmp -j REDIRECT"