Changes

Jump to navigation Jump to search
Line 83: Line 83:  
应当有类似如下提示:
 
应当有类似如下提示:
   −
<code>camera id is veyecam2m</code>
+
<code>veyecam2m 4-003b:  camera id is veyecam2m</code>
   −
<code>sensor is IMX327/IMX462/IMX385</code>
+
<code>veyecam2m 4-003b: sensor is IMX327</code>
    
* 执行如下命令检查video0设备节点
 
* 执行如下命令检查video0设备节点
Line 100: Line 100:     
==== v4l2-ctl ====
 
==== v4l2-ctl ====
 +
=====安装v4l2-utils=====
 +
<code>sudo apt-get install v4l-utils</code>
 +
=====列出相机支持的数据格式=====
 +
<code>v4l2-ctl --list-formats-ext</code>
 +
 +
===== 抓取图片 =====
 +
<code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=1 --stream-to=uyvy-1920x1080.yuv</code>
 +
 +
<code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap --stream-count=100 --stream-to=nv12-1920x1080.yuv</code>
 +
 +
播放图片
 +
 +
<code>ffplay -f rawvideo -video_size 1920x1080 -pix_fmt nv12 nv12-1920x1080.yuv</code>
 +
 +
===== 查看帧率 =====
 +
<code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=-1 --stream-to=/dev/null</code>
    
==== yavta示例 ====
 
==== yavta示例 ====

Navigation menu