Home    MontiVision DirectShow SDK Documentation Prev Next
MontiVision Development Kit
Product Release Notes
What's new?
Installation
Overview
Components
The MontiVision Workbench
How to use the Workbench
How to insert an Filter
How to make a connction between two filter
How to change filter properties
How to get mediatypes of a pin or connection
How to delete a connection
How to delete a filter
How to find a filter
How to select a filter, pin or connection
How to make a video visible
How to preview a video stream
Workbench Menus and Commands
File menu commands
Edit menu commands
View menu commands
Graph menu commands
Extras menu commands
Help menu commands
Context menu commands
Status Bar
Toolbar
Sorting Filters
MontiVision DirectShow Filter
Common filter functions
MV Absolute Difference
MV Advanced Optical Flow
MV Affine Transformation
MV Alignment
MV Audio Test Source
MV Batch Image File Source
MV Background Subtraction
MV Bayer To Gray
MV Bayer To RGB
MV Bitmap Overlay
MV Blob Counter
MV Blob Finder
MV BlockRecording
MV Buffer Access
MV Camera Calibration
MV Camera Syncronisation
MV Camera Undistortion
MV Color Filter
MV Color Channel Mixer
MV Color Space Converter
MV Color To Gray
MV Color Twist
MV Constant Framerate
MV Convolution
MV Cooccurrence
MV Crop
MV Deinterlace
MV DeInterlace Temporal
MV Delay
MV Demo Source
MV Demultiplexer
MV DPS Renderer
MV DPS Source
MV Dyadic Arithmetic
MV Dyadic Logic
MV Fast Color Filter
MV Frame Access
MV Gauge
MV GDI Overlay
MV Gray To Color
MV Image File Source
MV Image Grabber
MV Image File Renderer
MV Integral
MV Inverse
MV I/O Bool Source
MV I/O Comparator
MV I/O Logic
MV I/O Not
MV I/O Renderer
MV I/O RS232
MV I/O RS232 Trigger Source
MV I/O Switch Source
MV I/O Textfile Renderer
MV I/O Textfile Source
MV I/O To String
MV IP Camera Source
MV Look Up Table
MV Mean
MV Mean Profile
MV Merge Frames
MV Mirror
MV MJPEG Compressor
MV MJPEG Decompressor
MV Mondic Arithmetic
MV Mondic Logic
MV Morphology
MV Motion Detection
MV Motion Direction
MV Multi File Writer
MV Network Renderer
MV Network Source
MV Nonlinear Filter
MV Object Tracker
MV Optical Flow
MV Playlist Source
MV Polar
MV Presence Detection
MV Profile
MV Recording
MV ReInterlace
MV Resize
MV Resized Rotation
MV Rotate90
MV Rotation
MV Segmentation
MV Select Mediatype
MV Separate Fields
MV Smooth Sequence
MV Splitter
MV Text Overlay
MV Ticker Overlay
MV Topography
MV Trigger Source
MV Video File Overlay
MV Video Overlay
MV Video Scaler
MV Watchdog
MV Zoom
Filter Event Mechanism
MontiVision DirectShow Filter SDK
Create a new Filter SDK DLL
Implement your custom Algorithm
Register the Filter SDK DLL
Use the new DirectShow Filter
Debugging a DirectShow Filter
Configure a Filter SDK DirectShow Filter
MontiVision Smart ActiveX Control
MV Smart Control Functions
MV Smart Control Interfaces
IMVSmartControl
IMVSCFilterGraph
IMVSCFilterGraph2
IMVSCVideoWindow
IMVSCVideoWindow2
IMVSCFullScreen
IMVSCSetFile
IMVSCSetSourceFilter
IMVSCSelectInput
IMVSCSetupVideoStream
IMVSCSetupVideoStream2
IMVSCClock
IMVSCFilterProperties
IMVSCLog
IMVSCCameraControl
IMVSCFilterEvents
IMVSCMediaSeeking
IMVSCMediaSeeking2
IMVSCQualityProperties
IMVSCFilterData
IMVSCCommonProperties
IMVSCExtDeviceControl
IMVSCVideoControl
IMVSCAnalogVideoFormat
IMVSCTVTuner
IMVSCTVAudio
Application Development with the MV Smart Control
Visual Basic 6.0
Visual Basic .NET
Visual C++ 6.0
Visual C++ .NET
Borland Delphi
MV Smart Control Samples
AviPlay Sample
CropVideo Sample
DirFinder Sample
FindObject Sample
FullScreen Sample
ImageStream Sample
IP Camera Sample
LiveDraw Sample
LoadFromString Sample
LumeneraCameraProperties Sample
MotionDetection Sample
PutBitmap Sample
SendReceiveRS232 Sample
MV Smart Control How To's
How to handle Input Events (Mouse, Keyboard) of the Video Window
How to Select and Configure a Video Input Device
How to handle Multiple Video Outputs
How to use Fullscreen Functionality
How to access the Results of a MontiVsion DirectShow Filter
MontiVision Utility ActiveX Controls
Video Source Combo Box
Video Format Combo Box
Video Size Combo Box
Input Selection Combo Box
Frame Rate Combo Box
Seeking Slider
Filter Property Page Display
Trigger Button
MontiVision I/O Controls
MVIODisplay
MVIOMonitor
MVIOLed
MVIOOutput
VMR Wrapper ActiveX Control
MV VMR Wrapper Interfaces
IMVVMRWrapper
IMVVMRFilterConfig
IMVVMRMixerControl
IMVVMRMixerBitmap
MV VMR Wrapper Sample Applications
VMR Control Sample
VMR Bitmap Overlay Sample
Extended Video Source ActiveX Control
MV Extended Video Source Control Interfaces
IMVExtendedVideoSource Interface
IMVLumeneraCustomConfig Interface
_IMVExtendedVideoSourceEvents Interface
MontiVision Tools
Getting Started
Create a MontiVision Project
Create a MontiVision Project using the MontiVision Workbench
Create new DirectShow Filters using the MontiVision Filter SDK
Use the new DirectShow Filter in your MontiVision Project
Integrate the MontiVision Project into your Application
Distribute your Application
Distributing your Applications
Application Development Examples
Apply standard Image Processing Operators to a Video Stream
Process a Sequence of Still Images, Do Batch Processing
Make your Existing Algorithms DirectShow compatible
Creating your own Image/Video Processing DirectShow Filters
Access the Image Data of a Video Stream directly from within a Windows Application
Capture Still Images from a running Video Stream
Convert a Video Stream to a Sequence of Still Images or vice versa
Sample Applications using the Smart Control
Camera Calibration
Additional HowTo's
How to Set Up Visual C++ for the MontiVision Development Kit
How to Set Up Borland Delphi for the MontiVision Development Kit
How to Set Up Borland Delphi 2005 for the MontiVision Development Kit
Interface Reference
_IMVFilterPropertyControlEvents
_IMVSeekingSliderEvents
_IMVSmartControlEvents
_ISelectInputComboBoxEvents
_IVideoFormatComboBoxEvents
_IVideoSizeComboBoxEvents
_IVideoSourceComboBoxEvents
IMVAbout
IMVAdvancedOpticalFlow
IMVAdvancedOpticalFlow2
IMVAffineTransformation
IMVAlignment
IMVAudioTestSource
IMVAutoCalcSetup
IMVBackgroundSubtraction
IMVBatchFileSource2
IMVBatchFileSource3
IMVBatchFileSource
IMVBinary
IMVBitmapOverlay
IMVBitmapOverlay2
IMVBlobCounter
IMVBlobCounter2
IMVBlobCounter3
IMVBlobCounter4
IMVBlobFinder
IMVBlobFinder2
IMVBlobFinder3
IMVBlobPostProcessing
IMVBlobPreProcessing
IMVBlockRecording
IMVBufferAccess
IMVBufferAccessCallbackC
IMVBufferAccessCallbackVB
IMVCameraCalibration
IMVCameraSync
IMVCameraUndistortion
IMVColor
IMVColorChannelMixer
IMVColorTwist
IMVConstantFramerate
IMVConvolution
IMVCooccurrence
IMVCrop
IMVCrypt
IMVDeinterlace
IMVDeInterlaceTemporal
IMVDelay
IMVDemoSource
IMVDemoSource2
IMVDPSRenderer
IMVDPSSource
IMVDyArith
IMVDyLogic
IMVEnumAudioEncoder
IMVEnumVideoEncoder
IMVFastColor
IMVFilterData
IMVFilterEvents
IMVFilterInfo
IMVFilterPropertyControl
IMVFilterSDK
IMVFrameAccess
IMVFrameAccessCallbackC
IMVFrameAccessCallbackVB
IMVGauge
IMVGaugeCalculations
IMVGDIOverlay
IMVGray
IMVGrayToColor
IMVGrid
IMVHistogram
IMVHistogram2
IMVHistogram3
IMVImageCapture
IMVImageCapture2
IMVImageCapture3
IMVImageFileSource
IMVImageFileSource2
IMVImageFileSource3
IMVImageInfo
IMVIntegral
IMVIOBoolSource
IMVIOBoolSource2
IMVIOComparator
IMVIOIntRenderer
IMVIOIntSource
IMVIOIntSource2
IMVIOLogic
IMVIONot
IMVIORenderer
IMVIORS232
IMVIORS232DataASCII
IMVIORS232DataHex.htm
IMVIORS232RxTxConnection
IMVIORS232TriggerSource
IMVIOSwitchSource
IMVIOTextfileRenderer
IMVIOTextfileSource
IMVIOToString
IMVIPCameraSource
IMVIPCameraSource2
IMVLinFilter
IMVLookUpTable
IMVMask
IMVMean
IMVMeanProfile
IMVMerger
IMVMirror
IMVMonArith
IMVMonLogic
IMVMorphology
IMVMotionDetection
IMVMotionDetection2
IMVMotionDirection
IMVMultiFileWriter
IMVNetworkReceiveInfo
IMVNetworkRenderer
IMVNetworkRenderer2
IMVNetworkRenderer3
IMVNetworkSendInfo
IMVNetworkSource
IMVNetworkSource2
IMVNonLinFilter
IMVObjectTracker
IMVOpticalFlow
IMVOpticalFlow2
IMVPlaylist
IMVPlaylistSource
IMVPolar
IMVPresenceDetection
IMVProfile
IMVRecording
IMVRegionOfInterest
IMVReinterlace
IMVResize
IMVResizedRotation
IMVRotate90
IMVRotation
IMVSCAnalogVideoFormat
IMVSCCameraControl
IMVSCCommonProperties
IMVSCClock
IMVSCExtDeviceControl
IMVSCFilterData
IMVSCFilterEvents
IMVSCFilterGraph
IMVSCFilterGraph2
IMVSCFilterProperties
IMVSCFullScreen
IMVSCLog
IMVSCMediaSeeking
IMVSCMediaSeeking2
IMVSCQualityProperties
IMVSCSelectInput
IMVSCSetFile
IMVSCSetSourceFilter
IMVSCTVTuner
IMVSCTVAudio
IMVSCVideoControl
IMVSCSetupVideoStream
IMVSCSetupVideoStream2
IMVSCVideoWindow
IMVSCVideoWindow2
IMVSeekingSlider
IMVSetImageFormat
IMVSmartControl
IMVSeparateFields
IMVSmoothSequence
IMVTextOverlay
IMVTextOverlay2
IMVTextOverlay3
IMVTickerOverlay
IMVTickerOverlay2
IMVTopography
IMVTrigger
IMVTriggerFilter
IMVVideoFileOverlay
IMVVideoScaler
IMVVMRFilterConfig
IMVVMRMixerBitmap
IMVVMRMixerControl
IMVVMRWrapper
IMVWatchdog
IMVZoom
IMVZoomConfig
ISelectInputComboBox
IVideoFormatComboBox
IVideoSizeComboBox
IVideoSourceComboBox

