Skip to content

OE-XX: Hardware-accelerated Video I/O #19676

@alalek

Description

@alalek

Hardware-accelerated Video I/O

  • Status: WIP
  • Platforms: Linux, Windows

The patch #19460 (thanks to @mikhail-nikolskiy) added properties to control hardware-acceleration of video decoding/encoding tasks. This patch is going to be released with OpenCV 4.5.2.

Support matrix for these properties:

OS Backend VideoCapture VideoWriter
Linux FFMPEG VAAPI, MFX MFX, VAAPI
  GStreamer VAAPI (and others HW plugins) VAAPI (and others HW plugins)
Windows FFMPEG D3D11, MFX MFX
  MSMF D3D11 -

Hardware-acceleration is available in preview mode (disabled by default), so feel free to try it with your HW configurations:

VideoCapture capture(filename, CAP_FFMPEG,
    {
        CAP_PROP_HW_ACCELERATION, VIDEO_ACCELERATION_ANY,
    }
);

or run OpenCV Video I/O tests (opencv_test_videoio).

In case of observed problems, please create new issue with adding reference to this issue.


API documentation page is here
Wiki page: https://github.com/opencv/opencv/wiki/Video-IO-hardware-acceleration


This is commutative issue for patches and bug reports about hardware-accelerated video decoding/encoding.

🚀 Noticeable PRs:

🚨 Issues:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions