Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVCaptureVideoDataOutputMBS class.

AVCaptureVideoDataOutputMBS.alwaysDiscardsLateVideoFrames as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether video frames are dropped if they arrive late.

When the value of this property is true, the object immediately discards frames that are captured while the dispatch queue handling existing frames is blocked in the AVFoundationMBS.captureOutputDidOutputSampleBuffer event.

When the value of this property is false, delegates are allowed more time to process old frames before new frames are discarded, but application memory usage may increase significantly as a result.

The default is true.
(Read and Write computed property)

Some examples using this property:

AVCaptureVideoDataOutputMBS.availableVideoCodecTypes as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates the supported video codec formats that can be specified in videoSettings. (read-only)

The value of this property is an array of String objects you can use as values for the AVVideoCodecKey in the videoSettings property. The first format in the returned list is the most efficient output format.

AVCaptureVideoDataOutputMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

See also:

AVCaptureVideoDataOutputMBS.Constructor(CIDetector as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

This allows you to use a CIDetectorMBS object with AVCaptureVideoDataOutputMBS.
The plugin will run the detector in a helper thread, so you have more time on the main thread for your application and better performance.

See also:

AVCaptureVideoDataOutputMBS.EnableEvents

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Enables the events for this output.

Those are normally handled automatically, but if you add event with AddHandler you need to call this method.

AVCaptureVideoDataOutputMBS.videoSettings as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The compression settings for the output.

The dictionary contains values for compression settings keys defined in AVVideoSettings.h, or pixel buffer attributes keys defined in <CoreVideo/CVPixelBuffer.h> (see CVPixelBufferRef). The only key currently supported is the kCVPixelBufferPixelFormatTypeKey key.
(The plugin defines such keys in AVFoundationMBS)

To get possible values for the supported video pixel formats (kCVPixelBufferPixelFormatTypeKey) and video codec formats (AVVideoCodecKey), see availableVideoCVPixelFormatTypes and availableVideoCodecTypes respectively.

To receive samples in their device native format, set this property to nil:

If you set this property to nil and then subsequently query it, you will get a dictionary reflecting the settings used by the capture sessions's current sessionPreset.
(Read and Write computed property)

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


The biggest plugin in space...