Platforms to show: All Mac Windows Linux Cross-Platform

Back to DirectShowGraphBuilderMBS class.

DirectShowGraphBuilderMBS.Abort

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The Abort method requests the Filter Graph Manager to halt its current task as quickly as possible.

The current task may or may not fail to complete. Possibly the fastest option for the Filter Graph Manager is to complete the task.

Lasterror is set.

DirectShowGraphBuilderMBS.AddSourceFilter(FileName as string, FilterName as string) as DirectShowBaseFilterMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Adds a source filter for a specified file to the filter graph.

FileName: the name of the file to load.
FilterName: name for the source filter.

Lasterror is set.

This method searches for an installed filter that can read the specified file. If it finds one, the method adds it to the filter graph and returns a pointer to the filter's IBaseFilter interface. To determine the media type and compression scheme of the file, the Filter Graph Manager reads the first few bytes of the file, looking for specific patterns of bytes, as documented in the article Registering a Custom File Type.

The application is responsible for building the rest of the filter graph. To do so, call EnumPins to enumerate the output pins on the source filter. Then use either the Connect method or the Render method.

If the method succeeds, the BaseFilter interface has an outstanding reference count. The caller must release the interface.

To render a file for default playback, use the RenderFile method.

The Filter Graph Manager holds a reference count on the filter until the filter is removed from the graph or the Filter Graph Manager is released.

DirectShowGraphBuilderMBS.Connect(pinOut as DirectShowPinMBS, pinIn as DirectShowPinMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Connects the two pins, using intermediates if necessary.

pinOut: the output pin.
pinIn: the input pin.

Lasterror is set.

This method connects two pins directly or indirectly, adding intermediate filters if necessary. The method starts by attempting a direct connection. If that fails, it tries to use any filters that are already in the filter graph and have unconnected input pins. (It enumerates these in an arbitrary order.) If that fails, it searches for filters in the registry, and tries them in order of merit.

During the connection process, the Filter Graph Manager ignores pins on intermediate filters if the pin name begins with a tilde (~).

see also
http://msdn.microsoft.com/en-us/library/windows/desktop/dd390088(v=vs.85).aspx

DirectShowGraphBuilderMBS.ConnectFilters(pinOut as DirectShowPinMBS, dest as DirectShowBaseFilterMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Convenience function to connect an output pin to a filter.

Lasterror is set.

See also:

DirectShowGraphBuilderMBS.ConnectFilters(source as DirectShowBaseFilterMBS, dest as DirectShowBaseFilterMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Convenience function to connect two filters.

Lasterror is set.

See also:

DirectShowGraphBuilderMBS.ConnectFilters(source as DirectShowBaseFilterMBS, pinIn as DirectShowPinMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Convenience function to connect a filter to an input pin.

Lasterror is set.

See also:

DirectShowGraphBuilderMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The constructor.

DirectShowGraphBuilderMBS.Render(pinOut as DirectShowPinMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The Render method builds a filter graph that renders the data from a specified output pin.

pinOut: an output pin.
Lasterror is set.

This method renders the data from a specified output pin, adding new filters to the graph as needed. Filters are tried in the same order as for the Connect method. For more information, see Intelligent Connect.
During the connection process, the Filter Graph Manager ignores pins on intermediate filters if the pin name begins with a tilde (~).

DirectShowGraphBuilderMBS.RenderFile(FilePath as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Builds a filter graph that renders the specified file.

FilePath: string that contains the name of a media file.
Lasterror is set.

If the FilePath parameter specifies a media file, the method builds a filter graph for default playback. First it adds a source filter that can read the file, using the same process as the AddSourceFilter method. Then it renders the output pins on the source filter, adding intermediate filters if necessary. It tries filters in the same order as the Connect method.
During the connection process, the Filter Graph Manager ignores pins on intermediate filters if the pin name begins with a tilde (~).
Note that the RenderFile method does not remove any filters from the graph. If you call RenderFile twice, the second call simply adds more filters to the graph. When you run the graph, both sources will play at the same time.

DirectShowGraphBuilderMBS.SetLogFile(FilePath as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The SetLogFile method sets the file for logging actions taken when attempting to perform an operation.

This method is for use in debugging; it is intended to help you determine the cause of any failure to automatically build a filter graph.
Lasterror is set.

DirectShowGraphBuilderMBS.VideoWindow as DirectShowVideoWindowMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the video window related tot this graph builder.

Lasterror is set.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...