Table of Contents

Enum VideoWriter.WriterProperty

Namespace
Emgu.CV
Assembly
Emgu.CV.dll

The VideoWriter property

public enum VideoWriter.WriterProperty

Fields

Depth = 5

Defaults to CV_8U

Framebytes = 2

(Read-only): Size of just encoded video frame. Note that the encoding order may be different from representation order.

HwAcceleration = 6

(open-only) Hardware acceleration type (see #VideoAccelerationType). Setting supported only via params parameter in VideoWriter constructor / .open() method. Default value is backend-specific.

HwAccelerationUseOpencl = 8

(open-only) If non-zero, create new OpenCL context and bind it to current thread. The OpenCL context created with Video Acceleration context attached it (if not attached yet) for optimized GPU data copy between cv::UMat and HW accelerated encoder.

HwDevice = 7

(open-only) Hardware device index (select GPU if multiple available)

IsColor = 4

If it is not zero, the encoder will expect and encode color frames, otherwise it will work with grayscale frames.

NStripes = 3

Number of stripes for parallel encoding. -1 for auto detection.

Quality = 1

Current quality (0..100%) of the encoded videostream. Can be adjusted dynamically in some codecs.