Class DirectCaptureMKVOutput
- Namespace
- VisioForge.Core.Types.Output
- Assembly
- VisioForge.Core.dll
DirectCapture output configuration for Matroska (MKV) container format without re-encoding.
public sealed class DirectCaptureMKVOutput : IVideoCaptureBaseOutputInheritance
Implements
Inherited Members
Examples
// Example: Configure MKV output for H.264 IP camera capture
var mkvOutput = new DirectCaptureMKVOutput();
// Set as output format
videoCapture.Output_Format = mkvOutput;
videoCapture.Output_Filename = "security_footage.mkv";
// The MKV file will contain the original H.264 video and audio
// streams without any re-encoding, preserving quality and reducing CPU usage
Remarks
This output format enables direct capture to MKV container while preserving the original compressed video and audio streams from the source. MKV is an open-source, flexible container format that supports virtually any codec combination, making it ideal for archival and professional applications.
Key features of MKV DirectCapture: - Supports multiple video/audio/subtitle tracks - No file size limitations (can exceed 4GB) - Preserves original codec quality (no re-encoding) - Compatible with H.264, H.265, VP8, VP9, and many other codecs - Supports high-resolution formats including 4K and beyond - Chapter markers and metadata support
Common use cases: - Capturing from IP cameras (H.264/H.265 streams) - Recording from HDMI capture devices - Archiving broadcast streams - Multi-track recording scenarios
Note: Requires Haali Media Splitter or compatible MKV muxer to be installed on the system.
Methods
GetInternalTypeVC()
Gets the internal output format identifier for video capture operations.
public VideoCaptureOutputFormat GetInternalTypeVC()Returns
- VideoCaptureOutputFormat
-
Returns VisioForge.Core.Types.VideoCapture.VideoCaptureOutputFormat.DirectCaptureMKV to indicate this is a DirectCapture MKV output format.
Remarks
This method is used internally by the video capture system to identify the output format type.
Load(string)
Deserializes DirectCapture MKV output settings from a JSON string.
public static DirectCaptureMKVOutput Load(string json)Parameters
jsonstring-
The JSON string containing the serialized settings.
Returns
- DirectCaptureMKVOutput
-
A new VisioForge.Core.Types.Output.DirectCaptureMKVOutput instance with settings restored from JSON.
Exceptions
- JsonException
-
Thrown when the JSON string is invalid or cannot be deserialized.
Save()
Serializes the current DirectCapture MKV output settings to a JSON string.
public string Save()Returns
- string
-
A JSON string representation of the current settings.
Remarks
The serialized settings can be restored later using the VisioForge.Core.Types.Output.DirectCaptureMKVOutput.Load(System.String) method.