有的cam可以流畅显示:Okion Sight USB Portable Webcam 1.3MP 24-Bit 1280x102;很多不可以,比如logitech的高清,普通webcam.
已经尝试的方法:
1. gstreamer-properties
使用:
$ gstreamer-properties
选择pipline, test.
2. guvcview
$ guvcview
使用:
$ sudo apt-get install guvcview
可以该分辨率和图片格式的
Resolution:
Camera Output:
3. 修改libcam.cpp 中的参数V4L2_FIELD_INTERLACED,参考链接如下:
http://modules.gotpike.org/%28SessionID=7026a5ccae6715df954e7e6509ab63c1%29/view_version_file.html/38/0.1/v4l2-0.1/videodev2.h
fmt.fmt.pix.field = V4L2_FIELD_INTERLACED;
在desktop上完全可以用。
最后也没解决,推测是系统对图像的转换格式不一致。但是很难找出在哪。
Webcam的课外读物: