2076 views|2 replies

1237

Posts

66

Resources
The OP
 

[Allwinner heterogeneous multi-core AI intelligent vision V853 development board evaluation] v4l2-ctl camera control [Copy link]

 

V4L2 is the abbreviation of Video for Linux2, which is the kernel driver for video devices in Linux. In Linux, video devices are device files that can be read and written like ordinary files. The camera is under /dev/video*. If there is only one video device, it is usually /dev/video0. v4l2-ctl is a set of user space tools for testing, configuring and using the entire camera subsystem, including external camera sensors and camera interfaces. v4l2-ctl is the most useful utility.

The basic and commonly used commands of v4l2-ctl are as follows:

Use the --list-devices option to list all available video devices.

v4l2-ctl --list-devices

To get information about a specific device, add the -D option:

v4l2-ctl -d /dev/video0 -D

Get the list of supported parameter setting interfaces

v4l2-ctl -L -d /dev/video0

The control value can be changed by using the --set-ctrl option, such as:

v4l2-ctl --set-ctrl test_pattern=1

Control values can be changed dynamically.

Set the pixel format, resolution and frame rate. Use the --list-formats-ext option to get the supported pixel formats, resolutions and frame rates:

View the video compression formats supported by the current camera

v4l2-ctl -d /dev/video0 --list-formats

View all camera parameters

v4l2-ctl -d  /dev/video0 --all

Check the resolutions supported by the camera

v4l2-ctl --list-framesizes=MJPG -d /dev/video0

This post is from Domestic Chip Exchange

Latest reply

The example introduced by the master is very useful. I am just trying to make an example of web viewing. Please give me some advice!  Details Published on 2022-12-1 17:52
 
 

6822

Posts

11

Resources
2
 
The example introduced by the master is very useful. I am just trying to make an example of web viewing. Please give me some advice!
This post is from Domestic Chip Exchange
 
 
 

1237

Posts

66

Resources
3
 
lugl4313820 posted on 2022-12-1 17:52 The big brother introduced this and it is very useful. I am just trying to make an example of web viewing. Please give me more advice!

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list