Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

How to install rtmpsuck on Linux

(http://stream-recorder.com/forum/showthread.php?t=6134)

macey 02-13-2010 07:15 AM

How to install rtmpsuck on Linux


 
Quote:

Originally Posted by hyc (Post 15613)
Use an OS that doesn't suck.

I use Ubuntu Linux.

Can you post a guide to using rtmpsuck/rtmpsrv please?
I want to stream this site:-

Code:

http://atdhe.net/watch-bbc-news.php
Am having difficulty extracting the rtmpdump parameters.
Help would be appreciated.

hyc 03-22-2010 01:49 AM

Re: How to install rtmpsuck on Linux


 
Quote:

Originally Posted by macey (Post 16595)
I use Ubuntu Linux.

Can you post a guide to using rtmpsuck/rtmpsrv please?

The basic steps, in plain English:
  1. Create a special user account that will be used solely for running rtmpsrv/rtmpsuck
  2. Set an iptables rule that redirects all outbound RTMP connections for every user except the special user
  3. Run rtmpsrv/rtmpsuck using the special user account
  4. Browse to the web page with the media you want to download, using your regular user account

If you don't know how to create user accounts, go read your system docs.

If you haven't read the README file yet, do that.

On BSD/MacOSX, you use ipfw instead of iptables. Examples for both are already in the README file.

Note - do not use an account with special system privileges to run any of this stuff. This code has been pretty carefully checked for security and correctness, but even so, it would be foolish to take unnecessary risks. And since Adobe Flash is full of so many already-known vulnerabilities, it's equally likely that some sites you try to connect to may be serving malicious data. The rtmp account should have a home directory that it can write to, access to the RTMP ports, and not much else.

alex_stv 03-24-2010 04:43 AM

Re: How to install rtmpsuck on Linux


 
I have create a special user account names
rtmp
and run the following
iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner rtmp -j REDIRECT
But rtmpsuck didn't work for me. It says that i can't redirect.
can anybody please tell me what is wrong.
Btw. I'm using Ubuntu 9

Thanks for your help

croques 04-06-2010 06:46 AM

Re: How to install rtmpsuck on Linux


 
If you are using Ubuntu part of the problem for me was that Ubuntu does not have a super user account that we can normally access all we can do is 'sudo'.

To overcome this become super user and then change the su password with the following

Code:

sudo su     
passwd

then this line works on Ubuntu Karmic
Code:

sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner rtmp -j REDIRECT; su -c "/usr/bin/rtmpsuck -z "  rtmp
You can leave out the -z if you do not want debug output.


All times are GMT -6. The time now is 12:59 PM.