IC Imaging Control ActiveX



A MediaStreamContainer describes a video file format. The most common video file format is AVI.

A list of valid MediaStreamContainer objects can be obtained from ICImagingControl.MediaStreamContainers.


The following code fragment shows how to create a MediaStreamSink to record an AVI file:

' Create the MediaStreamSink.
Dim aviSink As New MediaStreamSink

' Set AVI as the video file format
Dim n As Integer
n = ICImagingControl1.MediaStre.mContainers.FindIndex("AVI")
aviSink.StreamContainer = ICImagingControl1.MediaStreamContainers(n)

' Set DV Video Encoder as the Codec
n = ICImagingControl1.AviCompressors.FindIndex("DV Video Encoder")
aviSink.Codec = ICImagingControl1.AviCompressors(n)

' Set a target file name.
aviSink.FileName = "video.avi"

' Set the sink.
ICImagingControl1.Sink = aviSink

' Start recording.


Introduced in IC Imaging Control 3.0


Property Description

Returns whether this MediaStreamContainer allows an AviCompressor to be used to compress the recorded video.


Returns a string containing the GUID of this MediaStreamContainer


Returns the name of the MediaStreamContainer.


Returns the default file extension for video files that have been saved using this MediaStreamContainer.

<< Classes

Get in touch with us

About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, video converters and embedded vision components for factory automation, quality assurance, medicine, science, security and a variety of other markets.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE, MIPI interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

ISO 9001:2015 certified MVTEC | Edge AI + Vision Alliance | EMVA

Contact us