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.
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 );
Header File: tisudshl.h
This class is deprecated since version 3.0.
To record any kind of video file, use MediaStreamSink.
Constructs a AviSink object.
Returns the GUID of the codec associated with this AviSink.
Returns the name of the avi file to which the video stream will be written.
Retrieves the associated FilterInfoObject representing the AVI Codec.
This method returns the type of this sink: eAviSink.
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.