例如:

//显示Camera所有信息(分辨率:Width/Height)
# v4l2-ctl -d /dev/video0 --all //显示Camera信息
# v4l-ctl  -D //播放yuyv422格式数据
# ffplay -i test.yuv -pix_fmt yuyv422 -s 1280x720//获取支持的编码格式
# v4l2-ctl  --list-formats -d /dev/video4
ioctl: VIDIOC_ENUM_FMTIndex       : 0Type        : Video CapturePixel Format: 'MJPG' (compressed)Name        : Motion-JPEGIndex       : 1Type        : Video CapturePixel Format: 'YUYV'Name        : YUYV 4:2:2//获取支持的camera设备
# v4l2-ctl --list-devices -d /dev/video4
USB Camera: USB Camera (usb-0000:00:14.0-1.2):/dev/video4/dev/video5Integrated Camera: Integrated C (usb-0000:00:14.0-8):/dev/video0/dev/video1/dev/video2/dev/video3# v4l2-ctl -d /dev/video0 --list-ctrls
//Camera各种模式
brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
contrast 0x00980901 (int)    : min=0 max=100 step=1 default=32 value=32
saturation 0x00980902 (int)    : min=0 max=100 step=1 default=64 value=64
hue 0x00980903 (int)    : min=-180 max=180 step=1 default=0 value=0
white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
gamma 0x00980910 (int)    : min=100 max=500 step=1 default=300 value=300
power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=1
white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=10 default=4600 value=4600 flags=inactive
sharpness 0x0098091b (int)    : min=0 max=100 step=1 default=50 value=50
backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=0 value=0
exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
exposure_absolute 0x009a0902 (int)    : min=50 max=10000 step=1 default=166 value=166 flags=inactive
exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
pan_absolute 0x009a0908 (int)    : min=-57600 max=57600 step=3600 default=0 value=0
tilt_absolute 0x009a0909 (int)    : min=-43200 max=43200 step=3600 default=0 value=0
zoom_absolute 0x009a090d (int)    : min=0 max=3 step=1 default=0 value=0//获取支持的分辨率和编码格式
# v4l2-ctl --list-formats-ext -d /dev/video4
ioctl: VIDIOC_ENUM_FMTIndex       : 0Type        : Video CapturePixel Format: 'MJPG' (compressed)Name        : Motion-JPEGSize: Discrete 1920x1080Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 160x120Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 320x240Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 352x288Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 640x480Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 800x600Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 1024x768Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 1280x720Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 1280x1024Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 640x480Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 1920x1080Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Index       : 1Type        : Video CapturePixel Format: 'YUYV'Name        : YUYV 4:2:2Size: Discrete 640x480Interval: Discrete 0.033s (30.000 fps)Size: Discrete 1920x1080Interval: Discrete 0.200s (5.000 fps)Size: Discrete 1280x720Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 800x600Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)Size: Discrete 960x540Interval: Discrete 0.050s (20.000 fps)Interval: Discrete 0.067s (15.000 fps)Interval: Discrete 0.100s (10.000 fps)Interval: Discrete 0.200s (5.000 fps)