IMVMultiFileWriter

The IMVMultiFileWriter Interface contains methods an properties to control the MV Multi File Writer filter.

Methods:

AudioEncoderDisplayName Displayname from the audio encoder.
CurrentFileDuration Duration since the filter records into the current output file.
CurrentFileSize Size of the current output file in bytes.
CurrentOutputFile Path of the curent output file.
CurrentVideoFrameCount Count of recorded video frames from the current files.
FileNameOption How to create the output file name.
FilePrefix The prefix for the output files.
GetAudioEncoderInterfaces Get the IUnknown interface from the two audio encoders.
GetAVIMultiplexerInterfaces Get the IUnknown interface from the two avi multiplexer.
GetFreeDiskSpace Get the total and available disk space in MB.
GetVideoEncoderInterfaces Get the IUnknown interface from the two video encoders.
NewFileOnStop New file on stop signal.
NextFileOption Create a new output file options.
NextFilePeriod The time period of an output file.
NextFileSize The maximum size of an output file.
NextFileTimeOption Create a new output file on time option.
NextOutputFile Switch to the next output file.
OutputFolder The folder for the output video files.
Recording Recording status from the filter.
RenderCaptureGraphs Render the hidden recording filter graphs.
StartRecording Start recording into AVI files.
StopRecording Stop Recording.
VideoEncoderDisplayName Displayname from the video encoder.

