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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-23-2012, 06:59 AM
harmoniser harmoniser is offline
Junior Member
 
Join Date: Oct 2012
Posts: 1
harmoniser is on a distinguished road
Default

Making rtmpdump go on even if stream resets


Hi,

We have developed a solution for feeding several streaming sources into a FMS server and then with a web interface switch between them, producing a single output to the client (viewers) -- thus achieving a simple "video mixer" or patch panel.

I now want to use rtmpdump to recieve that output stream from FMS and pipe it further to ffmpeg for re-encoding. But since the stream actually consists of several consecutive streams, there will be a Play.Complete or Play.Stop event each time we switch source. And then rtmpdump simply exits.

I could not find any settings to make rtmpdump continue even when the input stream restarts. I tried to simply comment out a couple of lines like this in rtmp.c (librtmp):

else if (AVMATCH(&method, &av_onFCUnsubscribe))
{
/*
RTMP_Close(r);
ret = 1;
*/

Then rtmpdump continued receiving the incoming stream even when it switched, ignoring Play.Complete and Play.Stop. However, it will close the outfile and not attempt to open it again. So all that is being saved to file is the first part, before any switch happened.

And that is about the limit of my C skills.

Does anyone know how to solve this?
Reply With Quote
 
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 12:03 AM.


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