The MediaStreamSink replaces the deprecated AVISink. A MediaStreamSink can save image data in video files and optionally allows you to specify one or more IFrameFilters that can analyze and/or transform the image data before it is written to the video file.
The IFrameFilter implementation can also drop certain frames in order to implement time lapse recording. The video file format is specified by a MediaStreamContainer, while the format of the image data in the file is determined either by a GUID (uncompressed format) or a codec (compressed format). The MediaStreamContainer determines the video file format; the most common MediaStreamContainer is AVI. Many media stream containers allow the specification of a Codec to compress the image data before writing it to the file.
Header File: tisudshl.h
Introduced in version 3.0
Creates a new MediaStreamSink.
Returns the Codec that was set when creating this sink.
Returns the MediaStreamContainer that was set when this sink was created.
Returns a tCreateData structure, containing the information that was used to create this instance.
Returns the currently set target filename.
Returns a tFrameFilterList, containing the frame filters that are currently used to analyze or transform the image data before it is written to the video file.
This implementation of GrabberSinkType::getSinkType returns eMEDIASTREAM_SINK.
Returns the subtype of the selected uncompressed format.
Sets the target video filename.
Sets a frame filter or a tFrameFilterList or frame filters. The filters are used to transform the image data before it is written to the video file.
This structure describes the parameters, which were used to create a MediaStreamSink. You can access the tCreateData of a MediaStreamSink by calling MediaStreamSink::getCreateData, and passing it to MediaStreamSink::create to create a similar MediaStreamSink.
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.