Table of Contents

Class VideoCaptureOutputFormatHelper

Namespace
VisioForge.Core.Types.VideoCapture
Assembly
VisioForge.Core.dll

Provides extension methods for determining the capture mode characteristics of video capture output formats.

public static class VideoCaptureOutputFormatHelper

Inheritance

Inherited Members

Remarks

This helper class contains extension methods that analyze VisioForge.Core.Types.VideoCapture.VideoCaptureOutputFormat values to determine their capture characteristics, such as whether they use direct capture or Media Foundation multiplexing. These methods help in routing video capture streams through the appropriate processing pipelines.

Methods

IsDirectCapture(VideoCaptureOutputFormat)

Determines whether the specified format uses direct capture mode.

public static bool IsDirectCapture(this VideoCaptureOutputFormat format)

Parameters

format VideoCaptureOutputFormat

The video capture output format to evaluate.

Returns

bool

true if the format uses direct capture mode; otherwise, false.

Examples

var format = VideoCaptureOutputFormat.DirectCaptureAVI;
if (format.IsDirectCapture())
{
    Console.WriteLine("Using direct capture mode");
}

Remarks

Direct capture formats bypass intermediate processing and write directly to the output file using the capture device's native format or a hardware-accelerated encoder. This typically results in lower CPU usage and minimal latency.

The following formats are considered direct capture:

  • DirectCaptureDV - Digital Video format
  • DirectCaptureMPEG - MPEG format
  • DirectCaptureAVI - AVI container
  • DirectCaptureMKV - Matroska container
  • DirectCaptureASF - Advanced Systems Format
  • DirectCaptureMP4_GDCL - MP4 using GDCL encoder
  • DirectCaptureMP4_Monogram - MP4 using Monogram encoder
  • DirectCaptureCustom - Custom direct capture implementation

IsMFMux(VideoCaptureOutputFormat)

Determines whether the specified format uses Media Foundation multiplexing.

public static bool IsMFMux(this VideoCaptureOutputFormat format)

Parameters

format VideoCaptureOutputFormat

The video capture output format to evaluate.

Returns

bool

true if the format uses Media Foundation multiplexing; otherwise, false.

Examples

var format = VideoCaptureOutputFormat.MP4_HW;
if (format.IsMFMux())
{
    Console.WriteLine("Using Media Foundation multiplexing");
}

Remarks

Media Foundation (MF) multiplexing formats use Windows Media Foundation technology to combine audio and video streams into a single container file. This provides better compatibility with modern Windows applications and hardware acceleration support.

The following formats use MF multiplexing:

  • MP4_HW - Hardware-accelerated MP4 encoding
  • MPEGTS - MPEG Transport Stream
  • MOV - QuickTime Movie format
  • MKVv2 - Matroska version 2 using MF multiplexer