大家好,我是用的是DM6467T做实验,现在运行encodedecode程序时候出现以下错误:
Error: Failed to create capture device, 720P component input connected?
此处为CaptureThrFxn线程中hCapture == NULL所致,追至上一步dmai下Capture.c文件中Capture_create函数(封装的v4l2操作)open操作未执行(部分代码):
/* Open video capture device */
hCapture->fd = open(attrs->captureDevice, O_RDWR, 0);
if (hCapture->fd == -1) {
Dmai_err2("Cannot open %s (%s)\n", attrs->captureDevice,
strerror(errno));
cleanup(hCapture);
return NULL;
}
/* See if an input is connected, and if so which standard */
if (Capture_detectVideoStd(hCapture, &videoStd, attrs) < 0) {
cleanup(hCapture);
return NULL;
}
硬件上,原来设计中使用的是i2c总线下的AD做视频采集。现在则直接用FPGA模拟了bt1120数据和时钟信号接到CPU端。不知道现在应该向什么方向走,望大神指点。
谢谢。