Line 99: |
Line 99: |
| <br /> | | <br /> |
| | | |
− | === Gstreamer usage sample === | + | === Gstreamer usage samples === |
| <code>export DISPLAY=:0</code> | | <code>export DISPLAY=:0</code> |
| | | |
Line 155: |
Line 155: |
| ==== Stream to OpenCV ==== | | ==== Stream to OpenCV ==== |
| <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! videoscale ! "video/x-raw,width=640,height=480" ! videoconvert ! "video/x-raw, format=(string)BGR" ! appsink</code> | | <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! videoscale ! "video/x-raw,width=640,height=480" ! videoconvert ! "video/x-raw, format=(string)BGR" ! appsink</code> |
| + | ===V4l2-ctl usage example=== |
| + | ====install v4l2-utils==== |
| + | <code>sudo apt-get install v4l-utils</code> |
| + | ====v4l2-ctl test==== |
| + | |
| + | *Snap a UYVY raw data picture (1080p mode) |
| + | |
| + | <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=1 --stream-to=uyvy-1920x1080.yuv</code> |
| === Video Control Toolkits Manual === | | === Video Control Toolkits Manual === |
| Because of the high flexibility of our camera parameters, we do not use V4L2 parameters to control, but use scripts to configure parameters. | | Because of the high flexibility of our camera parameters, we do not use V4L2 parameters to control, but use scripts to configure parameters. |
Line 196: |
Line 204: |
| Note: If there is only one camera, video node is always video0. | | Note: If there is only one camera, video node is always video0. |
| | | |
− | ==== Gstreamer usage Demo ==== | + | ==== Gstreamer usage samples ==== |
| <code>export DISPLAY=:0</code> | | <code>export DISPLAY=:0</code> |
| | | |