IC Imaging Control C++

AviSink [Deprecated]

AviSink [Deprecated]

The AviSink writes the image stream that comes from the currently active video capture device, to an avi file. If a codec is specified in the constructor AviSink::AviSink, the image stream is compressed using this codec.

Remarks

Since this class will not be available in future versions of IC Imaging Control, the class MediaStreamSink should be used instead. The following code fragment shows you how to setup a MediaStreamSink to record AVI files:

// Select the first available codec.
tCodecPtr pCodec = Codec::getAvailableCodecs()->at( 0 );
 
// Create a media stream sink to record AVI files, using this codec.
tMediaStreamSinkPtr pSink = MediaStreamSink::create( MSC_AviContainer, pCodec );
 
// Set a video file name.
pSink->setFilename( "test.avi" );
 
// Set the sink.
m_Grabber.setSinkType( pSink );

Information

Header File: tisudshl.h
Namespace: DShowLib
This class is deprecated since version 3.0.
To record any kind of video file, use MediaStreamSink.

Inheritance

GrabberSinkType
MediaStreamSink
AviSink

Methods

Method Description
AviSink

Constructs a AviSink object.

getCodecType

Returns the GUID of the codec associated with this AviSink.

getFileName

Returns the name of the avi file to which the video stream will be written.

getFilterInfo

Retrieves the associated FilterInfoObject representing the AVI Codec.

getSinkType

This method returns the type of this sink: eAviSink.

<< 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, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

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

Automated Imaging Association ISO 9001:2015 certified

Contact us