Changes

Jump to navigation Jump to search
Line 503: Line 503:  
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code>
 
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code>
   −
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-3136x2064.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-3136x2064.raw</code>
    
* raw10格式
 
* raw10格式
Line 509: Line 509:  
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
 
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
   −
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-3104x2064.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-3104x2064.raw</code>
    
* raw12格式
 
* raw12格式
Line 515: Line 515:  
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
 
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
   −
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=XY12 --stream-mmap --stream-count=1 --stream-to=y12-3104x2064.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=XY12 --stream-mmap --stream-count=1 --stream-to=y12-3104x2064.raw</code>
    
图片格式请参考上面:raw data图片格式说明 章节。
 
图片格式请参考上面:raw data图片格式说明 章节。
Line 524: Line 524:  
*raw8格式
 
*raw8格式
   −
<code>v4l2-ctl --set-fmt-video=width=1280,height=1024,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-1280x1024.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=1024,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-1280x1024.raw</code>
    
* raw10格式
 
* raw10格式
   −
<code>v4l2-ctl --set-fmt-video=width=1280,height=1024,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-1280x1024.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=1024,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-1280x1024.raw</code>
 +
 
 +
====== MV-MIPI-IMX296M ======
 +
 
 +
*raw8格式
 +
 
 +
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=1472</code>
 +
 
 +
<code>v4l2-ctl --set-fmt-video=width=1440,height=1088,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-1472x1088.raw</code>
 +
 
 +
* raw10格式
 +
 
 +
<code>v4l2-ctl --set-fmt-video=width=1440,height=1088,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-1440x1088.raw</code>
    
===== 实时预览 =====
 
===== 实时预览 =====

Navigation menu