明远智睿技术论坛

标题: mxc_v4l2_output.c 中/dev/video17是什么设备 [打印本页]

作者: jack    时间: 2017-2-21 11:30
标题: mxc_v4l2_output.c 中/dev/video17是什么设备
mxc_v4l2_output.c    中/dev/video17是什么设备
可以输出到USB设备上吗 ,直接通USB线和电脑连接

作者: JDLYyear    时间: 2017-2-21 13:32
输出显示吧 类似与fb1
作者: 软件01    时间: 2017-2-23 09:51
JDLYyear 发表于 2017-2-21 13:32
输出显示吧 类似与fb1

Check that /dev/video0 exists. If it does not exist, load the camera driver with the command:

modprobe mxc_v4l2_capture

modprobe CAMERA_MODULE (CAMERA_MODULE should be replaced by the camera module on the related platform, e.g. ov3640_camera should be used here on MX51)

Check again for /dev/video0. If it is not there, the camera driver has not loaded successfully and the test has failed.

Type the following command line in a writable directory. The 50 frames of video from the camera will be captured in the file "test.yuv" at a resolution of 352x288 with no rotation and a frame rate of 30 fps. The format will be YUV420.

mxc_v4l2_capture.out -iw 352 -ih 288 -ow 352 -oh 288 -r 0 -c 50 -fr 30 test.yuv

| Expected Result |
There should be no errors or warnings. The file "test.yuv" will be created with a size of 7603200.

To display the video at the resolution of 176x144, use the command line below (a different resolution may be used depending on display size):

mxc_v4l2_output.out -iw 352 -ih 288 -ow 176 -oh 144 -r 0 -fr 30 test.yuv

Verify captured file contents match viewfinder and that the image is clear and the colors correct.


mxc_v4l2_output.out直接播放yuv的文件(默认是LVDS,除非你用是其他的屏,需要修改环境变量)




欢迎光临 明远智睿技术论坛 (http://bbs.myzr.com.cn/) Powered by Discuz! X3.2