Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 07-21-2010, 03:46 AM
Stream Recorder
 
Posts: n/a
Default

How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx


  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 the latest version of rtmpdump.
  3. Extract its content.
    I will use the following folder
    Code:
    /home/USER/Downloads/rtmpdump-2.3
  4. 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.
  5. Compile rtmpdump, rtmpsuck, rtmpsrv:
    In the Terminal
    Code:
    cd /home/USER/Downloads/rtmpdump-2.3
    make SYS=posix
  6. 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.
  7. Then the account created in Step 1 within the terminal
    Code:
    sudo su rtmp
  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
  #2  
Old 09-05-2010, 05:33 AM
franck59 franck59 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 3
franck59 is on a distinguished road
Default

Re: How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx


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?
Reply With Quote
  #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
  #4  
Old 05-23-2011, 09:22 AM
ampakine ampakine is offline
Junior Member
 
Join Date: May 2011
Posts: 1
ampakine is on a distinguished road
Default

Re: How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx


I got up to step 5 and heres the error I got:
Code:
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?
Reply With Quote
  #5  
Old 05-23-2011, 09:30 AM
Stream Recorder
 
Posts: n/a
Default

Re: How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx


Quote:
Originally Posted by ampakine View Post
rtmp.c:40: fatal error: openssl/ssl.h: No such file or directory
http://stream-recorder.com/forum/sho...87&postcount=3
Reply With Quote
  #6  
Old 06-16-2012, 11:02 PM
Bman Bman is offline
Junior Member
 
Join Date: Jun 2012
Posts: 3
Bman is on a distinguished road
Default

Re: How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx


Any ways to do this with Windows??
Reply With Quote
  #7  
Old 10-17-2012, 12:55 PM
oldtimer oldtimer is offline
Junior Member
 
Join Date: Oct 2012
Posts: 2
oldtimer is on a distinguished road
Default

Re: How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx


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"
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:31 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons