Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Making rtmpdump go on even if stream resetsHi,
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? |
#2
|
|||
|
|||
Re: Making rtmpdump go on even if stream resetsShould post to mailing list
|
Tags: flash media server, fms, rtmpdump |
Thread Tools | |
Display Modes | |
|
|