MediaStreamContainer

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.

Example

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.
ICImagingControl1.LiveStart

Information

    Introduced in IC Imaging Control 3.0

Properties

Property Description
CustomCodecSupported

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

ID

Returns a string containing the GUID of this MediaStreamContainer

Name

Returns the name of the MediaStreamContainer.

PreferredFileExtension

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

<< Classes

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, TX Text Control Blog and Forums.