I see. Thanks Carl; I will report back here to let everyone know how it worked out. In particular, I will try to work out if the server overhead of opening 2 streams cancels out the saving of recording only 20 seconds of video.
If anyone else has experimented with this, please let us know how it worked out. Donnacha On 9/8/07, Carl Sziebert <[EMAIL PROTECTED]> wrote: > Donnacha: > > What you are suggesting is possible, sort of. It cannot be done using > just 1 stream, though. (AFAIK. Someone please correct me if I am > wrong.) You'll need to open 2 streams, 1 for video and 1 for audio. > After your 20 second delay has occurred, then you can stop recording > the video stream. If you are clever with your naming strategy, then > identifying the streams as being related should be a snap. > > HTH. > Carl > > On 9/7/07, Donnacha <[EMAIL PROTECTED]> wrote: > > Carl, thanks for writing a tutorial on precisely the subject I'm interested > > in. > > > > You explain that it is possible to precisely control when and how much > > of the video is recorded. I would like to know if the following level > > of control might be possible: > > > > A visitor to my website gives permission for Flash to stream video > > from their webcam to my Red5 server. My server records 20 seconds of > > video and then switches to recording audio only. > > > > My aim is reduce the strain on my server. I need only a few seconds > > of video to identify the user but, after that, only audio is > > necessary. > > > > Thanks again for your excellent tutorial, > > > > Donnacha > > > > On 9/6/07, Carl Sziebert <[EMAIL PROTECTED]> wrote: > > > Hi Vicnov: > > > > > > There is not currently a means to control the FLV frame by frame. > > > This would be difficult to do as well because of the way flash video > > > is sent to and from the server. Flash uses keyframes which are > > > essentially whole JPEG images on a user specified interval. (See the > > > FMS documentation for Camera.setKeyFrameInterval [1]) The data sent > > > between keyframes is basically the delta from the last keyframe and is > > > referred to as interpolated frames. If you are interested in > > > capturing a specific keyframe out of the FLV, I'd suggest you check > > > out FFMPEG. > > > > > > 1. http://livedocs.adobe.com/fms/2/docs/00000544.html#366309 > > > > > > Carl > > > > > > On 9/6/07, vicnov <[EMAIL PROTECTED]> wrote: > > > > > > > > Thanks, good example! > > > > > > > > One question: can I control the FLV saving on frame-by-frame basis or I > > > > just > > > > get the whole saved FLV file? > > > > Is there an option to store FLV frames in memory instead of file? > > > > > > > > Thanks. > > > > -- > > > > View this message in context: > > > > http://www.nabble.com/Server-side-stream-recording-with-Red5-tf4386717.html#a12520553 > > > > Sent from the Red5 - English mailing list archive at Nabble.com. > > > > > > > > > > > > _______________________________________________ > > > > Red5 mailing list > > > > [email protected] > > > > http://osflash.org/mailman/listinfo/red5_osflash.org > > > > > > > > > > > > > -- > > > Be who you are and say what you feel, because those who mind don't > > > matter and those who matter don't mind. > > > - Dr. Seuss > > > > > > _______________________________________________ > > > Red5 mailing list > > > [email protected] > > > http://osflash.org/mailman/listinfo/red5_osflash.org > > > > > > > _______________________________________________ > > Red5 mailing list > > [email protected] > > http://osflash.org/mailman/listinfo/red5_osflash.org > > > > > -- > Be who you are and say what you feel, because those who mind don't > matter and those who matter don't mind. > - Dr. Seuss > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org > _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
