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

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, LiveDocx, phpLiveDocx and Forums.