Question
Recording a stream and using it on the fly
Hi,
I'm trying to upload a video stream from a flash client and convert the video stream on the fly (from an external converter like ffmpeg or vlc).
Since I don't manage to send the stream directly to the converter, a solution I have found is to publish the sream as "record", and have a converter read the file to perform the operation.
However, when setting the record method for publishing, the recorded file is not written continuously. Incoming stream is buffered, written, buffered, written and so on. So, the program reading the file stops it reaches the end.
Is there a way in FMS2 to either:
- forward incoming RTMP stream to a stream converter (using an outgoing RTSP stream or something like that) ?
- force FMS2 to dump the stream continuously, as soon as it receives the incoming data ?
Thanks for any help,
Greg
I'm trying to upload a video stream from a flash client and convert the video stream on the fly (from an external converter like ffmpeg or vlc).
Since I don't manage to send the stream directly to the converter, a solution I have found is to publish the sream as "record", and have a converter read the file to perform the operation.
However, when setting the record method for publishing, the recorded file is not written continuously. Incoming stream is buffered, written, buffered, written and so on. So, the program reading the file stops it reaches the end.
Is there a way in FMS2 to either:
- forward incoming RTMP stream to a stream converter (using an outgoing RTSP stream or something like that) ?
- force FMS2 to dump the stream continuously, as soon as it receives the incoming data ?
Thanks for any help,
Greg
