Table of Contents

Class VideoWriterPara

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Parameters of VideoWriter for hardware acceleration Please check the link below for current HW acceleration types support matrix https://github.com/opencv/opencv/wiki/Video-IO-hardware-acceleration

[Serializable]
public record VideoWriterPara : IEquatable<VideoWriterPara>
Inheritance
VideoWriterPara
Implements
Inherited Members

Constructors

VideoWriterPara()

Constructor, parameter of VideoWriter for hardware acceleration

public VideoWriterPara()

VideoWriterPara(VideoAccelerationType, int)

Constructor, parameter of VideoWriter for hardware acceleration

public VideoWriterPara(VideoAccelerationType videoAcceleration, int deviceIndex)

Parameters

videoAcceleration VideoAccelerationType

Video Acceleration type

deviceIndex int

Hardware device index

Properties

AccelerationType

Used as value in #CAP_PROP_HW_ACCELERATION and #VIDEOWRITER_PROP_HW_ACCELERATION note In case of FFmpeg backend, it translated to enum AVHWDeviceType (https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/hwcontext.h)

public VideoAccelerationType AccelerationType { get; }

Property Value

VideoAccelerationType

HwDeviceIndex

Hardware device index (select GPU if multiple available). Device enumeration is acceleration type specific.

public int HwDeviceIndex { get; }

Property Value

int

Methods

GetParameters()

Get parameters of VideoWriter for hardware acceleration

public int[] GetParameters()

Returns

int[]