Camera configuration
This Page covers the advanced usage for camera streaming & configurations over the V4l-API
Last updated
Was this helpful?
This Page covers the advanced usage for camera streaming & configurations over the V4l-API
Last updated
Was this helpful?
The Video4Linux-API (V4L in short) is the Linux interface that is used to manage the CSI video input from the CSI-Camera. Most of those cameras are using I2C for futher configurations for the camera, which can be changed over the V4L-API in the following ways.
v4l-utils
is required in order to execute the following examples properly by using
V4L allows the user to make further configurations on the Camera sensor to alter/improve the video stream settings.
The video device can be found in the /dev/
directory. If the camera correctly plugged in then there should be a device called /dev/videoX
, where X
is the camera id.
Returns a list of available camera controls to change
Syntax: sudo v4l2-ctl --device /dev/videoX -l
For this example we use the exposure
controls from the list above
This control can be changed by using the following command
Syntax: sudo v4l2-ctl --device /dev/videoX --set-ctrl=<control>=<value>
For this example we use the exposure
controls from the list above.
This control can be read by using the following command
Syntax: sudo v4l2-ctl --device /dev/videoX --get-ctrl=<control>
Pleas note that other streaming tools can also intervene and change those settings and might be overwritten or not applied correctly.
The following screenshots are showing the difference between different exposure settings on a camera sensor that is connected via CSI on our JNX30M Carrierboard