v4l2-ctl 控制命令相关推荐

  1. V4L2 常用控制命令。

    V4L2是Video for linux2的简称,为linux中关于视频设备的内核驱动.在Linux中,视频设备是设备文件,可以像访问普通文件一样对其进行读写,摄像头在/dev/video*下,如果只 ...

  2. Linux 视频设备驱动V4L2最常用的控制命令使用说明(1.02)

    Linux视频设备驱动常用控制命令使用说明 设置视频设备属性通过ioctl来进行设置,ioctl有三个参数,分别是fd, cmd,和parameter,表示设备描述符,控制命令和控制命令参数. 1. ...

  3. UDP数据转发解决WiFi与有限以太网之间控制命令传递:RGBLink

    简 介: 针对RGBLink有线入网的特点,使用了一台中间工控机做了有线.无线之间的转接.利用了sokit软件完成UDP数据转发,可以利用TEASOFT软件自动控制RGBLink设备. 关键词: RG ...

  4. 三关节机械臂控制命令修改

    ▌01 机械控制臂 1.简介 在 调试机械臂一体化控制电路:STM32F103控制器初步调试 对于 三轴机械臂的 的控制,最初版本采用了 简易调试命令组合. 这个命令是为了付方便最初的调试与测试机械臂 ...

  5. 双轴机械臂串口控制命令开发与测试:STM32F103控制板,简易调试命令集合

    ▌01 底层串口控制命令 1.调试说明 本文是继 调试机械臂一体化控制电路 博文中对于 两轴机械臂+机械爪整体控制板设计与机械爪控制调试 在 基于STM32F103双轴机械臂完整电路板 控制下进行串口 ...

  6. 第一段Java程序_借助Win控制命令台编译执行 编辑器Notepad++

    第一段Java程序_借助Win控制命令台编译执行 编辑器Notepad++ 准备代码: 第一次编译: 显然需要先配置环境变量: 先找到java.exe和javac.exe所在的文件夹位置: 此电脑-& ...

  7. flash时间轴控制命令

    在Flash动画脚本中,控制影片播放的命令包括 play.stop.gotoAndPlay.gotoAndStop等,下面我们将分别对这些命令进行介绍.1. play(播放)stop(停止)命令通过为 ...

  8. Ubuntu打印机控制命令笔记

    Ubuntu打印机控制命令笔记 Ubuntu打印机控制命令笔记 检查打印机状态,及打印工作顺序编号和使用者名称 ******************************************** ...

  9. 玩转Linux进程控制命令

    目录 1.0查看系统中的进程命令 1.1 ps命令 1.2 top命令 2.0 控制系统中的进程命令 2.1 kill命令 2.2 killall 命令 2.3 nice 命令 2.4 renice命 ...

  10. Matlab绘图基本控制命令

    图形的控制与表现 (Figure control and representation) MATLAB提供的用于图形控制的函数和命令:    axis:  人工选择坐标轴尺寸.     clf:清图形 ...

最新文章

  1. Struts2中的action类
  2. 聚簇索引、非聚簇索引、普通索引、唯一索引
  3. 2021-08-12 画蜡烛线
  4. java中抓阄_如何进行抓阄
  5. [BZOJ5286][洛谷P4425][HNOI2018]转盘(线段树)
  6. Java之一致性hash算法原理及实现
  7. Swift基础语法: 23 - Swift的Trailing闭包, 捕获, 闭包是引用类型
  8. LAV Filter 源代码分析 1: 总体结构
  9. js隐藏div和class
  10. 树莓派端口i2s_树莓派制造低成本交互式显微镜
  11. premiere(Pr)制作逐字出现效果
  12. Python 基础 1加到100 求和
  13. 我的阴阳两界:革命时期的爱情--王小波
  14. Oracle学习——第五讲(约束)
  15. 网络安全从零开始(基础知识)
  16. 【Apache Spark 】第 2 章下载 Apache Spark并开始使用
  17. Arctime——可视化字幕编辑器,解放你的双手
  18. Linux下安装并运行TMHMM
  19. 博客园 首页 新随笔 联系 订阅 管理 如何使用电脑上的谷歌浏览器来调试安卓手机上的移动端页面...
  20. 锁定计算机小键盘,笔记本数字键盘锁了要怎么办【图文教程】

热门文章

  1. KeyMob聚合平台:为开发者塑造广告变现形式
  2. fullcalendar小结
  3. 留存光明延续大爱 80后父母捐病儿角膜感动冰城
  4. dwr框架java解析excel_dwr poi java 将excel 导出到客户端
  5. c++学习---继承与派生类
  6. linux设置activemq开机启动,Activemq(centos7)开机自启动服务
  7. Web 前端知识体系精简
  8. spring-boot 整合redis作为数据缓存
  9. AJAX异步实现简单的瀑布流
  10. 十五天精通WCF——第十三天 用WCF来玩Rest