Header file: IMVMultiFileWriter.h
Interface definition language file: IMVMultiFileWriter.idl
Typelib: MVMultiFileWriter
Interface ID: IID_IMVMultiFileWriter


Property IMVMultiFileWriter::AudioEncoderDisplayName

Declaration: Property Get/Put AudioEncoderDisplayName As String

Displayname from the audio encoder.

C Prototype:

HRESULT put_AudioEncoderDisplayName(BSTR newVal);
HRESULT get_AudioEncoderDisplayName(BSTR *pVal);


Property IMVMultiFileWriter::CurrentFileDuration

Declaration: Property Get CurrentFileDuration As Double

Duration since the filter records into the current output file.

C Prototype:

HRESULT get_CurrentFileDuration(DOUBLE *pVal);


Property IMVMultiFileWriter::CurrentFileSize

Declaration: Property Get CurrentFileSize As Double

Size of the current output file in bytes.

C Prototype:

HRESULT get_CurrentFileSize(DOUBLE *pVal);


Property IMVMultiFileWriter::CurrentOutputFile

Declaration: Property Get CurrentOutputFile As String

Path of the curent output file.

C Prototype:

HRESULT get_CurrentOutputFile(BSTR *pVal);


Property IMVMultiFileWriter::CurrentVideoFrameCount

