Platforms to show: All Mac Windows Linux Cross-Platform

Back to DirectShowAMVideoCompressionMBS class.

DirectShowAMVideoCompressionMBS.BaseFilter as DirectShowBaseFilterMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 19.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the base filter.

Lasterror and LastErrorMessage are set.

DirectShowAMVideoCompressionMBS.Constructor   Private

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

DirectShowAMVideoCompressionMBS.OverrideFrameSize(FrameNumber as Integer, Size as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 19.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The frame size of a specified frame.

The first frame that the filter delivers is numbered zero.
If the filter supports this method, the CompressionCaps_CanCrunch flag is in the Capabilities property. However, this flag can also indicate that the filter supports setting the bit rate, so it does not guarantee that the OverrideFrameSize method is supported.

Lasterror and LastErrorMessage are set.

DirectShowAMVideoCompressionMBS.OverrideKeyFrame(FrameNumber as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 19.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The filter to compress a particular frame as a key frame.

The first frame that the filter delivers is numbered zero.
If the filter supports this method, you can use it to override the normal key-frame distribution for a particular frame. After the filter creates a key frame, it might reset its count to determine when the next key frame should occur. For example, if the key-frame rate is 10, and an application uses this method to force frame 5 as a key frame, the filter might wait another 10 frames (until frame 15) before it creates the next key frame.

Lasterror and LastErrorMessage are set.

DirectShowAMVideoCompressionMBS.ShowPropertyDialog(parent as DesktopWindow, x as integer = 0, y as integer = 0, title as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 22.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Shows property dialog.

Parent: the parent window for the dialog.
X/Y: The offset of the dialog relative to the parent window.
Title: optional title for the dialog.

Sets lasterror property.

See also:

DirectShowAMVideoCompressionMBS.ShowPropertyDialog(parent as window = nil, x as integer = 0, y as integer = 0, title as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 19.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Shows property dialog.
Example
dim Capture as DirectShowCaptureGraphBuilderMBS // your capture graph
dim encoder as DirectShowBaseFilterMBS // your encoder filter

Dim AMVideoCompression As DirectShowAMVideoCompressionMBS = encoder.AMVideoCompression
If AMVideoCompression <> Nil Then
AMVideoCompression.ShowPropertyDialog
MsgBox "Result: "+Str(AMVideoCompression.Lasterror)+": "+AMVideoCompression.LasterrorMessage
Else
MsgBox "No AMVideoCompression."
end if

Parent: the parent window for the dialog.
X/Y: The offset of the dialog relative to the parent window.
Title: optional title for the dialog.

Sets lasterror property.

See also:

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


The biggest plugin in space...