Skip to main content
QCS6490IQ-9075-EVKIQ-8275-EVKIQ615Stable

MIPI CSI

Multi-platform support

GStreamer

Primary API

This page describes how to connect camera sensors to your reference hardware platform and make it up and running in 3 Simple steps.

📸 Get QCS6490 Camera Up and Running in 3 Simple Steps

1

🔌 Plug & Play: Camera Hardware Setup

QCS6490 ships with both IMX577 and OV9282 pre-connected, as shown below.
2

🧰 Ready Check: Prerequisites

Connect to the device console using SSH.
See How To SSH? for instructions.
1

Enable camera functionality

We recommend using the Qualcomm Launcher tool for build flashing, as it handles all required configurations internally. If you are not using Qualcomm Launcher, follow the manual steps below to enable camera functionality.
Flash the Config2 image to use gst-launch-1.0 and the GStreamer plugins. On Qualcomm Linux 2.0, qcom-multimedia-proprietary-image includes the downstream camera packages by default, but camera functionality is not enabled automatically. Enable camera support on qcom-multimedia-proprietary-image by running the following command in the device shell:
Terminal
echo -n "camx" > /var/data
efivar -n 882f8c2b-9646-435f-8de5-f208ff80c1bd-VendorDtbOverlays -w -f /var/data
efivar -n 882f8c2b-9646-435f-8de5-f208ff80c1bd-VendorDtbOverlays -p
sync
reboot
2

Clear GStreamer registry (if needed)

If a GStreamer command was executed before enabling the camera overlay, the GStreamer registry must be cleared after enabling the camera overlay. Run the following command to clear the registry:
Terminal
rm ~/.cache/gstreamer-1.0/registry.aarch64.bin
3

Log Level Tuning (if needed)

Camera use-cases are expected to run on a performance (perf) build for optimal results. On default builds, reduce the kernel console log level as shown below:
Terminal
echo 4 > /proc/sys/kernel/printk
3

🎥 Action! Start Video Capture

Video encoding

1

Run the pipeline

Run the following command in the device terminal:
GStreamer (MP4 Record)
gst-launch-1.0 -e qtiqmmfsrc name=camsrc camera=0 ! \
video/x-raw,format=NV12,width=1280,height=720,framerate=30/1,\
interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc \
capture-io-mode=4 output-io-mode=5 extra-controls="controls,video_bitrate=6000000,\
video_bitrate_mode=0;" ! h264parse ! mp4mux ! filesink location=/opt/mux_avc.mp4
This command starts the camera with 720p at 30 FPS configuration and saves it as a video file after h264 video encoding. If the gst pipeline status is changed to “PLAYING”, this indicates the camera is running.To stop the camera, press CTRL+C.
2

Pull recorded content

/opt/mux_avc.mp4 is generated on the device. The recorded content can be pulled from the device by running the following scp command on the host PC:
SCP (SSH)
$ scp -r root@[ip-addr]:/opt/mux_avc.mp4 .