Table of Contents

Class AVISettingsDialog

Namespace
VisioForge.Core.UI.WinForms.Dialogs.OutputFormats
Assembly
VisioForge.Core.dll

Windows Forms dialog for configuring AVI and MKV output format settings. Provides a user interface for selecting video and audio codecs, configuring audio parameters, and setting compression options for AVI and MKV file formats.

public class AVISettingsDialog : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

Inheritance

Implements

Inherited Members

Extension Methods

Remarks

This dialog supports configuration of:

  • Video codec selection and settings access
  • Audio codec selection and settings access
  • Audio format parameters (sample rate, channels, bit depth)
  • Compression options (uncompressed video/audio)
  • Special encoding features (LAME MP3 encoding) The dialog can be initialized with codec lists from VideoCaptureCore or VideoEditCore.

Constructors

AVISettingsDialog(string[], string[])

Initializes a new instance of the VisioForge.Core.UI.WinForms.Dialogs.OutputFormats.AVISettingsDialog class with specified codec arrays. Creates the dialog with pre-defined lists of available video and audio codecs.

public AVISettingsDialog(string[] videoCodecs, string[] audioCodecs)

Parameters

videoCodecs string[]

Array of available video codec names to populate the video codec dropdown.

audioCodecs string[]

Array of available audio codec names to populate the audio codec dropdown.

Remarks

This constructor is useful when you have pre-obtained codec lists and want to avoid querying the system for available codecs. The dialog will be populated with these codec options and default settings will be applied.

AVISettingsDialog(VideoCaptureCore)

Initializes a new instance of the VisioForge.Core.UI.WinForms.Dialogs.OutputFormats.AVISettingsDialog class using a VideoCaptureCore instance. Automatically retrieves available video and audio codecs from the capture core.

public AVISettingsDialog(VideoCaptureCore core)

Parameters

core VideoCaptureCore

The video capture core instance to query for available codecs.

Remarks

This constructor queries the VideoCaptureCore for available codecs and populates the dialog with these options. This ensures the dialog shows only codecs that are actually available on the current system for video capture operations.

AVISettingsDialog(VideoEditCore)

Initializes a new instance of the VisioForge.Core.UI.WinForms.Dialogs.OutputFormats.AVISettingsDialog class using a VideoEditCore instance. Automatically retrieves available video and audio codecs from the edit core.

public AVISettingsDialog(VideoEditCore core)

Parameters

core VideoEditCore

The video edit core instance to query for available codecs.

Remarks

This constructor queries the VideoEditCore for available codecs and populates the dialog with these options. This ensures the dialog shows only codecs that are actually available on the current system for video editing operations.

Methods

Dispose(bool)

Clean up any resources being used by the AVI settings dialog. Disposes of managed resources including UI components when disposing is true.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed; otherwise, false.

Remarks

This method is called by the Dispose() method and the finalizer. When disposing is true, it's safe to dispose of managed resources.

LoadSettings(AVIOutput)

Loads settings from an AVIOutput configuration object into the dialog controls. Populates all dialog controls with values from the specified AVI output configuration.

public void LoadSettings(AVIOutput aviOutput)

Parameters

aviOutput AVIOutput

The AVI output configuration object containing settings to load.

Remarks

This method transfers all relevant settings from the AVIOutput object to the dialog controls, including codec selection, audio parameters, compression settings, and special encoding options.

LoadSettings(MKVv1Output)

Loads settings from an MKVv1Output configuration object into the dialog controls. Populates all dialog controls with values from the specified MKV output configuration.

public void LoadSettings(MKVv1Output mkvOutput)

Parameters

mkvOutput MKVv1Output

The MKV output configuration object containing settings to load.

Remarks

This method transfers all relevant settings from the MKVv1Output object to the dialog controls, including codec selection, audio parameters, compression settings, and special encoding options.

SaveSettings(ref AVIOutput)

Saves settings from the dialog controls into an AVIOutput configuration object. Transfers all current dialog settings to the specified AVI output configuration.

public void SaveSettings(ref AVIOutput aviOutput)

Parameters

aviOutput AVIOutput

The AVI output configuration object to update with current dialog settings.

Remarks

This method transfers all current dialog settings to the AVIOutput object, including codec selection, audio parameters, compression settings, and special encoding options. The aviOutput parameter is passed by reference to allow modification.

SaveSettings(ref MKVv1Output)

Saves settings from the dialog controls into an MKVv1Output configuration object. Transfers all current dialog settings to the specified MKV output configuration.

public void SaveSettings(ref MKVv1Output mkvOutput)

Parameters

mkvOutput MKVv1Output

The MKV output configuration object to update with current dialog settings.

Remarks

This method transfers all current dialog settings to the MKVv1Output object, including codec selection, audio parameters, compression settings, and special encoding options. The mkvOutput parameter is passed by reference to allow modification.