Line 284: |
Line 284: |
| | | |
| <code>export HEIGHT=2064</code> | | <code>export HEIGHT=2064</code> |
| + | |
| + | <code>export FPS=22</code> |
| | | |
| * MV-MIPI-SC130M | | * MV-MIPI-SC130M |
Line 290: |
Line 292: |
| | | |
| <code>export HEIGHT=1024</code> | | <code>export HEIGHT=1024</code> |
| + | |
| + | <code>export FPS=108</code> |
| | | |
| *MV-MIPI-IMX296M | | *MV-MIPI-IMX296M |
Line 296: |
Line 300: |
| | | |
| <code>export HEIGHT=1088</code> | | <code>export HEIGHT=1088</code> |
| + | |
| + | <code>export FPS=60</code> |
| | | |
| *MV-MIPI-IMX265M | | *MV-MIPI-IMX265M |
Line 302: |
Line 308: |
| | | |
| <code>export HEIGHT=1544</code> | | <code>export HEIGHT=1544</code> |
| + | |
| + | <code>export FPS=45</code> |
| === v4l2-ctl 应用范例 === | | === v4l2-ctl 应用范例 === |
| =====安装v4l2-utils===== | | =====安装v4l2-utils===== |
Line 483: |
Line 491: |
| | | |
| <code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY</code> | | <code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY</code> |
| + | |
| + | <code>v4l2-ctl --set-ctrl frame_rate=$FPS</code> |
| =====帧率统计===== | | =====帧率统计===== |
| <code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=/dev/null</code> | | <code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=/dev/null</code> |
Line 528: |
Line 538: |
| <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)2816, height=(int)2064, framerate=(fraction)22/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false</code> | | <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)2816, height=(int)2064, framerate=(fraction)22/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false</code> |
| | | |
− | ====== MV-MIPI-SC130M ====== | + | ====== MV-MIPI-SC130M, MV-MIPI-IMX296M, MV-MIPI-IMX265M ====== |
− | <code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=1024,pixelformat=UYVY</code> | + | <code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=UYVY</code> |
| | | |
− | <code>v4l2-ctl -d /dev/video0 --set-ctrl frame_rate=108</code> | + | <code>v4l2-ctl -d /dev/video0 --set-ctrl frame_rate=$FPS</code> |
| | | |
− | <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)1280, height=(int)1024, framerate=(fraction)108/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false</code> | + | <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)$WIDTH, height=(int)$HEIGHT, framerate=(fraction)$FPS/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false</code> |
| ==== 触发模式 ==== | | ==== 触发模式 ==== |
| =====准备工作===== | | =====准备工作===== |
Line 543: |
Line 553: |
| | | |
| <code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY</code> | | <code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY</code> |
| + | |
| + | <code>v4l2-ctl --set-ctrl frame_rate=$FPS</code> |
| | | |
| 如为MV-MIPI-IMX178M,3088*2064: | | 如为MV-MIPI-IMX178M,3088*2064: |