Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This page dedicated to validating raw video captured using libcamerasrc using gst-launch-1.0 in RPI-3 B+ board using imx219 camera.

libcamera camera stack


Image Added

The camera stack comprises four software layers. From bottom to top:

  • The kernel drivers control the camera hardware and expose a low-level interface to user space through the Linux kernel V4L2 family of APIs (Media Controller API, V4L2 Video Device API and V4L2 Subdev API).

  • The libcamera framework is the core part of the stack. It handles all control of the camera devices in its core component, libcamera, and exposes a native C++ API to upper layers. Optional language bindings allow interfacing to libcamera from other programming languages. Those components live in the same source code repository and all together constitute the libcamera framework.

  • The libcamera adaptation is an umbrella term designating the components that interface to libcamera in other frameworks. Notable examples are a V4L2 compatibility layer, a gstreamer libcamera element, and an Android camera HAL implementation based on libcamera. Those components can live in the libcamera project source code in separate repositories, or move to their respective project’s repository (for instance the gstreamer libcamera element).

  • The applications and upper level frameworks are based on the libcamera framework or libcamera adaptation, and are outside of the scope of the libcamera project

libcamera usage

  • Multiple video stream from single camera and multiple camera
  • At the same time we will display live streaming on screen, captures stills and record video at different resolution.
  • Per frame control
  • ISP:
    • AWB ( Automatic white Balance )
    • CCM ( color correction matrix )
    • AGC ( Automatic gain control)
    • ALSC ( Auto lens shading correction)
    • GEQ (green equalization algorithm)
    • SDN (spatial denoise) control algorithm
    • DPC (defective pixel correction) control algorithm
    • Contrast ( Gamma control algorithm)
    • Black level control algorithm
    • Sharpen control algorithm status

Connecting camera to Raspberry pi board

Refer below link to connect camera to pi board

connecting camera to Raspberry pi board

Build and Flash Procedure

...

libcamera video validation procedure

STEP 1:

Excute Execute below commond inside command inside target.

Code Block
languagebash
titlelibcamera video capture
#gst-launch-1.0 libcamerasrc ! video/x-raw, colorimetry=bt709,format=NV12,interlace-mode=progressive,width=1280,height=720,framerate=1530/1,format=NV12 ! videoconvert ! v4l2h264enc ! queue ! filesink location=libcamerasrc.h264

...

play video using vlc player

Demo Video

View file
namelibcamerasrc.h264
height150