Declaration: Property Get CurrentVideoFrameCount As Long

Count of recorded video frames from the current files.

C Prototype:

HRESULT get_CurrentVideoFrameCount(LONG *pVal);


Property IMVMultiFileWriter::FileNameOption

Declaration: Property Get/Put FileNameOption As Long

Output file name option.

Option Value Description
MV_OUTPUT_FILENAME_PREFIX_INDEX

0

Create the output file name with the FilePrefix and an index
MV_OUTPUT_FILENAME_DATE_INDEX

1

Create the output file name with the current date and an index.
MV_OUTPUT_FILENAME_DATE_TIME

2

Create the output file name with the current date, time and an index.
C Prototype:

HRESULT put_FileNameOption(LONG newVal);
HRESULT get_FileNameOption(LONG *pVal);


Property IMVMultiFileWriter::FilePrefix

Declaration: Property Get/Put FilePrefix As String

The prefix for the output files.

C Prototype:

HRESULT put_FilePrefix(BSTR newVal);
HRESULT get_FilePrefix(BSTR *pVal);


Method IMVMultiFileWriter::GetAudioEncoderInterfaces

Declaration: Sub GetAudioEncoderInterfaces(UnkFirst As Unknown, UnkSecond As Unknown)

Get the IUnknown interface from the two audio encoders. The filter uses two equal hidden filter graphs to write the media streams. Setup both encoder whith the same parameters to get consistently output files.

Parameter:

UnkFirst Interface from the first audio encoder filter.
UnkSecond Interface from the second audio encoder.
C Prototype:

HRESULT GetAudioEncoderInterfaces(IUnknown* UnkFirst, IUnknown* UnkSecond);


Method IMVMultiFileWriter::GetAVIMultiplexerInterfaces

Declaration: Sub GetAVIMultiplexerInterfaces(UnkFirst As Unknown, UnkSecond As Unknown)

Get the IUnknown interface from the two avi multiplexer. The filter uses two equal hidden filter graphs to write the media streams. Setup both multiplexer whith the same parameters to get consistently output files.

Parameter:

UnkFirst Interface from the first AVI multiplexer filter.
UnkSecond Interface from the second AVI multiplexer filter.
C Prototype:

HRESULT GetAVIMultiplexerInterfaces(IUnknown* UnkFirst, IUnknown* UnkSecond);


Method IMVMultiFileWriter::GetFreeDiskSpace

Declaration: Sub GetFreeDiskSpace(FreeSpace As Double, DiskSize As Double)

Get the total and available disk space in MB.

Parameter:

FreeSpace Free available disk space.
DiskSize Total available disk space.
C Prototype:

