Mechanisms for Screen Capture and Video Encoding on Genio 510 EVK (MT8370) with Wayland

Hi MediaTek Team,

I’m working with the Genio 510 EVK (MT8370) running IoT Yocto and Wayland, and I’d like to understand the available mechanisms for:

  1. Screen Capture:

    • What are the supported methods to capture the screen in a Wayland environment?

    • Are tools like PipeWire, Wayland screencopy protocol, or Weston plugins supported on this platform?

    • Is it possible to capture still images (screenshots) or video frames directly from the display?

  2. Video Encoding:

    • What mechanisms are available for hardware-accelerated video encoding (e.g., H.264/H.265)?

    • Can we use GStreamer with plugins like v4l2h264enc or v4l2convert?

    • Are there overlays or device tree configurations required to enable encoding?

Any guidance or examples would be greatly appreciated.

Thanks,
Gurukiran Mb

Hi Gurukiran Mb,

All Genio platforms provide the V4L2 H.264/H.265 hardware-accelerated encoder for GStreamer, which the v4l2h264enc and v4l2h265enc GStreamer plugins can control. The v4l2convert is also supported as a format converter and resizer.

The v4l2h264enc, v4l2h265enc, and v4l2convert are enabled by default in the IoT Yocto package. Please refer to IoT Yocto Document - Video Codec.

As IoT Yocto provides a hardware-accelerated BSP package, the screen capture feature is at the functional application level, which IoT Yocto has not tested. It is recommended that you enable Wayland’s zwlr_screencopy_manager_v1 for testing the screen capture function.