PDA

View Full Version : Multiple rtmpsuck instances?


vidyava
03-05-2013, 01:27 AM
Hello all,
I've been using rtmpsuck in linux to very handily capture rtmp streams, but I'm wondering if there's a way to capture multiple simultaneously running streams (each running in different tabs/windows).

As-is, I can capture one, and all of the others fail to load. I've tried crafting some rtmpdump commands, but I'm pretty new to this and apparently the server I'm trying it on is notoriously difficult to work with, so rtmpsuck would be preferable. Any help/guidance is appreciated.

oelk
03-05-2013, 02:17 AM
Hello,

rtmpsuck will handle many connections at once for you. It's maybe a problem with the server. Are you able to play more than one stream in your browser simultaneously?

btw: It would be helpful to know, about which website you're talking about.

vidyava
03-05-2013, 02:45 AM
If I'm not running rtmpsuck (and not using iptables for routing), I can view as many streams as I want. If I am running it, I can run multiple at a time, but it only records the first one it picks up.

The websites I've tried:
http://rt.com/on-air/
http://www.ustream.tv/new
http://www.hulu.com/
http://www.myfreecams.com (which actually will only load one stream at a time, and must be the one rtmpsuck is recording first to even show in the browser)

I'm also using rtmpsuck 2.3 because when I've tried to compile 2.4 from git or svn, I get segfaults from rtmpsuck and rtmpsrv.

Side question: Is there a way to not overwrite files by default in 2.3? I see a patch for it in 2.4, but like I said, segfaults.

oelk
03-05-2013, 03:23 AM
Maybe the problem is the old version.

I got segfaults with rtmpsuck, too. The solution was, that an old shared library was used.
There are two options to overcome this: Use a static build of rtmpdump or install the built librtmp.
I would advice to follow the instructions of KSV from here (http://stream-recorder.com/forum/showpost.php?p=60024&postcount=12).

The last question wouldn't be relevant if this works for you.

vidyava
03-05-2013, 02:04 PM
That solved almost every issue, thanks! Unfortunately it still overwrites files (fix at the end of this post), and in my stress testing of opening and closing 6 different streams at random I managed to crash all of them, but it works far better than it did previously.

For anyone coming across this, on Fedora 17 x64 I had to install from git and patch as the link oelk posted (http://stream-recorder.com/forum/showpost.php?p=60024&postcount=12) says, then download the binary librtmp.so from later in the thread (http://stream-recorder.com/forum/showpost.php?p=60192&postcount=37).
I had two "missing" static libraries, libcrypto and libssl, which were in my folders but with the wrong name, so I did

cd /usr/lib64
sudo ln -s libssl.so.1.0.0j libssl.so.1.0.0
sudo ln -s libcrypto.so.1.0.0j libcrypto.so.1.0.0


I then took this patch (http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20120331/a1058d59/attachment.ksh) and attempted to patch it. When it failed, I had to go in and add the last part (/*check for duplicate...) manually, but now the files aren't automatically overwritten anymore.

Thank you for the help, oelk.