HRESULT GetFreeDiskSpace(DOUBLE* FreeSpace, DOUBLE* DiskSize);


Method IMVMultiFileWriter::GetVideoEncoderInterfaces

Declaration: Sub GetVideoEncoderInterfaces(UnkFirst As Unknown, UnkSecond As Unknown)

Get the IUnknown interface from the two video encoders. The filter uses two equal hidden filter graphs to write the media streams. Setup both encoder whith the same parameters to get consistently output files

Parameter:

UnkFirst Interface from the first video encoder filter.
UnkSecond Interface from the second video encoder filter.
C Prototype:

HRESULT GetVideoEncoderInterfaces(IUnknown* UnkFirst, IUnknown* UnkSecond);


Property IMVMultiFileWriter::NewFileOnStop

Declaration: Property Get/Put NewFileOnStop As Boolean

New file on stop signal.

Parameter:

- -
C Prototype:

HRESULT put_NewFileOnStop(VARIANT_BOOL newVal);
HRESULT get_NewFileOnStop(VARIANT_BOOL *pVal);


Property IMVMultiFileWriter::NextFileOption

Declaration: Property Get/Put NextFileOption As Long

The new output file option property could be one or more of the following values.

Option Value Description
MV_NEXT_FILE_MANUAL

1

Next output file on calling the NextOutputFile method
MV_NEXT_FILE_SIZE

2

Next output file if the current file size is greater than the NextFileSize property.
MV_NEXT_FILE_TIME

4

Next output on the time option from the NextFileTimeOption property.
C Prototype:

HRESULT put_NextFileOption(LONG newVal);
HRESULT get_NextFileOption(LONG *pVal);


Property IMVMultiFileWriter::NextFilePeriod

Declaration: Property Get/Put NextFilePeriod As Long

The time period of an output file.

C Prototype:

HRESULT put_NextFilePeriod(LONG newVal);
HRESULT get_NextFilePeriod(LONG *pVal);


Property IMVMultiFileWriter::NextFileSize

Declaration: Property Get/Put NextFileSize As Long

The maximum size of an output file in MByte. Minimum value is 1 MByte.

C Prototype:

HRESULT put_NextFileSize(LONG newVal);
HRESULT get_NextFileSize(LONG *pVal);


Property IMVMultiFileWriter::NextFileTimeOption

Declaration: Property Get/Put NextFileTimeOption As Long

Create a new output file on time option.

Option Value Description
MV_NEXT_FILE_TIME_PERIOD

0

Next output file if the current file recording time is greater than the NextFilePeriod property.
MV_NEXT_FILE_TIME_NEW_HOUR

1

Next output file on every new hour.
MV_NEXT_FILE_TIME_NEW_DAY

2

Next output file on every new day.
C Prototype:

HRESULT put_NextFileTimeOption(LONG newVal);
HRESULT get_NextFileTimeOption(LONG *pVal);


Method IMVMultiFileWriter::NextOutputFile

Declaration: Sub NextOutputFile

Switch to the next output file.

C Prototype:

HRESULT NextOutputFile();


Property IMVMultiFileWriter::OutputFolder

Declaration: Property Get/Put OutputFolder As String

The folder for the output video files.

C Prototype:

HRESULT put_OutputFolder(BSTR newVal);
HRESULT get_OutputFolder(BSTR *pVal);


Property IMVMultiFileWriter::Recording

Declaration: Property Get Recording As Boolean

Recording status from the filter.

C Prototype:

HRESULT get_Recording(VARIANT_BOOL *pVal);


Method IMVMultiFileWriter::RenderCaptureGraphs

Declaration: Sub RenderCaptureGraphs

Render the hidden recording filter graphs.

C Prototype:

HRESULT RenderCaptureGraphs();


Method IMVMultiFileWriter::StartRecording

Declaration: Sub StartRecording

Start recording into AVI files.

C Prototype:

HRESULT StartRecording();


Method IMVMultiFileWriter::StopRecording

Declaration: Sub StopRecording

Stop recording.

C Prototype:

HRESULT StopRecording();


Property IMVMultiFileWriter::VideoEncoderDisplayName

Declaration: Property Get/Put VideoEncoderDisplayName As String

Displayname from the video encoder.

C Prototype:

HRESULT put_VideoEncoderDisplayName(BSTR newVal);
HRESULT get_VideoEncoderDisplayName(BSTR *pVal);