#
LVC video/audio output
The LVCVideoAudioOutput
class is used to add video+audio outputs to the LVC pipeline. You can start and stop the output pipeline independently from the main pipeline.
#
Usage
When creating an LVCVideoAudioOutput
object, you must specify the MediaBlock to be used as the video+audio data output.
#
Sample code
#
Add an MP4 output
var mp4Output = new MP4OutputBlock(new MP4SinkSettings("output.mp4"), new OpenH264EncoderSettings(), new MFAACEncoderSettings());
var output = new LVCVideoAudioOutput(outputFile, _compositor, mp4Output, false);
if (await _compositor.Output_AddAsync(output))
{
// added successfully
}
else
{
output.Dispose();
}
#
Add a WebM output
var webmOutput = new WebMOutputBlock(new WebMSinkSettings("output.webm"), new VP8EncoderSettings(), new VorbisEncoderSettings());
var output = new LVCVideoAudioOutput(outputFile, _compositor, webmOutput, false);
if (await _compositor.Output_AddAsync(output))
{
// added successfully
}
else
{
output.Dispose();
}