Record one stream to two different files

Hi.

I’m writing custom module using ILiveStreamRecordManager.

Function, that starts recording:

public void start(String filepath, String filename, String sourceStreamName, IApplicationInstance appInstance) {
        ILiveStreamRecordManager recordManager = appInstance.getVHost().getLiveStreamRecordManager();
        StreamRecorderParameters recordParams = new StreamRecorderParameters(appInstance);
        recordParams.fileFormat = IStreamRecorderConstants.FORMAT_MP4;
        recordParams.moveFirstVideoFrameToZero = true;
        recordParams.segmentationType = IStreamRecorderConstants.SEGMENT_NONE;
        recordParams.startOnKeyFrame = true;
        recordParams.outputPath = filepath;
        recordParams.outputFile = filename;
        recordParams.versioningOption = IStreamRecorderConstants.APPEND_FILE;
        recordParams.recordData = false;
        recordManager.startRecording(appInstance, sourceStreamName, recordParams);
}

For example, i start recording stream “livestream1” to file “a.mp4” calling function start().

Then i start recording same stream “livestream1” but to another file “b.mp4” - after this recording of “a.mp4” stopping.

Is it possible to record one stream to many files at one time?

Hello.

Here is a very similar question with answer and a work around (cheat)

Hope this helps. Regards,

Salvadore

Hello.

Here is a very similar question with answer and a work around (cheat)

Where?

Sorry, I forgot the link. Here it is

Salvadore