Skip to content

How it works

Bartosz Meglicki edited this page Apr 28, 2020 · 1 revision

Program structure

  • process user input (width, height, framerate, time to capture)
  • init file for raw H.264 output
  • init Realsense D400 device
  • init VAAPI encoder with HVE
  • read greyscale IR data from the camera
  • encode to H.264
  • write to raw H.264 file
  • cleanup

The encoding

Realsense and VAAPI devices are configured to work together (no data processing on the host).

  • VAAPI is configured for H.264 with NV12 pixel format
  • Realsense is configured to ouput Y8 (8 bit greyscale) infrared data
  • NV12 is planar format with Y luminance plane and interleaved UV plane
    • the data output by Realsense is directly matched with Y plane of NV12
    • the UV plane is filled with constant value (no color)
Clone this wiki locally