Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

DirectShowCaptureGraphBuilderMBS.AllocCapFile(FilePath as string, Size as UInt64)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The AllocCapFile method preallocates a capture file to a specified size. For best results, always capture to a defragmented, preallocated capture file that is larger than the size of the capture data.
Notes:
FilePath: a string that contains the name of the file to create or resize.
Size: Size of the file to allocate, in bytes.

Lasterror is set.

This method fails if the file is read-only.
It is best to allocate as much space as possible—ideally, more than needed. However, this can result in a very large file that contains relatively little data. For example, a 1-gigabyte (GB) capture file might contain a few megabytes of captured video. Use the CopyCaptureFile method to copy the data into a new file. That method copies only the data and ignores the empty portion of the original file.
If you use this method to preallocate the file, call SetMode on the file-writer filter with the value zero. If the filter is set to AM_FILE_OVERWRITE, it will delete the preallocated file. Note that some file-writer filters do not support mode 0.

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The constructor.

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.Crossbar(filter as DirectShowBaseFilterMBS) as DirectShowAMCrossbarMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 14.1 No Yes No Yes, Windows only No
Function: Finds a crossbar in the graph.
Notes:
See also:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd390991(v=vs.85).aspx

This function implements the FindInterface call with LOOK_UPSTREAM_ONLY and the filter you provide.

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.GetFiltergraph as DirectShowGraphBuilderMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Retrieves the filter graph that the builder is using.
Notes: Sets lasterror.

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.GetStreamConfig(preview as boolean, filter as DirectShowBaseFilterMBS) as DirectShowAMStreamConfigMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 13.4 No Yes No Yes, Windows only No
Function: Queries the stream config object for this graph.
Notes: Lasterror is set.

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.RenderStream(category as DirectShowGUIDMBS, Type as DirectShowGUIDMBS, Source as DirectShowBaseFilterMBS, Intermediate as DirectShowBaseFilterMBS = nil, Sink as DirectShowBaseFilterMBS = nil)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The RenderStream method connects an output pin on a source filter to a sink filter, optionally through an intermediate filter.
Notes:
Lasterror is set:

Category: A GUID that specifies one of the pin categories listed in Pin Property Set. To match any pin, regardless of category, set this parameter to nil. Typical values include the following. PIN_CATEGORY_CAPTURE, PIN_CATEGORY_PREVIEW, PIN_CATEGORY_CC.
Type: A major-type GUID that specifies the media type of the output pin; or nil to use any pin, regardless of media type.
Source: Specifies a pointer to the starting filter for the connection, or to an output pin.
Intermediate: BaseFilter interface of an intermediate filter, such as a compression filter. Can be nil.
Sink: BaseFilter interface of a sink filter, such as a renderer or mux filter. If the value is nil, the method uses a default renderer (see Remarks).

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

See also:

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.RenderStream(category as DirectShowGUIDMBS, Type as DirectShowGUIDMBS, Source as DirectShowPinMBS, Intermediate as DirectShowBaseFilterMBS = nil, Sink as DirectShowBaseFilterMBS = nil)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The RenderStream method connects an output pin on a source filter to a sink filter, optionally through an intermediate filter.
Notes:
Lasterror is set:

Category: A GUID that specifies one of the pin categories listed in Pin Property Set. To match any pin, regardless of category, set this parameter to nil. Typical values include the following. PIN_CATEGORY_CAPTURE, PIN_CATEGORY_PREVIEW, PIN_CATEGORY_CC.
Type: A major-type GUID that specifies the media type of the output pin; or nil to use any pin, regardless of media type.
Source: Specifies a pointer to the starting filter for the connection, or to an output pin.
Intermediate: BaseFilter interface of an intermediate filter, such as a compression filter. Can be nil.
Sink: BaseFilter interface of a sink filter, such as a renderer or mux filter. If the value is nil, the method uses a default renderer (see Remarks).

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

See also:

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.SetFiltergraph(graph as DirectShowGraphBuilderMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Tells the graph builder object which filter graph to use.
Notes:
Lasterror is set.

graph: specifies the filter graph to use for subsequent calls to the AddFilter method.

The graph builder will automatically create a filter graph if you don't call this method. If you call this method after the graph builder has created its own filter graph, the call will fail.

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.SetOutputFileName(Type as DirectShowGUIDMBS, FilePath as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Creates the rendering section of the filter graph, which will save bits to disk with the specified file name.
Notes:
Lasterror is set.

Type: GUID representing the media subtype. Must be MEDIASUBTYPE_Avi.
FilePath: string containing the output file name.
filter: Optional, a filter representing the multiplexer filter.
Sink: Optional, a FileSinkFilter object representing the file writer.

This method inserts the multiplexer and the file writer into the filter graph and calls SetFileName to set the output file name.

See also:

Feedback, Comments & Corrections

DirectShowCaptureGraphBuilderMBS.SetOutputFileName(Type as DirectShowGUIDMBS, FilePath as string, byref filter as DirectShowBaseFilterMBS, byref sink as DirectShowFileSinkFilterMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Creates the rendering section of the filter graph, which will save bits to disk with the specified file name.
Notes:
Lasterror is set.

Type: GUID representing the media subtype. Must be MEDIASUBTYPE_Avi.
FilePath: string containing the output file name.
filter: Optional, a filter representing the multiplexer filter.
Sink: Optional, a FileSinkFilter object representing the file writer.

This method inserts the multiplexer and the file writer into the filter graph and calls SetFileName to set the output file name.

See also:

Feedback, Comments & Corrections

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





Links
MBS Xojo Plugins