我有一个HDMI采集卡,并且正在使用raspbian。
I want to get one single frame with v4l2-ctl
command, then convert it to something common:
获取框架:
# v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1
转换它:
# convert -size 1280x720 -depth 16 uyvy:frame.raw frame.png
1280x720
is the resolution what v4l2-ctl --query-dv-timings
reports as active.
问题是我无法获得清晰的捕获,它始终在底部有一个绿色结尾(有时更小,有时更大!):
How can I get the whole picture captured with v4l2-ctl? Maybe the conversion is wrong (I get that from http://trac.gateworks.com/wiki/linux/v4l2).
谢谢!