The IEDirectShow type exposes the following properties.

Properties

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
ClockErrorTolerance
Sets the maximum tolerance, in milliseconds, of the audio renderer. The value must be from 1 to 1000, inclusive.
Connected
Returns true when connected to the video input or multimedia file.
Duration
Returns the duration of the stream (multimedia file) in a format specified by TimeFormat property.
DVDInputPath
Specifies the driver letter of DVD reader. You can set 'Default' to select default DVD reader.
EnableSampleGrabber

If EnableSampleGrabber is True, then an event occurs whenever a new frame is available.

The event is IEViewer.DShowNewFrame.

EndOfStream
EndOfStream tests whether the file position is at the end of a file.
FileInput
If you don't want get video from a capture card, but just from a file, you have to set FileInput property with a full path name and a multimedia file.
FileOutput
Specifies the full path of the output multimedia file.
GetAudioCodecsCount
Returns number of audio codecs available.
GetAudioInputsCount
Returns number of audio inputs available.
GetVideoCodecsCount
Returns number of video codecs available.
GetVideoInputsCount
Returns number of video inputs available.
GetVideoInputSourcesCount

Returns number of video input sources available for selected video input.

A video input source is a line input, like Video-Composite, Tuner, etc.

Position
Returns the stream (multimedia file) position in a format specified by TimeFormat property.
Rate

Specifies the frame rate where Rate is:

1 = normal speed

2 = double speed

0.5 = half speed

Not all devices support this property. Important. The Rate does NOT set or get the number of frames per second (FPS).

To save a movie originally shot at 30 fps to.15 fps set the rate to 0.5.

The Rate can only be set if the if the file is running or is paused.

ReferenceClock

Specifies the source of reference clock.

You should change it when audio and video aren't synchronized.

When RenderAudio and RenderVideo are true, it is suggested to set ReferenceClock=AudioOutput.

RenderAudio

If True renders the audio stream to the default audio renderer.

Sometimes audio is not synchronized with video. To get audio/video synchronized we should interact directly with hardware devices, but this will loss compatibility.

Anyway you could try to play with ReferenceClock and ClockErrorTolerance properties to get better synchronization.

RenderVideo

When true the video input (from capture card, file or dvd) is displayed inside the component area.

This functionality is available only starting from Windows XP.

State

State property returns the current state of the graph.

This property allows to know if DirectShow has running, is stopped, etc.

TimeFormat
Specifies the time format for Position and Duration properties.
TunerChannel
Sets the channel when the video input source is a TV Tuner.
VideoCodecQuality
Specifies the video compression codec quality. Not all codecs support this property.
VideoInputSource

Specifies the video input source. A video input source is a line input, like Video-Composite, Tuner, etc.

You can get an index from GetVideoInputSources method.

See Also