video0 and video17 open in one process.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

video0 and video17 open in one process.

1,396件の閲覧回数
knight
Contributor I

I want to open /dev/video0 for capture and open /dev/video17 for ipu in one process.but the camera buf DQBUF fail.

---------------------------------------

part of my code:

    //ipu strean on

    int ipu_type = V4L2_BUF_TYPE_VIDEO_OUTPUT;

    if(ioctl(ipu_fd,VIDIOC_STREAMON,&ipu_type) < 0){

            perror("ipu STREAMON");

            exit(1);

    }

    type = V4L2_BUF_TYPE_VIDEO_CAPTURE;

    if(ioctl(cap_fd,VIDIOC_STREAMON,&type) < 0){

        perror("capture ioctl STREAMON");

        exit(1);

    }

        cap_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;

        cap_buf.memory = V4L2_MEMORY_MMAP;

        if(ioctl(cap_fd,VIDIOC_DQBUF,&cap_buf) < 0){

            perror("cap DQBUF");

            exit(1);

        }

------------------------------------------------------------------------------

the error:

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00100000

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_9 = 0x04000000

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_9 = 0x04000000

ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0

ラベル(4)
0 件の賞賛
返信
2 返答(返信)

958件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

please refer to the following

https://community.nxp.com/thread/274730#comment-322666

Regards,

Yuri.

0 件の賞賛
返信

958件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

what do you mean"I want to open /dev/video0 for capture and open /dev/video17 for ipu"?

did you use FSL code to do the process? any error message?

0 件の賞賛
返信