A VideoCompressors object contains a collection of registered video compressors.
public class VideoCompressors : Compressors
public ref class VideoCompressors : public Compressors, System.Collections.Generic.IEnumerable<Compressor>, System.Collections.IEnumerable, System.IDisposable
The CaptureCtrl and ConvertCtrl objects use this collection to enumerate and select video compressors. A VideoCompressors object is not externally creatable and is only obtained through the parent object's CaptureCtrl.VideoCompressors and ConvertCtrl.VideoCompressors properties. This collection object is derived from the general Compressors object collection base class. The VideoCompressors collection object also provides helper properties which can be used to access a particular video compressor for selection and use. For example, you can access and/or select the H264 video compressor by doing the following:
Compressor myComp = captureCtrl.VideoCompressors.H264;
myComp.Selected = true;
OR obtain access directly from the control like this:
captureCtrl.VideoCompressors.H264.Selected = true;
Note: You can also access other registered compressors that do not have helper property accessors by simply using the string indexer like:
captureCtrl.VideoCompressors["@device:sw:{33D9A760-90C8-11D0-BD43-00A0C911CE86}\\Some Other Video Encoder"].Selected = true;
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document